aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-13 02:08:13 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-13 02:08:13 +0000
commite8a401ac2a1008644992c7728b7d66d0c156e71d (patch)
tree2dac276dd4886f04a024b160517af0dd0cea4e61
parent692b3584b95fa4ed31140e1c1aca02af8eea43fd (diff)
made more dialogs size DPI-aware.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3442 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog6
-rw-r--r--src/export.c2
-rw-r--r--src/import.c2
-rw-r--r--src/inputdialog.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c65be726..bb921618 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-13
+
+ * src/inputdialog.c
+ src/export.c
+ src/import.c: made more dialogs size DPI-aware.
+
2014-11-12
* src/sylpheed.rc.in
diff --git a/src/export.c b/src/export.c
index 73ede0d6..9e449950 100644
--- a/src/export.c
+++ b/src/export.c
@@ -379,7 +379,7 @@ static void export_create(void)
gtk_container_set_border_width(GTK_CONTAINER(table), 8);
gtk_table_set_row_spacings(GTK_TABLE(table), 8);
gtk_table_set_col_spacings(GTK_TABLE(table), 8);
- gtk_widget_set_size_request(table, 420, -1);
+ gtk_widget_set_size_request(table, 420 * gtkut_get_dpi_multiplier(), -1);
format_label = gtk_label_new(_("File format:"));
gtk_table_attach(GTK_TABLE(table), format_label, 0, 1, 0, 1,
diff --git a/src/import.c b/src/import.c
index 2e48a9ac..59bc6f74 100644
--- a/src/import.c
+++ b/src/import.c
@@ -618,7 +618,7 @@ static void import_create(void)
gtk_container_set_border_width(GTK_CONTAINER(table), 8);
gtk_table_set_row_spacings(GTK_TABLE(table), 8);
gtk_table_set_col_spacings(GTK_TABLE(table), 8);
- gtk_widget_set_size_request(table, 420, -1);
+ gtk_widget_set_size_request(table, 420 * gtkut_get_dpi_multiplier(), -1);
format_label = gtk_label_new(_("File format:"));
gtk_table_attach(GTK_TABLE(table), format_label, 0, 1, 0, 1,
diff --git a/src/inputdialog.c b/src/inputdialog.c
index 37bfd76d..928eb506 100644
--- a/src/inputdialog.c
+++ b/src/inputdialog.c
@@ -178,7 +178,7 @@ static void input_dialog_create(InputDialogType dialog_type)
dialog = gtk_dialog_new();
gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
- gtk_widget_set_size_request(dialog, DIALOG_WIDTH, -1);
+ gtk_widget_set_size_request(dialog, DIALOG_WIDTH * gtkut_get_dpi_multiplier(), -1);
gtk_container_set_border_width
(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 5);
gtk_window_set_position(GTK_WINDOW(dialog),