void
-insert_viewer_wrap(GtkMenuItem *menuitem, gpointer user_data)
+insert_viewer_wrap(GtkWidget *menuitem, gpointer user_data)
{
+ GdkWindow * win;
+ GdkCursor * new;
guint val = 20;
+ GtkWidget* widget = menuitem;
+ MainWindow * mw;
+
+ new = gdk_cursor_new(GDK_X_CURSOR);
+ if(GTK_IS_MENU_ITEM(menuitem)){
+ widget = lookup_widget(menuitem, "MToolbar2");
+ }
+ win = gtk_widget_get_parent_window(widget);
+ gdk_window_set_cursor(win, new);
+ gdk_cursor_unref(new);
+ gdk_window_stick(win);
+ gdk_window_unstick(win);
+
insert_viewer((GtkWidget*)menuitem, (view_constructor)user_data);
// selected_hook(&val);
+
+ gdk_window_set_cursor(win, NULL);
}
unsigned block_num, event_num;
unsigned size = 1, count = 0;
gboolean need_backward_again, backward;
-
+ GdkWindow * win;
+ GdkCursor * new;
+ GtkWidget* widget = gtk_widget_get_parent(event_viewer_data->hbox_v);
+ if(widget){
+ new = gdk_cursor_new(GDK_X_CURSOR);
+ win = gtk_widget_get_parent_window(widget);
+ gdk_window_set_cursor(win, new);
+ gdk_cursor_unref(new);
+ gdk_window_stick(win);
+ gdk_window_unstick(win);
+ }
+
+
// if(event_number > event_viewer_data->last_event ||
// event_number + list_height-1 < event_viewer_data->first_event ||
// event_viewer_data->first_event == -1)
event_viewer_data->first_event = event_viewer_data->start_event_index ;
event_viewer_data->last_event = event_viewer_data->end_event_index ;
-
+ if(widget)
+ gdk_window_set_cursor(win, NULL);
}