SF.net SVN: geany:[5845] trunk/src/geanymenubuttonaction.c

colombanw at users.sourceforge.net colombanw at xxxxx
Mon Jun 13 21:01:42 UTC 2011


Revision: 5845
          http://geany.svn.sourceforge.net/geany/?rev=5845&view=rev
Author:   colombanw
Date:     2011-06-13 21:01:42 +0000 (Mon, 13 Jun 2011)

Log Message:
-----------
Drop another wrapper for GTK 2.12 tooltips

Modified Paths:
--------------
    trunk/src/geanymenubuttonaction.c

Modified: trunk/src/geanymenubuttonaction.c
===================================================================
--- trunk/src/geanymenubuttonaction.c	2011-06-13 20:43:35 UTC (rev 5844)
+++ trunk/src/geanymenubuttonaction.c	2011-06-13 21:01:42 UTC (rev 5845)
@@ -78,21 +78,6 @@
 }
 
 
-static void set_arrow_tooltip(GtkMenuToolButton *button, const gchar *tooltip)
-{
-#if GTK_CHECK_VERSION(2, 12, 0)
-	gtk_menu_tool_button_set_arrow_tooltip_text(button, tooltip);
-#else
-	static GtkTooltips *tooltips = NULL;
-
-	if (G_UNLIKELY(tooltips == NULL))
-		tooltips = gtk_tooltips_new();
-
-	gtk_menu_tool_button_set_arrow_tooltip(button, tooltips, tooltip, NULL);
-#endif
-}
-
-
 static void geany_menu_button_action_set_property(GObject *object, guint prop_id,
 												  const GValue *value, GParamSpec *pspec)
 {
@@ -118,7 +103,7 @@
 	GeanyMenubuttonActionPrivate *priv = GEANY_MENU_BUTTON_ACTION_GET_PRIVATE(action);
 
 	toolitem = g_object_new(GTK_TYPE_MENU_TOOL_BUTTON, NULL);
-	set_arrow_tooltip(GTK_MENU_TOOL_BUTTON(toolitem), priv->tooltip_arrow);
+	gtk_menu_tool_button_set_arrow_tooltip_text(GTK_MENU_TOOL_BUTTON(toolitem), priv->tooltip_arrow);
 
 	return toolitem;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list