diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-03 12:39:19 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-03 12:39:19 +0100 |
commit | 7457e16d65f3595ec5eb22df58c2d667632f5f4c (patch) | |
tree | 5f4d6808ac4d21f8a4daf6b8355e488d2cbc5e0a /plugins/gtkui/gtkui_api.h | |
parent | 5d6556e72378fd85af8486eff0777bc320eaaa72 (diff) |
gtkui: added new API function to allow getting container widget from a composite widget
Diffstat (limited to 'plugins/gtkui/gtkui_api.h')
-rw-r--r-- | plugins/gtkui/gtkui_api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/gtkui/gtkui_api.h b/plugins/gtkui/gtkui_api.h index bb432d79..d4a05b24 100644 --- a/plugins/gtkui/gtkui_api.h +++ b/plugins/gtkui/gtkui_api.h @@ -107,6 +107,11 @@ typedef struct ddb_gtkui_widget_s { // look at the splitter and tabs implementation for more details void (*replace) (struct ddb_gtkui_widget_s *container, struct ddb_gtkui_widget_s *child, struct ddb_gtkui_widget_s *newchild); + // return the container widget of a composite widget + // e.g. HBox is contained in EventBox, this function should return the HBox + // the default implementation will always return the toplevel widget + GtkWidget * (*get_container) (struct ddb_gtkui_widget_s *w); + // implement this if you want to handle deadbeef broadcast messages/events int (*message) (struct ddb_gtkui_widget_s *w, uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2); @@ -175,6 +180,11 @@ typedef struct { // remove the widget from its container void (*w_remove) (ddb_gtkui_widget_t *cont, ddb_gtkui_widget_t *child); + // return the container widget of a composite widget + // e.g. HBox is contained in EventBox, this function should return the HBox + // the default implementation will always return the toplevel widget + GtkWidget * (*w_get_container) (ddb_gtkui_widget_t *w); + // function to create the standard playlist context menu (the same as // appears when right-clicked on playlist tab) GtkWidget* (*create_pltmenu) (int plt_idx); |