[gnome-calendar/calendar-editor] source-dialog: resize dialog according to the mode



commit fe852b7620860157e25ecde3e5bcee1c24bd2106
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 9 14:06:45 2015 -0200

    source-dialog: resize dialog according to the mode

 src/gcal-source-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index ae060ee..560509a 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -225,9 +225,14 @@ gcal_source_dialog_set_mode (GcalSourceDialog    *dialog,
 
   if (!edit_mode)
     {
+      gtk_window_resize (GTK_WINDOW (dialog), 550, 500);
       gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), _("Add Calendar"));
       gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), "");
     }
+  else
+    {
+      gtk_window_resize (GTK_WINDOW (dialog), 550, 250);
+    }
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]