diff options
Diffstat (limited to 'src/ege-adjustment-action.h')
| -rw-r--r-- | src/ege-adjustment-action.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/ege-adjustment-action.h b/src/ege-adjustment-action.h index 4a8a172e2..f63d4ed3e 100644 --- a/src/ege-adjustment-action.h +++ b/src/ege-adjustment-action.h @@ -46,7 +46,7 @@ /* Note: this file should be kept compilable as both .cpp and .c */ #include <glib.h> -#include <gtk/gtkaction.h> +#include <gtk/gtk.h> #include <glib-object.h> G_BEGIN_DECLS @@ -87,6 +87,24 @@ struct _EgeAdjustmentActionClass /** Standard Gtk type function */ GType ege_adjustment_action_get_type( void ); + +/* + * Note: This normally could be implemented via a GType property for the class to construct, + * but gtkmm classes implemented in C++ only will often not funciton properly. + * + */ + +/** Callback type for widgets creation factory */ +typedef GtkWidget* (*EgeCreateAdjWidgetCB)( GtkAdjustment *adjustment, gdouble climb_rate, guint digits ); + +/** + * Sets a factory callback to be used to create the specific widget. + * + * @param factoryCb the callback to use to create custom widgets, NULL to use the default. + */ +void ege_adjustment_action_set_compact_tool_factory( EgeCreateAdjWidgetCB factoryCb ); + + /** * Creates a new EgeAdjustmentAction instance. * This is a GtkAction subclass that manages a value stored in a |
