aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-02-19 08:35:59 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-02-19 09:44:24 +0800
commitfcb29478f605deb787c62fc7567c5c7f897585bb (patch)
treeec765625b528f38d34c0b1795abb588227b1d95b /e-util
parent1b25ab52f7709a0eae7493fb933fa62376ead288 (diff)
downloadgsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.tar
gsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.tar.gz
gsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.tar.bz2
gsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.tar.lz
gsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.tar.xz
gsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.tar.zst
gsoc2013-evolution-fcb29478f605deb787c62fc7567c5c7f897585bb.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-alert-dialog.c10
-rw-r--r--e-util/e-util.h2
2 files changed, 9 insertions, 3 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);
}
diff --git a/e-util/e-util.h b/e-util/e-util.h
index 2c1cc8ea5e..554c9300b1 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -140,7 +140,7 @@ gchar * e_util_guess_mime_type (const gchar *filename,
GSList * e_util_get_category_filter_options
(void);
-GList * e_util_get_searchable_categories(void);
+GList * e_util_get_searchable_categories (void);
void e_util_set_source_combo_box_list
(GtkWidget *source_combo_box,