]> spindle.queued.net Git - midori/commitdiff
Provide a fallback definition of gtk_menu_item_set_label
authorChristian Dywan <christian@twotoasts.de>
Thu, 8 Jul 2010 20:41:42 +0000 (22:41 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 8 Jul 2010 20:41:42 +0000 (22:41 +0200)
midori/sokoke.h

index 187cea76c88b5ce4e1b47204d2359e93e47bc70c..99d91e01dea61cf638749b76bd8eeda219640349 100644 (file)
@@ -40,6 +40,9 @@
 #if !GTK_CHECK_VERSION (2, 16, 0)
     #define GTK_ACTIVATABLE GTK_WIDGET
     #define gtk_activatable_get_related_action gtk_widget_get_action
+    #define gtk_menu_item_set_label(menuitem, label) \
+        gtk_label_set_label (GTK_LABEL (GTK_BIN (menuitem)->child), \
+                             label ? label : "");
 #endif
 
 #if !GTK_CHECK_VERSION (2, 18, 0)