diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkdisplaypanel-int.h | 2 | ||||
-rw-r--r-- | src/gtkext/gtkdisplaypanel.c | 18 |
2 files changed, 9 insertions, 11 deletions
diff --git a/src/gtkext/gtkdisplaypanel-int.h b/src/gtkext/gtkdisplaypanel-int.h index f940212..fa67dbd 100644 --- a/src/gtkext/gtkdisplaypanel-int.h +++ b/src/gtkext/gtkdisplaypanel-int.h @@ -116,8 +116,6 @@ struct _GtkDisplayPanelClass /* Signaux */ - void (* move_request) (GtkDisplayPanel *, const vmpa2t *); - void (* caret_moved) (GtkDisplayPanel *, const vmpa2t *); }; diff --git a/src/gtkext/gtkdisplaypanel.c b/src/gtkext/gtkdisplaypanel.c index 12a6af4..15d257f 100644 --- a/src/gtkext/gtkdisplaypanel.c +++ b/src/gtkext/gtkdisplaypanel.c @@ -28,6 +28,7 @@ #include "gtkdisplaypanel-int.h" +#include "../glibext/gbinarycursor.h" // REMME #include "../glibext/gloadedpanel-int.h" @@ -154,14 +155,6 @@ static void gtk_display_panel_class_init(GtkDisplayPanelClass *class) panel_class->compute_inc = gtk_display_panel_compute_scroll_inc; - g_signal_new("move-request", - GTK_TYPE_DISPLAY_PANEL, - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkDisplayPanelClass, move_request), - NULL, NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, 1, G_TYPE_POINTER); - g_signal_new("caret-moved", GTK_TYPE_DISPLAY_PANEL, G_SIGNAL_RUN_LAST, @@ -1028,7 +1021,14 @@ void _gtk_display_panel_scroll_to_cursor(GtkDisplayPanel *panel, const GLineCurs void gtk_display_panel_request_move(GtkDisplayPanel *panel, const vmpa2t *addr) { - g_signal_emit_by_name(panel, "move-request", addr); + GLineCursor *___tmp; + + ___tmp = g_binary_cursor_new(); + g_binary_cursor_update(G_BINARY_CURSOR(___tmp), addr); + + g_loaded_panel_request_move(G_LOADED_PANEL(panel), ___tmp, false); + + g_object_unref(G_OBJECT(___tmp)); } |