[gnome-control-center] online-accounts: Fix the add account dialog's size with newer GTK+
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] online-accounts: Fix the add account dialog's size with newer GTK+
- Date: Wed, 9 Mar 2016 12:48:08 +0000 (UTC)
commit cc144a070705060061fa95672641b8caa12525db
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Mar 1 14:28:51 2016 +0100
online-accounts: Fix the add account dialog's size with newer GTK+
We should be pairing gtk_window_get_size with
gtk_window_set_default_size to avoid inconsistencies between the size
reading and setting code. eg., in recent GTK+ versions,
gtk_window_get_size and gtk_widget_set_size_request differ in their
interpretation of the CSD chrome.
However, gtk_window_set_default_size didn't work with non-resizable
GtkWindows, until now.
https://bugzilla.gnome.org/show_bug.cgi?id=762548
.../cc-online-accounts-add-account-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
index 16f477d..afaf190 100644
--- a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
+++ b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ -224,7 +224,7 @@ goa_panel_add_account_dialog_realize (GtkWidget *widget)
gint height;
gtk_window_get_size (parent, &width, &height);
- gtk_widget_set_size_request (GTK_WIDGET (add_account), (gint) (0.5 * width), (gint) (1.25 * height));
+ gtk_window_set_default_size (GTK_WINDOW (add_account), (gint) (0.5 * width), (gint) (1.25 * height));
}
GTK_WIDGET_CLASS (goa_panel_add_account_dialog_parent_class)->realize (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]