[Xfce4-commits] <midori:master> Provide a fallback definition of gtk_menu_item_set_label

Christian Dywan noreply at xfce.org
Thu Jul 8 22:44:01 CEST 2010


Updating branch refs/heads/master
         to 880587a05519b5c419d15f0e30d903e7627a245c (commit)
       from cfd00f7fe4bbb9804e7c33c23b453642b37369f1 (commit)

commit 880587a05519b5c419d15f0e30d903e7627a245c
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jul 8 22:41:42 2010 +0200

    Provide a fallback definition of gtk_menu_item_set_label

 midori/sokoke.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/midori/sokoke.h b/midori/sokoke.h
index 187cea7..99d91e0 100644
--- a/midori/sokoke.h
+++ b/midori/sokoke.h
@@ -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)



More information about the Xfce4-commits mailing list