]> granicus.if.org Git - transmission/commitdiff
(trunk gtk) revise r8945 to compile OK on gtk < 2.16
authorCharles Kerr <charles@transmissionbt.com>
Sun, 16 Aug 2009 03:25:58 +0000 (03:25 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 16 Aug 2009 03:25:58 +0000 (03:25 +0000)
gtk/actions.c

index d47cc62a8647455000281ced954abfce5db20e03..b0f68dfb677ddc65fef176ba59183ce6e331e4b4 100644 (file)
@@ -302,7 +302,10 @@ action_sensitize( const char * name,
 void
 action_set_important( const char * name, gboolean b )
 {
-    gtk_action_set_is_important( get_action( name ), b );
+    GtkAction * action = get_action( name );
+
+    g_assert( action != NULL );
+    g_object_set( action, "is-important", b, NULL );
 }
 
 void