From c54d50c898f66de389b6dc9a86f124a42452ae21 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 8 Dec 2015 10:14:36 +0000 Subject: made sizes of more dialogs DPI-aware. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3500 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 6 ++++++ src/action.c | 9 ++++++--- src/prefs_actions.c | 5 +++-- src/subscribedialog.c | 6 +++--- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb4ae6c2..79e9365d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-12-08 + + * src/subscribedialog.c + src/prefs_actions.c + src/action.c: made sizes of more dialogs DPI-aware. + 2015-12-07 * src/prefs_template.c diff --git a/src/action.c b/src/action.c index fa7d1da1..d4c6d609 100644 --- a/src/action.c +++ b/src/action.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2006 Hiroyuki Yamamoto & The Sylpheed Claws Team + * Copyright (C) 1999-2015 Hiroyuki Yamamoto & The Sylpheed Claws Team * * 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 @@ -1110,7 +1110,9 @@ static void create_io_dialog(Children *children) gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwin), GTK_SHADOW_IN); gtk_box_pack_start(GTK_BOX(vbox), scrolledwin, TRUE, TRUE, 0); - gtk_widget_set_size_request(scrolledwin, 560, 200); + gtk_widget_set_size_request(scrolledwin, + 560 * gtkut_get_dpi_multiplier(), + 200 * gtkut_get_dpi_multiplier()); gtk_widget_hide(scrolledwin); text = gtk_text_view_new(); @@ -1137,7 +1139,8 @@ static void create_io_dialog(Children *children) gtk_widget_show(input_hbox); entry = gtk_entry_new(); - gtk_widget_set_size_request(entry, 320, -1); + gtk_widget_set_size_request + (entry, 320 * gtkut_get_dpi_multiplier(), -1); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(send_input), children); gtk_box_pack_start(GTK_BOX(input_hbox), entry, TRUE, TRUE, 0); diff --git a/src/prefs_actions.c b/src/prefs_actions.c index 1d79f3c0..47184931 100644 --- a/src/prefs_actions.c +++ b/src/prefs_actions.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2005 Hiroyuki Yamamoto & The Sylpheed Claws Team + * Copyright (C) 1999-2015 Hiroyuki Yamamoto & The Sylpheed Claws Team * * 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 @@ -281,7 +281,8 @@ static void prefs_actions_create(MainWindow *mainwin) cond_scrolledwin = gtk_scrolled_window_new(NULL, NULL); gtk_widget_show(cond_scrolledwin); - gtk_widget_set_size_request(cond_scrolledwin, -1, 150); + gtk_widget_set_size_request(cond_scrolledwin, -1, + 150 * gtkut_get_dpi_multiplier()); gtk_box_pack_start(GTK_BOX(cond_hbox), cond_scrolledwin, TRUE, TRUE, 0); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (cond_scrolledwin), diff --git a/src/subscribedialog.c b/src/subscribedialog.c index 232cd3aa..902fc352 100644 --- a/src/subscribedialog.c +++ b/src/subscribedialog.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2005 Hiroyuki Yamamoto + * Copyright (C) 1999-2015 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 @@ -195,8 +195,8 @@ static void subscribe_dialog_create(void) dialog = gtk_dialog_new(); gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, TRUE, FALSE); gtk_widget_set_size_request(dialog, - SUBSCRIBE_DIALOG_WIDTH, - SUBSCRIBE_DIALOG_HEIGHT); + SUBSCRIBE_DIALOG_WIDTH * gtkut_get_dpi_multiplier(), + SUBSCRIBE_DIALOG_HEIGHT * gtkut_get_dpi_multiplier()); gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 5); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); -- cgit v1.2.3