[ekiga/ds-gtk-application] Main Window: Fixed problem where the main window is too wide.



commit 8c15e5e275563fb6a619ac9cbaaf202e07f7f720
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Oct 12 11:43:58 2014 +0200

    Main Window: Fixed problem where the main window is too wide.
    
    Use the GtkStackSwitcher as GtkHeaderBar custom title widget. Without
    this, the GtkHeaderBar requests too much space by default for the
    potential title GtkLabel (which we don't use anyway).

 lib/engine/gui/gtk-frontend/main_window.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/main_window.cpp b/lib/engine/gui/gtk-frontend/main_window.cpp
index 9972ab9..4b88934 100644
--- a/lib/engine/gui/gtk-frontend/main_window.cpp
+++ b/lib/engine/gui/gtk-frontend/main_window.cpp
@@ -760,7 +760,8 @@ ekiga_main_window_init_actions_toolbar (EkigaMainWindow *mw)
 
   switcher = gtk_stack_switcher_new ();
   gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (switcher), GTK_STACK (mw->priv->main_stack));
-  gtk_header_bar_pack_start (GTK_HEADER_BAR (mw->priv->actions_toolbar), switcher);
+  gtk_header_bar_set_custom_title (GTK_HEADER_BAR (mw->priv->actions_toolbar), switcher);
+  gtk_widget_set_margin_end (GTK_WIDGET (switcher), 6);
 
   button = gtk_menu_button_new ();
   g_object_set (G_OBJECT (button), "use-popover", true, NULL);


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