gdm r6609 - in trunk: . gui/user-switch-applet
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6609 - in trunk: . gui/user-switch-applet
- Date: Wed, 26 Nov 2008 04:58:10 +0000 (UTC)
Author: matthiasc
Date: Wed Nov 26 04:58:10 2008
New Revision: 6609
URL: http://svn.gnome.org/viewvc/gdm?rev=6609&view=rev
Log:
Drop deprecated GTK+ api
Modified:
trunk/ChangeLog
trunk/gui/user-switch-applet/applet.c
Modified: trunk/gui/user-switch-applet/applet.c
==============================================================================
--- trunk/gui/user-switch-applet/applet.c (original)
+++ trunk/gui/user-switch-applet/applet.c Wed Nov 26 04:58:10 2008
@@ -88,8 +88,6 @@
GtkRadioButton *radio;
} SelectorResponseData;
-static GtkTooltips *tooltips = NULL;
-
static void reset_icon (GdmAppletData *adata);
static void update_label (GdmAppletData *adata);
@@ -483,7 +481,6 @@
}
g_object_unref (adata->client);
g_object_unref (adata->manager);
- g_object_unref (tooltips);
g_free (adata);
}
@@ -1242,15 +1239,7 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]