case PROP_DEFAULT:
g_value_set_flags (value, bb->def);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
-typedef enum
- {
- PSPPIRE_BUTTON_OK_MASK = (1 << PSPPIRE_BUTTON_OK),
- PSPPIRE_BUTTON_GOTO_MASK = (1 << PSPPIRE_BUTTON_GOTO),
- PSPPIRE_BUTTON_CONTINUE_MASK = (1 << PSPPIRE_BUTTON_CONTINUE),
- PSPPIRE_BUTTON_CANCEL_MASK = (1 << PSPPIRE_BUTTON_CANCEL),
- PSPPIRE_BUTTON_CLOSE_MASK = (1 << PSPPIRE_BUTTON_CLOSE),
- PSPPIRE_BUTTON_HELP_MASK = (1 << PSPPIRE_BUTTON_HELP),
- PSPPIRE_BUTTON_RESET_MASK = (1 << PSPPIRE_BUTTON_RESET),
- PSPPIRE_BUTTON_PASTE_MASK = (1 << PSPPIRE_BUTTON_PASTE)
- } PsppireButtonMask;
-
static GParamSpec *button_flags;
static GParamSpec *default_flags;
default_flags =
g_param_spec_flags ("default",
"Default",
- "The mask that decides what what button grabs the default",
+ "The mask that decides what button grabs the default",
PSPPIRE_TYPE_BUTTON_MASK,
0,
G_PARAM_READWRITE);
return ftype;
}
+GtkWidget*
+psppire_button_box_new (void)
+{
+ return GTK_WIDGET (g_object_new (psppire_button_box_get_type (), NULL));
+}