aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-user-creatable-items-handler.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2008-07-14 19:38:30 +0800
committerPaolo Borelli <pborelli@src.gnome.org>2008-07-14 19:38:30 +0800
commitc049cedd6969d77649db15b71f4ba112d4a2c065 (patch)
treeab42a98360f79974bcefa46a83cd3610aec1c6bf /shell/e-user-creatable-items-handler.c
parent5dcc53160bfb1202e53fece360838f39646a6d09 (diff)
downloadgsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.gz
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.bz2
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.lz
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.xz
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.zst
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.zip
** Fix for bug #542889
2008-17-14 Paolo Borelli <pborelli@katamail.com> ** Fix for bug #542889 Port to the new gtk tooltip api. svn path=/trunk/; revision=35744
Diffstat (limited to 'shell/e-user-creatable-items-handler.c')
-rw-r--r--shell/e-user-creatable-items-handler.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/shell/e-user-creatable-items-handler.c b/shell/e-user-creatable-items-handler.c
index ed17f4934c..f18deeb527 100644
--- a/shell/e-user-creatable-items-handler.c
+++ b/shell/e-user-creatable-items-handler.c
@@ -88,7 +88,6 @@ struct _EUserCreatableItemsHandlerPrivate {
char *menu_xml;
GtkWidget *new_button, *new_menu;
BonoboControl *new_control;
- GtkTooltips *tooltips;
GtkAccelGroup *accel_group;
};
@@ -744,11 +743,10 @@ setup_toolbar_button (EUserCreatableItemsHandler *handler)
gconf_client_notify_add(gconf,"/desktop/gnome/interface/toolbar_style",
(GConfClientNotifyFunc)new_button_change, handler, NULL, NULL);
+ gtk_widget_set_tooltip_text (priv->new_button,
+ priv->default_menu_item->tooltip);
gtk_widget_show (priv->new_button);
- priv->tooltips = gtk_tooltips_new ();
- g_object_ref_sink (priv->tooltips);
- gtk_tooltips_set_tip (priv->tooltips, priv->new_button,
- priv->default_menu_item->tooltip, NULL);
+
g_free (val);
g_object_unref (gconf);
}
@@ -796,11 +794,6 @@ impl_dispose (GObject *object)
priv->new_control = NULL;
}
- if (priv->tooltips) {
- g_object_unref (priv->tooltips);
- priv->tooltips = NULL;
- }
-
if (priv->accel_group) {
g_object_unref (priv->accel_group);
priv->accel_group = NULL;