diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-05 10:28:15 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-05 10:44:28 (GMT) |
commit | 333e68541e376a7b86703fad8e917f71c0f243d0 (patch) | |
tree | a658682ed01ba8dbb4d5ad0edab4999dd9e9ff54 /src/gui | |
parent | 1e3fa9b79ebe55698e2aa7d5484baec7e8400a8f (diff) |
Extended the plugin API to include some panel events.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/panel.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/panel.c b/src/gui/panel.c index a509f40..976a2d7 100644 --- a/src/gui/panel.c +++ b/src/gui/panel.c @@ -38,6 +38,7 @@ #include "../gtkext/gtkdockable-int.h" #include "../gtkext/named.h" #include "../plugins/dt.h" +#include "../plugins/pglist.h" @@ -601,6 +602,8 @@ GPanelItem *g_panel_item_new(GType type, const char *path) register_editor_item(G_EDITOR_ITEM(result)); + notify_panel_creation(result); + singleton: if (path != NULL) @@ -818,6 +821,8 @@ void g_panel_item_dock(GPanelItem *item) if (G_PANEL_ITEM_GET_CLASS(item)->ack_dock != NULL) G_PANEL_ITEM_GET_CLASS(item)->ack_dock(item); + notify_panel_docking(item, true); + } @@ -895,6 +900,8 @@ void g_panel_item_undock(GPanelItem *item) if (G_PANEL_ITEM_GET_CLASS(item)->ack_undock != NULL) G_PANEL_ITEM_GET_CLASS(item)->ack_undock(item); + notify_panel_docking(item, false); + personality = gtk_panel_item_class_get_personality(G_PANEL_ITEM_GET_CLASS(item)); if (personality != PIP_PERSISTENT_SINGLETON) |