aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-02-14 02:07:02 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-02-14 02:07:02 +0000
commit659bcd381ee6d43a5fd6b1e0fd7bf3db7dc3f529 (patch)
tree59debc50975672f76f3d62b2573692f74833c08f
parenteee3bb221a6b8a338e0ede71d73b4e0842a473f1 (diff)
adjusted paddings of notification again.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3220 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--plugin/test/test.c4
-rw-r--r--src/notificationwindow.c6
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e97fa220..62d870bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-02-13
+ * src/notificationwindow.c: adjusted paddings again.
+ plugin/test/test.c: modified notification test.
+
+2013-02-13
+
* src/notificationwindow.c: adjusted paddings.
2013-02-13
diff --git a/plugin/test/test.c b/plugin/test/test.c
index 945a53fe..21372068 100644
--- a/plugin/test/test.c
+++ b/plugin/test/test.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2011 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2013 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -147,7 +147,7 @@ static void init_done_cb(GObject *obj, gpointer data)
syl_plugin_update_check_set_check_plugin_url("http://localhost/plugin_version.txt");
syl_plugin_update_check_set_jump_plugin_url("http://localhost/plugin.html");
- syl_plugin_notification_window_open("Sylpheed app init done", "Normal text\n<b>Bold</b>\n<s>Strikethrough</s>", 5);
+ syl_plugin_notification_window_open("Sylpheed app init done", "Normal text\n<b>Bold</b>\n<s>Strikethrough</s>\n<b>This is a long text and will be truncated:</b> ABCDEFGHIJKLMNOPQRSTUVWXYZ", 5);
g_print("test: %p: app init done\n", obj);
}
diff --git a/src/notificationwindow.c b/src/notificationwindow.c
index 2e7b46e5..4c11e63b 100644
--- a/src/notificationwindow.c
+++ b/src/notificationwindow.c
@@ -139,16 +139,16 @@ gint notification_window_open(const gchar *message, const gchar *submessage,
g_signal_connect(G_OBJECT(window), "motion_notify_event",
G_CALLBACK(nwin_motion_notify), NULL);
- vbox = gtk_vbox_new(FALSE, 4);
+ vbox = gtk_vbox_new(FALSE, 8);
gtk_container_add(GTK_CONTAINER(window), vbox);
msglabel = gtk_label_new(message);
- gtk_box_pack_start(GTK_BOX(vbox), msglabel, FALSE, FALSE, 4);
+ gtk_box_pack_start(GTK_BOX(vbox), msglabel, FALSE, FALSE, 0);
sublabel = gtk_label_new("");
gtk_label_set_ellipsize(GTK_LABEL(sublabel), PANGO_ELLIPSIZE_END);
gtk_label_set_markup(GTK_LABEL(sublabel), submessage);
- gtk_box_pack_start(GTK_BOX(vbox), sublabel, FALSE, FALSE, 4);
+ gtk_box_pack_start(GTK_BOX(vbox), sublabel, FALSE, FALSE, 0);
gtk_label_set_justify(GTK_LABEL(sublabel), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment(GTK_MISC(sublabel), 0.0, 0.5);