diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 14:31:40 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 14:31:40 (GMT) |
commit | e0d03e3eddb9d240cc21ac1b7a7ade915fd17942 (patch) | |
tree | 9543a9d1330262239f3943b8459bde1429a35dbb /src/gtkext | |
parent | 7a009c76657478c9270acec0c2b236523bfd68eb (diff) |
Updated the move entry from database items.
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)); } |