diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | plugin/test/test.c | 4 | ||||
-rw-r--r-- | src/notificationwindow.c | 6 |
3 files changed, 10 insertions, 5 deletions
@@ -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); |