[empathy] EmpathyDebugWindow: set request widget size, drop set default size



commit e7441bf9bbef93c39d38c9b266d53ef23597e108
Author: Igor Gnatenko <i gnatenko brain gmail com>
Date:   Thu Sep 26 16:17:54 2013 +0400

    EmpathyDebugWindow: set request widget size, drop set default size
    
    Empathy debug window opens w/ weird size. This caused by scrolled
    window. In official documentation of gtk+ I look that uses:
    gtk_widget_set_size_request (window, 300, 300);
    And it's work!
    
    Set default size isn't needed.
    
    Reference: https://bugzilla.gnome.org/show_bug.cgi?id=708826
    
    Signed-off-by: Igor Gnatenko <i gnatenko brain gmail com>

 src/empathy-debug-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index e4f5e21..c195af4 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1846,7 +1846,7 @@ am_prepared_cb (GObject *am,
   empathy_set_css_provider (GTK_WIDGET (object));
 
   gtk_window_set_title (GTK_WINDOW (object), _("Debug Window"));
-  gtk_window_set_default_size (GTK_WINDOW (object), 800, 400);
+  gtk_widget_set_size_request (GTK_WIDGET (object), 600, 300);
   empathy_geometry_bind (GTK_WINDOW (object), "debug-window");
 
   g_signal_connect (object, "key-press-event",


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