From c07e9b263d9b01ad89b501fb195dc1547fc096a8 Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 22 Jun 2004 22:06:33 +0000 Subject: [PATCH] redraw and continue fix git-svn-id: http://ltt.polymtl.ca/svn@609 04897980-b3bd-0310-b5e0-8ef037075253 --- .../lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c | 10 ++++------ .../lttv/modules/gui/lttvwindow/lttvwindow/interface.c | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index c734f89d..1e678444 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -1287,9 +1287,8 @@ void redraw(GtkWidget *widget, gpointer user_data) g_assert(lttv_iattribute_find_by_path(tab->attributes, "hooks/redraw", LTTV_POINTER, &value)); tmp = (LttvHooks*)*(value.v_pointer); - g_assert(tmp != NULL); - - lttv_hooks_call(tmp,NULL); + if(tmp != NULL) + lttv_hooks_call(tmp,NULL); } @@ -1312,9 +1311,8 @@ void continue_processing(GtkWidget *widget, gpointer user_data) "hooks/continue", LTTV_POINTER, &value)); tmp = (LttvHooks*)*(value.v_pointer); - g_assert(tmp != NULL); - - lttv_hooks_call(tmp,NULL); + if(tmp != NULL) + lttv_hooks_call(tmp,NULL); } /* Stop the processing for the calling main window's current tab. diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/interface.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/interface.c index da688fdf..c05be458 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/interface.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/interface.c @@ -481,7 +481,7 @@ create_MWindow (void) /* Manually added by Mathieu Desnoyers */ - tmp_toolbar_icon = create_pixmap (MWindow, "stock_redraw_24.png"); + tmp_toolbar_icon = create_pixmap (MWindow, "stock_refresh_24.png"); tlbRedraw = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1), GTK_TOOLBAR_CHILD_BUTTON, NULL, -- 2.34.1