aboutsummaryrefslogtreecommitdiff
path: root/src/alertpanel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-13 03:01:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-13 03:01:16 +0000
commit623ac54bc49ae872b63cc8ae556b00049ebdf187 (patch)
tree2a9005e4cbc96895ae1c72d93ab39cc2b9b50169 /src/alertpanel.c
parent485f2afb6fa7355731467a99711644e8c7dcfd8c (diff)
made widget spacings of some dialogs dpi-aware.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3444 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/alertpanel.c')
-rw-r--r--src/alertpanel.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/alertpanel.c b/src/alertpanel.c
index 7da313ce..ebe288bb 100644
--- a/src/alertpanel.c
+++ b/src/alertpanel.c
@@ -219,6 +219,7 @@ static void alertpanel_create(const gchar *title,
GtkWidget *button3;
const gchar *label2;
const gchar *label3;
+ gint spacing;
debug_print(_("Creating alert panel dialog...\n"));
@@ -241,8 +242,9 @@ static void alertpanel_create(const gchar *title,
G_CALLBACK(alertpanel_focus_out), NULL);
/* for title icon, label and message */
- hbox = gtk_hbox_new(FALSE, 12);
- gtk_container_set_border_width(GTK_CONTAINER(hbox), 12);
+ spacing = 12 * gtkut_get_dpi_multiplier();
+ hbox = gtk_hbox_new(FALSE, spacing);
+ gtk_container_set_border_width(GTK_CONTAINER(hbox), spacing);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
hbox, FALSE, FALSE, 0);
@@ -270,7 +272,7 @@ static void alertpanel_create(const gchar *title,
gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
/* for title and message */
- vbox = gtk_vbox_new(FALSE, 12);
+ vbox = gtk_vbox_new(FALSE, spacing);
gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0);
label = gtk_label_new(title);
@@ -319,7 +321,7 @@ static void alertpanel_create(const gchar *title,
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(disable_chkbtn),
TRUE);
gtk_box_pack_start(GTK_BOX(hbox), disable_chkbtn,
- FALSE, FALSE, 12);
+ FALSE, FALSE, spacing);
g_signal_connect(G_OBJECT(disable_chkbtn), "toggled",
G_CALLBACK(alertpanel_button_toggled),
GUINT_TO_POINTER(G_ALERTDISABLE));
@@ -340,7 +342,7 @@ static void alertpanel_create(const gchar *title,
gtk_box_pack_end(GTK_BOX(GTK_DIALOG(dialog)->action_area),
confirm_area, FALSE, FALSE, 0);
- gtk_container_set_border_width(GTK_CONTAINER(confirm_area), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(confirm_area), 5 * gtkut_get_dpi_multiplier());
gtk_widget_grab_default(button1);
gtk_widget_grab_focus(button1);
if (button2_label &&