commit 202d007993b7fdc2f831613eecbd44ca95d616b3
Author: phantomjinx <[email protected]>
Date:   Wed Sep 15 21:13:38 2010 +0100

    Remove the main toolbar
    
    * Takes up lots of space and only has toolbar buttons from playlist display.
    
    * Playlist display buttons to be moved to context toolbar

 data/ui/gtkpod.ui |    3 ---
 src/anjuta-app.c  |   22 ++++++++++++----------
 2 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/data/ui/gtkpod.ui b/data/ui/gtkpod.ui
index b24fc5e..419c53d 100755
--- a/data/ui/gtkpod.ui
+++ b/data/ui/gtkpod.ui
@@ -55,7 +55,4 @@
                        </menu>
                </placeholder>
        </menubar>
-       <toolbar name="ToolbarMain">
-         <placeholder name="PlaceholderMusicToolbar" />
-       </toolbar>
 </ui>
diff --git a/src/anjuta-app.c b/src/anjuta-app.c
index 04383c4..a0c1ff2 100644
--- a/src/anjuta-app.c
+++ b/src/anjuta-app.c
@@ -450,16 +450,18 @@ static void anjuta_app_instance_init(AnjutaApp *app) {
     gtk_widget_show(app->menubar);
 
     /* create toolbar */
-    app->toolbar = gtk_ui_manager_get_widget(GTK_UI_MANAGER (app->ui), 
"/ToolbarMain");
-    if (!anjuta_preferences_get_bool(app->preferences, 
"anjuta.toolbar.visible"))
-        gtk_widget_hide(app->toolbar);
-    gtk_box_pack_start(GTK_BOX (main_box), app->toolbar, FALSE, FALSE, 0);
-    action = gtk_ui_manager_get_action(GTK_UI_MANAGER (app->ui), 
"/MenuMain/MenuView/Toolbar");
-    gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), 
anjuta_preferences_get_bool_with_default(app->preferences, 
"anjuta.toolbar.visible", TRUE));
-    anjuta_preferences_notify_add_string(app->preferences, 
"anjuta.toolbar.style", on_toolbar_style_changed, app, NULL);
-    style = anjuta_preferences_get(app->preferences, "anjuta.toolbar.style");
-    on_toolbar_style_changed(app->preferences, NULL, style, app);
-    g_free(style);
+    /* No toolbar to be used in gtkpod */
+    /*app->toolbar = gtk_ui_manager_get_widget(GTK_UI_MANAGER (app->ui), 
"/ToolbarMain");
+     *  if (!anjuta_preferences_get_bool(app->preferences, 
"anjuta.toolbar.visible"))
+     *  gtk_widget_hide(app->toolbar);
+     *  gtk_box_pack_start(GTK_BOX (main_box), app->toolbar, FALSE, FALSE, 0);
+     *  action = gtk_ui_manager_get_action(GTK_UI_MANAGER (app->ui), 
"/MenuMain/MenuView/Toolbar");
+     *  gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), 
anjuta_preferences_get_bool_with_default(app->preferences, 
"anjuta.toolbar.visible", TRUE));
+     *  anjuta_preferences_notify_add_string(app->preferences, 
"anjuta.toolbar.style", on_toolbar_style_changed, app, NULL);
+     *  style = anjuta_preferences_get(app->preferences, 
"anjuta.toolbar.style");
+     *  on_toolbar_style_changed(app->preferences, NULL, style, app);
+     *  g_free(style);
+     */
 
     /* Create widgets menu */
     view_menu = gtk_ui_manager_get_widget(GTK_UI_MANAGER(app->ui), 
"/MenuMain/MenuView");

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to