--- menueditor-main.c. 2007-01-12 20:45:27.000000000 -0800 +++ menueditor-main.c.nato 2007-01-12 21:33:05.000000000 -0800 @@ -54,7 +54,7 @@ xfce_textdomain (GETTEXT_PACKAGE, LOCALEDIR, "UTF-8"); - mainwin = menueditor_main_window_new (); + mainwin = menueditor_main_window_new (argv[1]); gtk_widget_show (mainwin); --- menueditor-main-window.c. 2007-01-12 20:45:50.000000000 -0800 +++ menueditor-main-window.c.nato 2007-01-12 21:33:20.000000000 -0800 @@ -397,7 +397,6 @@ gtk_widget_set_sensitive (priv->treeview, FALSE); - action_open_default_menu (NULL, mainwin); } /*************/ @@ -2330,12 +2329,18 @@ /* public methods */ /******************/ GtkWidget * -menueditor_main_window_new (void) +menueditor_main_window_new (const gchar *menuarg) { GtkWidget *obj = NULL; obj = g_object_new (menueditor_main_window_get_type (), NULL); + if ( menuarg != NULL ) { + load_menu_in_treeview ( menuarg, obj ) ; + } else { + action_open_default_menu ( NULL, obj ) ; + } + return obj; } --- menueditor-main-window.h. 2007-01-12 20:46:05.000000000 -0800 +++ menueditor-main-window.h.nato 2007-01-12 21:33:31.000000000 -0800 @@ -63,7 +63,7 @@ } ExternalEntryStyle; GtkType menueditor_main_window_get_type (void); -GtkWidget *menueditor_main_window_new (void); +GtkWidget *menueditor_main_window_new (const gchar *); void menueditor_main_window_set_menu_modified (MenuEditorMainWindow *win);