ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #01383
[Branch ~indicator-applet-developers/indicator-me/trunk] Rev 93: merging in a branch with the right panel icon and whic removes the frame around the icon
Merge authors:
David Barth (dbarth)
Related merge proposals:
https://code.launchpad.net/~dbarth/indicator-me/panel-icon-and-no-frame/+merge/22565
proposed by: David Barth (dbarth)
review: Approve - Cody Russell (bratsche)
------------------------------------------------------------
revno: 93 [merge]
committer: David Barth <david.barth@xxxxxxxxxxxxx>
branch nick: indicator-me
timestamp: Thu 2010-04-01 15:04:54 +0200
message:
merging in a branch with the right panel icon and whic removes the frame around the icon
modified:
src/about-me-menu-item.c
--
lp:indicator-me
https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk
Your team ayatana-commits is subscribed to branch lp:indicator-me.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk/+edit-subscription
=== modified file 'src/about-me-menu-item.c'
--- src/about-me-menu-item.c 2010-03-11 16:22:42 +0000
+++ src/about-me-menu-item.c 2010-03-31 20:10:35 +0000
@@ -243,16 +243,6 @@
return TRUE;
}
-static void
-image_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation,
- gpointer user_data)
-{
- gint max = MAX (allocation->width, allocation->height);
-
- gtk_widget_set_size_request (widget, max, max);
-}
-
static GObject*
about_me_menu_item_constructor (GType type,
guint n_construct_properties,
@@ -268,21 +258,18 @@
priv = GET_PRIVATE (object);
- GtkWidget *frame = gtk_frame_new (NULL);
- gdouble pixels_per_em = get_pixels_per_em (frame);
- GdkPixbuf *pixbuf = load_icon ("stock_person", pixels_per_em * 3);
+ priv->label = gtk_label_new (priv->realname);
+ gdouble pixels_per_em = get_pixels_per_em (priv->label);
+ GdkPixbuf *pixbuf = load_icon ("stock_person-panel", pixels_per_em * 3);
priv->image = gtk_image_new_from_pixbuf (pixbuf);
- g_signal_connect (frame, "size-allocate", G_CALLBACK (image_size_allocate), NULL);
gtk_misc_set_padding (GTK_MISC (priv->image), 2, 2);
- gtk_container_add (GTK_CONTAINER (frame), priv->image);
align = gtk_alignment_new (0, 0.3, 0, 0);
- priv->label = gtk_label_new (priv->realname);
gtk_misc_set_padding (GTK_MISC (priv->label), 2, 2);
gtk_container_add (GTK_CONTAINER (align), priv->label);
hbox = gtk_hbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), priv->image, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), align, TRUE, TRUE, DEFAULT_PIXELS_PER_EM);
gtk_container_add (GTK_CONTAINER (object), hbox);