+---------------+-----------------+----------------+-----------------+
In the second panel from the left, we might want a selector button.
-However, we don't want to to fill the entire panel.
+However, we don't want to fill the entire panel.
So we put it in inside a GtkAlignment. From the "Containers" category
click "Alignment". and then the panel. Such a widget is of course
not visible, but you will note its presence from the widget hierarchy
1. Define a new PsppireDialogAction Class
Create a new object class derived from PsppireDialogAction (note that
-PsppireDialogAction itself derives from GtkAction). It's probably
+PsppireDialogAction itself implements GAction). It's probably
best if you use an existing example as a template. The minimum you
require is:
PsppireDialogActionFoobar *ud = PSPPIRE_DIALOG_ACTION_FOOBAR (data);
// This function is a predicate to determine if the dialog box has
- // been set to a state where is is appropriate to click OK /
+ // been set to a state where it is appropriate to click OK /
// Paste.
// If it returns FALSE, the OK and PASTE buttons are insensitive
// This function is called when the menuitem is activated.
-// It is what pops up the dialog
+// It is what pops up the dialog
static void
-psppire_dialog_action_foobar_activate (GtkAction *a)
+psppire_dialog_action_foobar_activate (GAction *a)
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionFoobar *act = PSPPIRE_DIALOG_ACTION_FOOBAR (a);
static void
psppire_dialog_action_foobar_class_init (PsppireDialogActionFoobarClass *class)
{
- GtkActionClass *action_class = GTK_ACTION_CLASS (class);
+ GActionClass *action_class = GTK_ACTION_CLASS (class);
action_class->activate = psppire_dialog_action_foobar_activate;
PSPPIRE_DIALOG_ACTION_CLASS (class)->generate_syntax = generate_syntax;
<requires lib="gtk+" version="3.12"/>
Like the string suggests Glade version 3.18.x or later will probably
-be ok for these files.
+be ok for these files.
Hopefully the older style .ui files will gradually be converted to new
style ones.