X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fmemorandum.txt;h=c2cd66b6b7280e6206efe8c95acca90c7c660eee;hb=8065e06f47c5b34ce2d4769324e56c5f3191391c;hp=60db53fc38733a610756d31a51c9bd394002657e;hpb=69353cc026fc6d45f936fb6e02823a5d7939ef55;p=pspp diff --git a/src/ui/gui/memorandum.txt b/src/ui/gui/memorandum.txt index 60db53fc38..c2cd66b6b7 100644 --- a/src/ui/gui/memorandum.txt +++ b/src/ui/gui/memorandum.txt @@ -111,7 +111,7 @@ this: +---------------+-----------------+----------------+-----------------+ 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 @@ -169,7 +169,7 @@ Displaying the Dialog box in Psppire 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: @@ -191,7 +191,7 @@ dialog_state_valid (gpointer data) 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 @@ -211,9 +211,9 @@ refresh (PsppireDialogAction *rd_) // 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); @@ -244,7 +244,7 @@ psppire_dialog_action_foobar_activate (GtkAction *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; @@ -335,7 +335,7 @@ The newer ones contain the string: 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.