void open_traceset(GtkWidget * widget, gpointer user_data)
{
g_printf("Open a trace set\n");
+
+
}
void add_trace(GtkWidget * widget, gpointer user_data)
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:
}
-void insertMenuToolbarItem(mainWindow * mw)
+void insertMenuToolbarItem(mainWindow * mw, gpointer user_data)
{
int i;
GdkPixbuf *pixbuf;
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);
/* 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);