summaryrefslogtreecommitdiff
path: root/gui/user-switch-applet
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-11-26 04:58:10 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-11-26 04:58:10 +0000
commite259c339df3e9d09b43d2e3fdc49ce1cf1a96ea3 (patch)
treeb1b69f2985447ac2e413d8086dc718a0faeb99a4 /gui/user-switch-applet
parentcbb6e745cd0c6a25123ea782de61afa631545e34 (diff)
downloadgdm-e259c339df3e9d09b43d2e3fdc49ce1cf1a96ea3.tar.gz
Drop deprecated GTK+ api
svn path=/trunk/; revision=6609
Diffstat (limited to 'gui/user-switch-applet')
-rw-r--r--gui/user-switch-applet/applet.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gui/user-switch-applet/applet.c b/gui/user-switch-applet/applet.c
index f2444a3f..fe81c4db 100644
--- a/gui/user-switch-applet/applet.c
+++ b/gui/user-switch-applet/applet.c
@@ -88,8 +88,6 @@ typedef struct _SelectorResponseData
GtkRadioButton *radio;
} SelectorResponseData;
-static GtkTooltips *tooltips = NULL;
-
static void reset_icon (GdmAppletData *adata);
static void update_label (GdmAppletData *adata);
@@ -483,7 +481,6 @@ gdm_applet_data_free (GdmAppletData *adata)
}
g_object_unref (adata->client);
g_object_unref (adata->manager);
- g_object_unref (tooltips);
g_free (adata);
}
@@ -1242,15 +1239,7 @@ fill_applet (PanelApplet *applet)
adata->client = gconf_client_get_default ();
- if (tooltips == NULL) {
- tooltips = gtk_tooltips_new ();
- g_object_ref (tooltips);
- gtk_object_sink (GTK_OBJECT (tooltips));
- } else {
- g_object_ref (tooltips);
- }
-
- gtk_tooltips_set_tip (tooltips, GTK_WIDGET (applet), _("Change account settings and status"), NULL);
+ gtk_widget_set_tooltip_text (GTK_WIDGET (applet), _("Change account settings and status"));
gtk_container_set_border_width (GTK_CONTAINER (applet), 0);
gtk_widget_set_name (GTK_WIDGET (applet), "gdm-user-switch-applet");
panel_applet_set_flags (applet, PANEL_APPLET_EXPAND_MINOR);