[solang] Added an expanded toolbar separator to solang.ui



commit bbc682628ea0c6ad6e5bbafe02d6a7640a5b0f24
Author: Debarshi Ray <rishi gnu org>
Date:   Fri Dec 4 15:33:35 2009 +0200

    Added an expanded toolbar separator to solang.ui
    
    Previously we were appending a widget created separately in
    MainWindow. It is better to be consistent and use Gtk::UIManager.

 data/solang.ui                  |    1 +
 src/application/main-window.cpp |    6 ------
 src/application/main-window.h   |    2 --
 3 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/data/solang.ui b/data/solang.ui
index 3a9f6a6..b98e557 100644
--- a/data/solang.ui
+++ b/data/solang.ui
@@ -52,5 +52,6 @@
 		<separator name="ToolBarSeparator3"/>
 		<toolitem action="ActionViewFullScreen"/>
 		<placeholder name="PlaceholderFullScreenToolBar"/>
+		<separator name="ToolBarSeparatorN" expand="true"/>
 	</toolbar>
 </ui>
diff --git a/src/application/main-window.cpp b/src/application/main-window.cpp
index 411c4a1..5595a32 100644
--- a/src/application/main-window.cpp
+++ b/src/application/main-window.cpp
@@ -205,7 +205,6 @@ MainWindow::MainWindow() throw() :
     uiManager_(Gtk::UIManager::create()),
     uiID_(uiManager_->add_ui_from_file(uiFile)),
     vBox_(false, 0),
-    separatorToolItem_(),
     spinnerToolItem_(),
     hBox_(false, 6),
     statusBar_(),
@@ -335,11 +334,6 @@ MainWindow::MainWindow() throw() :
     {
         tool_bar->set_toolbar_style( Gtk::TOOLBAR_ICONS );
         //We don't need no stinkin' text :-P
-        gtk_separator_tool_item_set_draw(separatorToolItem_.gobj(),
-                                         FALSE);
-        separatorToolItem_.set_expand(true);
-        tool_bar->append(separatorToolItem_);
-
         tool_bar->append(spinnerToolItem_);
 
         vBox_.pack_start(*tool_bar, Gtk::PACK_SHRINK, 0);
diff --git a/src/application/main-window.h b/src/application/main-window.h
index e55b025..d9364cd 100644
--- a/src/application/main-window.h
+++ b/src/application/main-window.h
@@ -129,8 +129,6 @@ class MainWindow :
 
         Gtk::VBox vBox_;
 
-        Gtk::SeparatorToolItem separatorToolItem_;
-
         SpinnerToolItem spinnerToolItem_;
 
         Gtk::HBox hBox_;



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