diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-03 19:09:29 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-03 19:09:29 +0900 |
commit | 51f4b3f3c44e3393b1b99e238f29b1f783e1d667 (patch) | |
tree | 532e1b46091e022cbd8a3bc88c071de09c357443 /gladeui/glade-palette.h | |
parent | d4835f028d3dad920ffeb80cc0e58d98bd91de58 (diff) | |
download | glade-51f4b3f3c44e3393b1b99e238f29b1f783e1d667.tar.gz |
* Another major refactor, tasks accomplished:
- Removed GladeApp selection handling, only on the project now
- Removed "Copy" as a command, copying widgets no longer dirty documents (bug 546873)
- Removed GladeApp "active_project" concept, every interaction is associated with
a GladeProject
- Simplified GladeClipboard, the clipboard now only has a list of widgets and
not a "selection", everything is removed from the clipboard when new widgets are
added there.
- GladePalette now has a "project" property and does not need to be refreshed
by an external entity.
19 files changed, 652 insertions(+), 1135 deletions(-)
Diffstat (limited to 'gladeui/glade-palette.h')
-rw-r--r-- | gladeui/glade-palette.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gladeui/glade-palette.h b/gladeui/glade-palette.h index 373fbb9a..64aab954 100644 --- a/gladeui/glade-palette.h +++ b/gladeui/glade-palette.h @@ -47,24 +47,24 @@ typedef struct _GladePaletteClass GladePaletteClass; struct _GladePalette { - GtkVBox parent_instance; + GtkVBox parent_instance; - GladePalettePrivate *priv; + GladePalettePrivate *priv; }; struct _GladePaletteClass { - GtkVBoxClass parent_class; + GtkVBoxClass parent_class; - void (* toggled) (GladePalette *palette); - void (* refresh) (GladePalette *palette); + void (* toggled) (GladePalette *palette); + void (* refresh) (GladePalette *palette); }; typedef enum { - GLADE_ITEM_ICON_AND_LABEL, - GLADE_ITEM_ICON_ONLY, - GLADE_ITEM_LABEL_ONLY + GLADE_ITEM_ICON_AND_LABEL, + GLADE_ITEM_ICON_ONLY, + GLADE_ITEM_LABEL_ONLY } GladeItemAppearance; @@ -72,6 +72,10 @@ GType glade_palette_get_type (void) G_GNUC_CONST; GtkWidget *glade_palette_new (const GList *catalogs); +GladeProject *glade_palette_get_project (GladePalette *palette); +void glade_palette_set_project (GladePalette *palette, + GladeProject *project); + void glade_palette_deselect_current_item (GladePalette *palette, gboolean sticky_aware); @@ -92,8 +96,6 @@ void glade_palette_set_show_selector_button (GladePalette *palette, gboolean glade_palette_get_show_selector_button (GladePalette *palette); -void glade_palette_refresh (GladePalette *palette); - GladeWidget *glade_palette_create_root_widget (GladePalette *palette, GladeWidgetAdaptor *adaptor); |