Commit 38e82ea9 authored by Vincent Geddes's avatar Vincent Geddes

Move GladeItemAppearance enum from glade-palette-item.h to glade-palette.h

	* gladeui/glade-palette.h, gladeui/glade-palette-item.h: Move GladeItemAppearance
	  enum from glade-palette-item.h to glade-palette.h (so it is visible in the docs).
	
	* src/glade-project-window.c (check_reload_project): Set alternatibe button order
	  on message dialog.

svn path=/trunk/; revision=1408
parent 507b974a
......@@ -43,7 +43,6 @@ typedef struct _GladePaletteBoxClass GladePaletteBoxClass;
struct _GladePaletteBox
{
/*< private >*/
GtkContainer parent_instance;
GladePaletteBoxPrivate *priv;
......
......@@ -41,7 +41,6 @@ typedef struct _GladePaletteExpanderClass GladePaletteExpanderClass;
struct _GladePaletteExpander
{
/*< private >*/
GtkBin parent_instance;
GladePaletteExpanderPrivate *priv;
......@@ -83,4 +82,3 @@ gboolean glade_palette_expander_get_use_markup (GladePaletteExpander *exp
G_END_DECLS
#endif /* __GLADE_PALETTE_EXPANDER_H__ */
......@@ -47,14 +47,6 @@ typedef struct _GladePaletteItem GladePaletteItem;
typedef struct _GladePaletteItemPrivate GladePaletteItemPrivate;
typedef struct _GladePaletteItemClass GladePaletteItemClass;
typedef enum _GladeItemAppearance {
GLADE_ITEM_ICON_AND_LABEL,
GLADE_ITEM_ICON_ONLY,
GLADE_ITEM_LABEL_ONLY
} GladeItemAppearance;
struct _GladePaletteItem
{
GtkToggleButton parent_instance;
......
......@@ -30,7 +30,6 @@
#define __GLADE_PALETTE_H__
#include <gladeui/glade.h>
#include <gladeui/glade-palette-item.h>
#include <gtk/gtkvbox.h>
......@@ -61,6 +60,13 @@ struct _GladePaletteClass
void (*toggled) (GladePalette *palette);
};
typedef enum _GladeItemAppearance
{
GLADE_ITEM_ICON_AND_LABEL,
GLADE_ITEM_ICON_ONLY,
GLADE_ITEM_LABEL_ONLY
} GladeItemAppearance;
GType glade_palette_get_type (void) G_GNUC_CONST;
......
......@@ -2696,6 +2696,11 @@ check_reload_project (GladeProjectWindow *gpw, GladeProject *project)
gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_ACCEPT);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_ACCEPT,
GTK_RESPONSE_REJECT,
-1);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_REJECT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment