diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-07 04:07:14 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-07 04:07:14 +0800 |
commit | 30177ef207092d95ebbc2c835d52262618436c90 (patch) | |
tree | 0ec29d272a9850cdae573a9220eef6077af9facb /lib/egg/eggtoolbar.h | |
parent | 856bc05445cae1c838b1e1cd7a30f3ebdbe52e01 (diff) | |
download | gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.gz gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.bz2 gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.lz gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.xz gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.zst gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.zip |
Add a separator item to the editor.
2003-04-06 Marco Pesenti Gritti <marco@it.gnome.org>
* libegg/toolbareditor/egg-editable-toolbar.c: (get_dest_targets),
(editor_create_item), (update_editor_sheet):
Add a separator item to the editor.
Diffstat (limited to 'lib/egg/eggtoolbar.h')
-rw-r--r-- | lib/egg/eggtoolbar.h | 98 |
1 files changed, 51 insertions, 47 deletions
diff --git a/lib/egg/eggtoolbar.h b/lib/egg/eggtoolbar.h index 0b07962aa..b82f7ecf5 100644 --- a/lib/egg/eggtoolbar.h +++ b/lib/egg/eggtoolbar.h @@ -35,10 +35,14 @@ #include "eggtoolitem.h" +#ifndef GTK_DISABLE_DEPRECATED + /* Not needed, retained for compatibility -Yosh */ #include <gtk/gtkpixmap.h> #include <gtk/gtksignal.h> +#endif + G_BEGIN_DECLS #define EGG_TYPE_TOOLBAR (egg_toolbar_get_type ()) @@ -67,8 +71,8 @@ struct _EggToolbarChild GtkWidget *icon; GtkWidget *label; }; - #endif /* EGG_DISABLE_DEPRECATED */ + typedef struct _EggToolbar EggToolbar; typedef struct _EggToolbarClass EggToolbarClass; @@ -98,57 +102,57 @@ struct _EggToolbarClass { GtkContainerClass parent_class; - void (* orientation_changed) (EggToolbar *toolbar, - GtkOrientation orientation); - void (* style_changed) (EggToolbar *toolbar, - GtkToolbarStyle style); - void (* popup_context_menu) (EggToolbar *toolbar); + void (* orientation_changed) (EggToolbar *toolbar, + GtkOrientation orientation); + void (* style_changed) (EggToolbar *toolbar, + GtkToolbarStyle style); + void (* popup_context_menu) (EggToolbar *toolbar); + + /* these should go away/become padding when we become part of gtk+ */ + gboolean (* move_focus) (EggToolbar *toolbar, + GtkDirectionType dir); + gboolean (* focus_home) (EggToolbar *toolbar); + gboolean (* focus_end) (EggToolbar *toolbar); /* Padding for future expansion */ void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); }; -GType egg_toolbar_get_type (void) G_GNUC_CONST; -GtkWidget* egg_toolbar_new (void); - -void egg_toolbar_append_tool_item (EggToolbar *toolbar, - EggToolItem *item); -void egg_toolbar_prepend_tool_item (EggToolbar *toolbar, - EggToolItem *item); -void egg_toolbar_insert_tool_item (EggToolbar *toolbar, - EggToolItem *item, - gint pos); -void egg_toolbar_remove_tool_item (EggToolbar *toolbar, - EggToolItem *item); - -gint egg_toolbar_get_item_index (EggToolbar *toolbar, - EggToolItem *item); - -/* Style functions */ -void egg_toolbar_set_show_arrow (EggToolbar *toolbar, - gboolean show_arrow); -void egg_toolbar_set_orientation (EggToolbar *toolbar, - GtkOrientation orientation); -void egg_toolbar_set_style (EggToolbar *toolbar, - GtkToolbarStyle style); -void egg_toolbar_set_icon_size (EggToolbar *toolbar, - GtkIconSize icon_size); -void egg_toolbar_set_tooltips (EggToolbar *toolbar, - gboolean enable); -void egg_toolbar_unset_style (EggToolbar *toolbar); -void egg_toolbar_unset_icon_size (EggToolbar *toolbar); -gboolean egg_toolbar_get_show_arrow (EggToolbar *toolbar); -GtkOrientation egg_toolbar_get_orientation (EggToolbar *toolbar); -GtkToolbarStyle egg_toolbar_get_style (EggToolbar *toolbar); -GtkIconSize egg_toolbar_get_icon_size (EggToolbar *toolbar); -gboolean egg_toolbar_get_tooltips (EggToolbar *toolbar); -GList* egg_toolbar_get_tool_items (EggToolbar *toolbar); -gint egg_toolbar_get_drop_index (EggToolbar *toolbar, - gint x, - gint y); +GType egg_toolbar_get_type (void) G_GNUC_CONST; +GtkWidget* egg_toolbar_new (void); + +void egg_toolbar_append (EggToolbar *toolbar, + EggToolItem *item); +void egg_toolbar_prepend (EggToolbar *toolbar, + EggToolItem *item); +void egg_toolbar_insert (EggToolbar *toolbar, + EggToolItem *item, + gint pos); +void egg_toolbar_remove_tool_item (EggToolbar *toolbar, + EggToolItem *item); +gint egg_toolbar_get_item_index (EggToolbar *toolbar, + EggToolItem *item); +GList* egg_toolbar_get_tool_items (EggToolbar *toolbar); +gint egg_toolbar_get_drop_index (EggToolbar *toolbar, + gint x, + gint y); +void egg_toolbar_set_show_arrow (EggToolbar *toolbar, + gboolean show_arrow); +void egg_toolbar_set_orientation (EggToolbar *toolbar, + GtkOrientation orientation); +void egg_toolbar_set_style (EggToolbar *toolbar, + GtkToolbarStyle style); +void egg_toolbar_set_icon_size (EggToolbar *toolbar, + GtkIconSize icon_size); +void egg_toolbar_set_tooltips (EggToolbar *toolbar, + gboolean enable); +void egg_toolbar_unset_style (EggToolbar *toolbar); +void egg_toolbar_unset_icon_size (EggToolbar *toolbar); +gboolean egg_toolbar_get_show_arrow (EggToolbar *toolbar); +GtkOrientation egg_toolbar_get_orientation (EggToolbar *toolbar); +GtkToolbarStyle egg_toolbar_get_style (EggToolbar *toolbar); +GtkIconSize egg_toolbar_get_icon_size (EggToolbar *toolbar); +gboolean egg_toolbar_get_tooltips (EggToolbar *toolbar); #ifndef EGG_DISABLE_DEPRECATED |