[nautilus-actions] Fix GtkToolbar try to reparent



commit c52dab6442fc30f3507af488a45028684db82429
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Oct 21 22:30:39 2009 +0200

    Fix GtkToolbar try to reparent

 src/nact/nact-main-menubar.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/nact/nact-main-menubar.c b/src/nact/nact-main-menubar.c
index 7cbb686..d18d49f 100644
--- a/src/nact/nact-main-menubar.c
+++ b/src/nact/nact-main-menubar.c
@@ -1362,8 +1362,6 @@ toolbar_init( NactMainWindow *window, const gchar *pref, gboolean default_value,
 	NactApplication *application;
 	NAPivot *pivot;
 	gboolean is_active;
-	GtkUIManager *ui_manager;
-	GtkWidget *hbox, *toolbar;
 	GtkActionGroup *group;
 	GtkToggleAction *action;
 
@@ -1371,12 +1369,6 @@ toolbar_init( NactMainWindow *window, const gchar *pref, gboolean default_value,
 	pivot = nact_application_get_pivot( application );
 	is_active = na_iprefs_read_bool( NA_IPREFS( pivot ), pref, default_value );
 	if( is_active ){
-		ui_manager = ( GtkUIManager * ) g_object_get_data( G_OBJECT( window ), MENUBAR_PROP_UI_MANAGER );
-		toolbar = gtk_ui_manager_get_widget( ui_manager, path );
-		hbox = base_window_get_widget( BASE_WINDOW( window ), "ToolbarHBox" );
-		/*gtk_box_pack_start( GTK_BOX( hbox ), toolbar, TRUE, FALSE, 0 );*/
-		gtk_container_add( GTK_CONTAINER( hbox ), toolbar );
-
 		group = g_object_get_data( G_OBJECT( window ), MENUBAR_PROP_ACTIONS_GROUP );
 		action = GTK_TOGGLE_ACTION( gtk_action_group_get_action( group, item ));
 		gtk_toggle_action_set_active( action, TRUE );



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