[notification-daemon] Add a bit of padding to the top of the image
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [notification-daemon] Add a bit of padding to the top of the image
- Date: Fri, 29 Jan 2010 10:25:23 +0000 (UTC)
commit 10b86bbc828840f9c64adfb537d6b1ed461c28b1
Author: William Jon McCann <jmccann redhat com>
Date: Fri Jan 29 05:21:51 2010 -0500
Add a bit of padding to the top of the image
Makes it align better with the Summary text.
src/themes/slider/theme.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c
index 9c986ea..22a3f57 100644
--- a/src/themes/slider/theme.c
+++ b/src/themes/slider/theme.c
@@ -478,7 +478,9 @@ create_notification (UrlClickedCb url_clicked)
FALSE, FALSE, 0);
/* First row (icon, vbox, close) */
- windata->iconbox = gtk_hbox_new (FALSE, 0);
+ windata->iconbox = gtk_alignment_new (0.5, 0, 0, 0);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (windata->iconbox),
+ 5, 0, 0, 0);
gtk_widget_show (windata->iconbox);
gtk_box_pack_start (GTK_BOX (windata->main_hbox),
windata->iconbox,
@@ -486,10 +488,7 @@ create_notification (UrlClickedCb url_clicked)
gtk_widget_set_size_request (windata->iconbox, BODY_X_OFFSET, -1);
windata->icon = gtk_image_new ();
- gtk_box_pack_start (GTK_BOX (windata->iconbox),
- windata->icon,
- TRUE, TRUE, 0);
- gtk_misc_set_alignment (GTK_MISC (windata->icon), 0.5, 0);
+ gtk_container_add (GTK_CONTAINER (windata->iconbox), windata->icon);
vbox = gtk_vbox_new (FALSE, 6);
gtk_widget_show (vbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]