git-svn-id: http://ltt.polymtl.ca/svn@311 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 15 Oct 2003 20:58:03 +0000 (20:58 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 15 Oct 2003 20:58:03 +0000 (20:58 +0000)
ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c
ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.h

index 11e92228d310adb781525ba7ebccdce862b4a446..7862acfd9f77753779cb64e08d32c72f818eb997 100644 (file)
@@ -168,6 +168,8 @@ void delete_viewer(GtkWidget * widget, gpointer user_data)
 void open_traceset(GtkWidget * widget, gpointer user_data)
 {
   g_printf("Open a trace set\n");
+  
+
 }
 
 void add_trace(GtkWidget * widget, gpointer user_data)
@@ -464,7 +466,7 @@ on_load_module_activate                (GtkMenuItem     *menuitem,
        lttv_module_load(str1, mwData->winCreationData->argc,mwData->winCreationData->argv);
       else
        lttv_module_load(str1, 0,NULL);
-      insertMenuToolbarItem(mwData);
+      g_slist_foreach(Main_Window_List, insertMenuToolbarItem, NULL);
       g_strfreev(dir);
     case GTK_RESPONSE_REJECT:
     case GTK_RESPONSE_CANCEL:
@@ -793,7 +795,7 @@ void destroy_hash_data(gpointer data)
 }
 
 
-void insertMenuToolbarItem(mainWindow * mw)
+void insertMenuToolbarItem(mainWindow * mw, gpointer user_data)
 {
   int i;
   GdkPixbuf *pixbuf;
@@ -956,7 +958,7 @@ void constructMainWin(mainWindow * parent, WindowCreationData * win_creation_dat
   newMWindow->hash_toolbar_item = g_hash_table_new_full (g_str_hash, g_str_equal,
                                              destroy_hash_key, destroy_hash_data);
 
-  insertMenuToolbarItem(newMWindow);
+  insertMenuToolbarItem(newMWindow, NULL);
   
   g_object_set_data(G_OBJECT(newWindow), "mainWindow", (gpointer)newMWindow);    
 
index 719485e4a9f242e637ca4f919bf3b590d503efb5..73667051f9fe43cf48a833543a4f3be9d7d4d525 100644 (file)
@@ -5,7 +5,7 @@
 /* internal functions */
 
 void createNewWindow(GtkWidget* widget, gpointer user_data, gboolean clone);
-void insertMenuToolbarItem(mainWindow * mw);
+void insertMenuToolbarItem(mainWindow * mw, gpointer user_data);
 void constructMainWin(mainWindow * parent, WindowCreationData *win_creation_data,
                      gboolean first_window);
 void mainWindow_free(mainWindow * mw);
This page took 0.026764 seconds and 4 git commands to generate.