aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-alert-dialog.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-02-19 08:35:59 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:36 +0800
commit3b6c8972a51d635309b789b1aef9034ca23dc737 (patch)
tree3e2843b8f664df4c022b6cf755828a1296fd5718 /e-util/e-alert-dialog.c
parent333ccc8abf033453996e4a7e16712f2fc3b9e05a (diff)
downloadgsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.tar
gsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.tar.gz
gsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.tar.bz2
gsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.tar.lz
gsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.tar.xz
gsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.tar.zst
gsoc2013-evolution-3b6c8972a51d635309b789b1aef9034ca23dc737.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-alert-dialog.c')
-rw-r--r--e-util/e-alert-dialog.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c
index f714574b01..e9fea52052 100644
--- a/e-util/e-alert-dialog.c
+++ b/e-util/e-alert-dialog.c
@@ -121,6 +121,7 @@ alert_dialog_constructed (GObject *object)
GList *actions;
const gchar *primary, *secondary;
gint min_width = -1, prefer_width = -1;
+ gint height;
/* Chain up to parent's constructed() method. */
G_OBJECT_CLASS (e_alert_dialog_parent_class)->constructed (object);
@@ -219,9 +220,14 @@ alert_dialog_constructed (GObject *object)
widget = GTK_WIDGET (dialog);
- gtk_widget_get_preferred_width_for_height (widget, gtk_widget_get_allocated_height (widget), &min_width, &prefer_width);
+ height = gtk_widget_get_allocated_height (widget);
+ gtk_widget_get_preferred_width_for_height (
+ widget, height, &min_width, &prefer_width);
if (min_width < prefer_width)
- gtk_window_set_default_size (GTK_WINDOW (dialog), MIN ((min_width + prefer_width) / 2, min_width * 5 / 4), -1);
+ gtk_window_set_default_size (
+ GTK_WINDOW (dialog), MIN (
+ (min_width + prefer_width) / 2,
+ min_width * 5 / 4), -1);
pango_attr_list_unref (list);
}