summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-10-16 00:14:18 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-10-16 00:14:18 +0000
commitab236ad8cc538d470a5b8b3cc9344a9e785edb64 (patch)
tree4b99c5b7d6b82eb91ab2876456640280d789e36d /gui
parent27a9d7c5f53b0b2bb41ad43294a5a257e7754651 (diff)
downloadgdm-ab236ad8cc538d470a5b8b3cc9344a9e785edb64.tar.gz
Remove the user icon from the top menu bar.
2008-10-15 William Jon McCann <jmccann@redhat.com> * gui/user-switch-applet/applet.c (reset_icon), (setup_current_user): Remove the user icon from the top menu bar. svn path=/trunk/; revision=6572
Diffstat (limited to 'gui')
-rw-r--r--gui/user-switch-applet/applet.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gui/user-switch-applet/applet.c b/gui/user-switch-applet/applet.c
index f24d65de..193331db 100644
--- a/gui/user-switch-applet/applet.c
+++ b/gui/user-switch-applet/applet.c
@@ -992,15 +992,6 @@ reset_icon (GdmAppletData *adata)
return;
}
- pixbuf = gdm_user_render_icon (adata->user, adata->panel_size);
- if (pixbuf == NULL) {
- return;
- }
-
- image = gtk_image_menu_item_get_image (GTK_IMAGE_MENU_ITEM (adata->menuitem));
- gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf);
- g_object_unref (pixbuf);
-
if (adata->user_item != NULL) {
image = gdm_entry_menu_item_get_image (GDM_ENTRY_MENU_ITEM (adata->user_item));
pixbuf = gdm_user_render_icon (adata->user, adata->panel_size * 2);
@@ -1059,8 +1050,6 @@ setup_current_user (GdmAppletData *adata)
adata->menuitem = gtk_image_menu_item_new_with_label (name);
label = GTK_BIN (adata->menuitem)->child;
_gtk_label_make_bold (GTK_LABEL (label));
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (adata->menuitem),
- gtk_image_new ());
gtk_menu_shell_append (GTK_MENU_SHELL (adata->menubar), adata->menuitem);
gtk_widget_show (adata->menuitem);