diff options
Diffstat (limited to 'lib/egg/egg-toolbars-model.h')
-rwxr-xr-x | lib/egg/egg-toolbars-model.h | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/lib/egg/egg-toolbars-model.h b/lib/egg/egg-toolbars-model.h index 5d79787b9..5de72fbcb 100755 --- a/lib/egg/egg-toolbars-model.h +++ b/lib/egg/egg-toolbars-model.h @@ -21,7 +21,7 @@ #include <glib.h> #include <glib-object.h> -#include "gdk/gdktypes.h" +#include <gdk/gdktypes.h> G_BEGIN_DECLS @@ -37,6 +37,8 @@ typedef struct EggToolbarsModelClass EggToolbarsModelClass; typedef struct EggToolbarsModel EggToolbarsModel; typedef struct EggToolbarsModelPrivate EggToolbarsModelPrivate; +#define EGG_TOOLBAR_ITEM_TYPE "application/x-toolbar-item" + typedef enum { EGG_TB_MODEL_NOT_REMOVABLE = 1, @@ -68,12 +70,14 @@ struct EggToolbarsModelClass int position); /* Virtual Table */ - const char * (* add_item) (EggToolbarsModel *t, - int toolbar_position, - int position, - GdkAtom type, - const char *item_name); - + char * (* get_item_type) (EggToolbarsModel *t, + GdkAtom dnd_type); + char * (* get_item_id) (EggToolbarsModel *t, + const char *type, + const char *name); + char * (* get_item_name) (EggToolbarsModel *t, + const char *type, + const char *id); }; GType egg_toolbars_model_get_type (void); @@ -81,7 +85,8 @@ EggToolbarsModel *egg_toolbars_model_new (void); void egg_toolbars_model_load (EggToolbarsModel *t, const char *xml_file); void egg_toolbars_model_save (EggToolbarsModel *t, - const char *xml_file); + const char *xml_file, + const char *version); int egg_toolbars_model_add_toolbar (EggToolbarsModel *t, int position, const char *name); @@ -93,11 +98,19 @@ void egg_toolbars_model_set_flags (EggToolbarsModel *t, void egg_toolbars_model_add_separator (EggToolbarsModel *t, int toolbar_position, int position); -const char *egg_toolbars_model_add_item (EggToolbarsModel *t, +char *egg_toolbars_model_get_item_type (EggToolbarsModel *t, + GdkAtom dnd_type); +char *egg_toolbars_model_get_item_id (EggToolbarsModel *t, + const char *type, + const char *name); +char *egg_toolbars_model_get_item_name (EggToolbarsModel *t, + const char *type, + const char *id); +void egg_toolbars_model_add_item (EggToolbarsModel *t, int toolbar_position, int position, - GdkAtom type, - const char *item_name); + const char *id, + const char *type); void egg_toolbars_model_remove_toolbar (EggToolbarsModel *t, int position); void egg_toolbars_model_remove_item (EggToolbarsModel *t, |