From c64c7ea1c886522c309e54bd74a2e506b7640e9e Mon Sep 17 00:00:00 2001 From: yangxx Date: Wed, 15 Oct 2003 20:58:03 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@311 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/mainWin/src/callbacks.c | 8 +++++--- .../poly/lttv/modules/gui/mainWin/src/callbacks.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c index 11e92228..7862acfd 100644 --- a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c @@ -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); diff --git a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.h b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.h index 719485e4..73667051 100644 --- a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.h +++ b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.h @@ -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); -- 2.34.1