From 9830d5616c4f78ab27a8612ccba681e3929db26f Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Mon, 13 Jun 2011 21:01:42 +0000 Subject: [PATCH] Drop another wrapper for GTK 2.12 tooltips git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5845 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/geanymenubuttonaction.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/geanymenubuttonaction.c b/src/geanymenubuttonaction.c index d79d65c7..0312fcae 100644 --- a/src/geanymenubuttonaction.c +++ b/src/geanymenubuttonaction.c @@ -78,21 +78,6 @@ static void delegate_button_activated(GtkAction *action) } -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 @@ static GtkWidget *geany_menu_button_action_create_tool_item(GtkAction *action) 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; }