redraw and continue fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 22 Jun 2004 22:06:33 +0000 (22:06 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 22 Jun 2004 22:06:33 +0000 (22:06 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@609 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/interface.c

index c734f89dc33a2b070cd20c5c5d0c28c2633d0136..1e678444220e43f70e57d51104d68a15041a4868 100644 (file)
@@ -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.
index da688fdfd35e0953fa71136b6f310a3d3cd51b06..c05be458309b849db810eccca429855bceff632e 100644 (file)
@@ -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,
This page took 0.034448 seconds and 4 git commands to generate.