diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-25 22:15:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-25 22:15:32 +0800 |
commit | 96538878911586a9e9ca26b81e1916c04e538980 (patch) | |
tree | ffcfe184bab289d6917a65d850bc4ba310be0447 /e-util | |
parent | 3e1b34841d3a699f77848f5de019f18ccb2d1ca1 (diff) | |
download | gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.gz gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.bz2 gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.lz gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.xz gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.zst gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-alert-dialog.c | 11 | ||||
-rw-r--r-- | e-util/e-dialog-utils.c | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c index 09512ce17c..39b5a5f778 100644 --- a/e-util/e-alert-dialog.c +++ b/e-util/e-alert-dialog.c @@ -215,7 +215,9 @@ e_alert_dialog_constructed (GObject *obj) if (e_alert_get_scroll (alert)) { scroll = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy ((GtkScrolledWindow *)scroll, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); + gtk_scrolled_window_set_policy ( + GTK_SCROLLED_WINDOW (scroll), + GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); } w = gtk_label_new(NULL); gtk_label_set_selectable((GtkLabel *)w, TRUE); @@ -268,9 +270,12 @@ e_alert_dialog_class_init (EAlertDialogClass *klass) } GtkWidget* -e_alert_dialog_new (GtkWindow *parent, EAlert *alert) +e_alert_dialog_new (GtkWindow *parent, + EAlert *alert) { - return (GtkWidget*) g_object_new (E_TYPE_ALERT_DIALOG, "parent", parent, "alert", alert, NULL); + return g_object_new ( + E_TYPE_ALERT_DIALOG, + "parent", parent, "alert", alert, NULL); } GtkWidget* diff --git a/e-util/e-dialog-utils.c b/e-util/e-dialog-utils.c index 832d1b844a..620719665b 100644 --- a/e-util/e-dialog-utils.c +++ b/e-util/e-dialog-utils.c @@ -60,7 +60,7 @@ e_notice (gpointer parent, GtkMessageType type, const gchar *format, ...) parent = gtk_widget_get_toplevel (parent); if (parent) gtk_window_set_transient_for (GTK_WINDOW (dialog), parent); - + gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } |