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/glibext/gloadedpanel.c | |
parent | 7a009c76657478c9270acec0c2b236523bfd68eb (diff) |
Updated the move entry from database items.
Diffstat (limited to 'src/glibext/gloadedpanel.c')
-rw-r--r-- | src/glibext/gloadedpanel.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/glibext/gloadedpanel.c b/src/glibext/gloadedpanel.c index 5f43821..8bf750a 100644 --- a/src/glibext/gloadedpanel.c +++ b/src/glibext/gloadedpanel.c @@ -24,6 +24,7 @@ #include "gloadedpanel.h" +#include "chrysamarshal.h" #include "gloadedpanel-int.h" @@ -51,6 +52,13 @@ G_DEFINE_INTERFACE(GLoadedPanel, g_loaded_panel, G_TYPE_OBJECT) static void g_loaded_panel_default_init(GLoadedPanelInterface *iface) { + g_signal_new("move-request", + G_TYPE_LOADED_PANEL, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GLoadedPanelIface, move_request), + NULL, NULL, + g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN, + G_TYPE_NONE, 2, G_TYPE_LINE_CURSOR, G_TYPE_BOOLEAN); } @@ -159,6 +167,27 @@ void g_loaded_panel_set_cursor(GLoadedPanel *panel, const GLineCursor *cursor) /****************************************************************************** * * +* Paramètres : panel = composant GTK à manipuler. * +* cursor = emplacement à cibler pour un déplacement. * +* save = le changement est-il majeur ? * +* * +* Description : Demande à qui veut répondre un déplacement du curseur. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_loaded_panel_request_move(GLoadedPanel *panel, const GLineCursor *cursor, gboolean save) +{ + g_signal_emit_by_name(panel, "move-request", cursor, save); + +} + + +/****************************************************************************** +* * * Paramètres : panel = composant GTK à manipuler. * * cairo = assistant pour la création de rendus. * * area = taille de la surface réduite à disposition. * |