Remove PsppireVButtonBox and PsppireHButtonBox
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 30 Jul 2016 05:19:40 +0000 (07:19 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 30 Jul 2016 06:22:02 +0000 (08:22 +0200)
Instead, use the orientable property of the ancester GtkButtonBox

58 files changed:
glade/automake.mk
glade/icons/16x16/widget-psppire-psppire-hbuttonbox.png [deleted file]
glade/icons/16x16/widget-psppire-psppire-vbuttonbox.png [deleted file]
glade/icons/22x22/widget-psppire-psppire-hbuttonbox.png [deleted file]
glade/icons/22x22/widget-psppire-psppire-vbuttonbox.png [deleted file]
src/ui/gui/aggregate.ui
src/ui/gui/automake.mk
src/ui/gui/autorecode.ui
src/ui/gui/barchart.ui
src/ui/gui/binomial.ui
src/ui/gui/chi-square.ui
src/ui/gui/comments.ui
src/ui/gui/compute.ui
src/ui/gui/correlation.ui
src/ui/gui/count.ui
src/ui/gui/crosstabs.ui
src/ui/gui/data-editor.ui
src/ui/gui/descriptives.ui
src/ui/gui/entry-dialog.ui
src/ui/gui/examine.ui
src/ui/gui/factor.ui
src/ui/gui/find.ui
src/ui/gui/frequencies.ui
src/ui/gui/goto-case.ui
src/ui/gui/histogram.ui
src/ui/gui/indep-samples.ui
src/ui/gui/k-means.ui
src/ui/gui/k-related.ui
src/ui/gui/ks-one-sample.ui
src/ui/gui/logistic.ui
src/ui/gui/means.ui
src/ui/gui/missing-val-dialog.ui
src/ui/gui/oneway.ui
src/ui/gui/paired-samples.ui
src/ui/gui/psppire-buttonbox.c
src/ui/gui/psppire-buttonbox.h
src/ui/gui/psppire-hbuttonbox.c [deleted file]
src/ui/gui/psppire-hbuttonbox.h [deleted file]
src/ui/gui/psppire-vbuttonbox.c [deleted file]
src/ui/gui/psppire-vbuttonbox.h [deleted file]
src/ui/gui/rank.ui
src/ui/gui/recode.ui
src/ui/gui/regression.ui
src/ui/gui/reliability.ui
src/ui/gui/roc.ui
src/ui/gui/runs.ui
src/ui/gui/scatterplot.ui
src/ui/gui/select-cases.ui
src/ui/gui/sort.ui
src/ui/gui/split-file.ui
src/ui/gui/t-test.ui
src/ui/gui/transpose.ui
src/ui/gui/univariate.ui
src/ui/gui/val-labs-dialog.ui
src/ui/gui/var-type-dialog.ui
src/ui/gui/variable-info.ui
src/ui/gui/weight.ui
src/ui/gui/widgets.c

index 4bb87f1ab69f024d38af9daf92906f8baf0cb8d3..fd947f64d8da1353c6e07748fbbef39e1c12820d 100644 (file)
@@ -21,8 +21,6 @@ libglade_psppire_la_SOURCES = \
        src/ui/gui/psppire-conf.c \
        src/ui/gui/psppire-acr.c \
        src/ui/gui/psppire-buttonbox.c \
-       src/ui/gui/psppire-hbuttonbox.c \
-       src/ui/gui/psppire-vbuttonbox.c \
        src/ui/gui/psppire-dialog.c \
        src/ui/gui/psppire-keypad.c \
        src/ui/gui/psppire-dictview.c \
@@ -39,16 +37,12 @@ dist_catalog_DATA = \
 
 dist_small_pixmap_DATA = \
        glade/icons/16x16/widget-psppire-psppire-acr.png \
-       glade/icons/16x16/widget-psppire-psppire-hbuttonbox.png \
-       glade/icons/16x16/widget-psppire-psppire-vbuttonbox.png \
        glade/icons/16x16/widget-psppire-psppire-dialog.png \
        glade/icons/16x16/widget-psppire-psppire-keypad.png \
        glade/icons/16x16/widget-psppire-psppire-selector.png
 
 dist_large_pixmap_DATA = \
        glade/icons/22x22/widget-psppire-psppire-acr.png \
-       glade/icons/22x22/widget-psppire-psppire-hbuttonbox.png \
-       glade/icons/22x22/widget-psppire-psppire-vbuttonbox.png \
        glade/icons/22x22/widget-psppire-psppire-dialog.png \
        glade/icons/22x22/widget-psppire-psppire-keypad.png \
        glade/icons/22x22/widget-psppire-psppire-selector.png
diff --git a/glade/icons/16x16/widget-psppire-psppire-hbuttonbox.png b/glade/icons/16x16/widget-psppire-psppire-hbuttonbox.png
deleted file mode 100644 (file)
index bedcf63..0000000
Binary files a/glade/icons/16x16/widget-psppire-psppire-hbuttonbox.png and /dev/null differ
diff --git a/glade/icons/16x16/widget-psppire-psppire-vbuttonbox.png b/glade/icons/16x16/widget-psppire-psppire-vbuttonbox.png
deleted file mode 100644 (file)
index d37d4df..0000000
Binary files a/glade/icons/16x16/widget-psppire-psppire-vbuttonbox.png and /dev/null differ
diff --git a/glade/icons/22x22/widget-psppire-psppire-hbuttonbox.png b/glade/icons/22x22/widget-psppire-psppire-hbuttonbox.png
deleted file mode 100644 (file)
index 538a2fb..0000000
Binary files a/glade/icons/22x22/widget-psppire-psppire-hbuttonbox.png and /dev/null differ
diff --git a/glade/icons/22x22/widget-psppire-psppire-vbuttonbox.png b/glade/icons/22x22/widget-psppire-psppire-vbuttonbox.png
deleted file mode 100644 (file)
index f241e68..0000000
Binary files a/glade/icons/22x22/widget-psppire-psppire-vbuttonbox.png and /dev/null differ
index 5733fe1c31ba0a3d64afa55d6e174bbe63873e44..f42f8cba3cbef63ab0028a11461ff5aa99ae9b2a 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 0f0ea346627dfeb7a89925d0d5bbe3894d3d986b..3da8349c027df8f76800c4aaedaf6faaac7f791d 100644 (file)
@@ -142,8 +142,7 @@ src_ui_gui_psppire_SOURCES = \
        src/ui/gui/psppire-keypad.c \
        src/ui/gui/psppire-selector.c \
        src/ui/gui/psppire-buttonbox.c \
-       src/ui/gui/psppire-hbuttonbox.c \
-       src/ui/gui/psppire-vbuttonbox.c \
+       src/ui/gui/psppire-buttonbox.h \
        src/ui/gui/psppire-scanf.c \
        src/ui/gui/psppire-scanf.h \
        src/ui/gui/psppire-acr.c \
@@ -173,7 +172,6 @@ src_ui_gui_psppire_SOURCES = \
        src/ui/gui/psppire.c \
        src/ui/gui/psppire.h \
        src/ui/gui/psppire-acr.h \
-       src/ui/gui/psppire-buttonbox.h \
        src/ui/gui/psppire-checkbox-treeview.c \
        src/ui/gui/psppire-checkbox-treeview.h \
        src/ui/gui/psppire-conf.c \
@@ -281,7 +279,6 @@ src_ui_gui_psppire_SOURCES = \
        src/ui/gui/psppire-encoding-selector.h \
        src/ui/gui/psppire-format.c \
        src/ui/gui/psppire-format.h \
-       src/ui/gui/psppire-hbuttonbox.h \
        src/ui/gui/psppire-keypad.h \
        src/ui/gui/psppire-lex-reader.c \
        src/ui/gui/psppire-lex-reader.h \
@@ -308,7 +305,6 @@ src_ui_gui_psppire_SOURCES = \
        src/ui/gui/psppire-var-ptr.h \
        src/ui/gui/psppire-var-sheet.c \
        src/ui/gui/psppire-var-sheet.h \
-       src/ui/gui/psppire-vbuttonbox.h \
        src/ui/gui/psppire-window.c \
        src/ui/gui/psppire-window.h \
        src/ui/gui/psppire-window-base.c \
index 509188c7087e9eca44f965fdde8514f6ef33b735..d03a4d6273f08c1a244ff8156123d3efc69398d4 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 6be024a33f3140950079bcbff0f4eccad6e803f8..c7b8d0d66cc201dd433029ecdf74cc5243b438f2 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 344fa066e9391b2cd16f91219d6a32bc9dbd0f55..f84d1f0b11b39d0a60184e8d6baf60912ce82426 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 0f212fc22a3b1c2711ab62f4017ac66bb03a702c..7a2838bd6f1e161c8a58a8853e62780d1b150e10 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index c89f51bed851b0baf362c1ab4e152907b90cadb7..2803ed666f1b5a32849e55442b8d7b31f54ba3a6 100644 (file)
@@ -66,7 +66,8 @@
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox2">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 658bf9befd3f3293321281dfa030048ae6418832..45a39b09758e7d09ceadce7fa04d34e149815eca 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
               </packing>
             </child>
             <child>
-              <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+              <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+                <property name="orientation">horizontal</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 70c900fa8655918613a44a1fffe4718695bc9620..22efb6517df006c0d8ec565012153ca9fa0de337 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 96dd69b0f45056882403a28c7af5711fdc340274..bba3861afd8351307923c4930effb6cf227dadb6 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox2">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 2d7106616e83f744f12318aa78d6e4b384a2afac..2848feec43df0bbf23f36e26d133e555ef6b555f 100644 (file)
@@ -59,7 +59,8 @@
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox4">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox4">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 048ba0bbb15669c0988a3e0bb776deaf76eea040..785a87b22a8764a40f787c1baeab85e7c5b5a2ab 100644 (file)
           <object class="PsppireDialogActionWeight" id="data_weight-cases">
             <property name="name">data_weight-cases</property>
             <property name="label" translatable="yes">_Weight Cases...</property>
-           <property name="manager">uimanager1</property>
+            <property name="manager">uimanager1</property>
             <property name="tooltip" translatable="yes">Weight cases by variable</property>
             <property name="stock-id">data-weight-cases</property>
           </object>
         <child>
           <object class="PsppireDialogActionRecodeSame" id="transform_recode-same">
             <property name="name">transform_recode-same</property>
-           <property name="manager">uimanager1</property>
+            <property name="manager">uimanager1</property>
             <property name="label" translatable="yes">Recode into _Same Variables...</property>
             <property name="stock-id">transform-in-to-same-variables</property>
           </object>
         </child>
         <child>
           <object class="PsppireDialogActionRecodeDifferent" id="transform_recode-different">
-           <property name="manager">uimanager1</property>
+            <property name="manager">uimanager1</property>
             <property name="name">transform_recode-different</property>
             <property name="label" translatable="yes">Recode into _Different Variables...</property>
             <property name="stock-id">transform-in-to-different-variables</property>
index a943585a94a432691cc76c75531a8d47670e597e..637d0a245397a2767bbe4e7106067694ab044ad1 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-buttonbox6">
+          <object class="PsppireButtonbox" id="psppire-buttonbox6">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 939e03c3595527ab44243475b6626d4d84a3bec7..b45582b1ab81ce7d778ebd0af7416d23d5aeced0 100644 (file)
@@ -45,7 +45,8 @@
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox5">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox5">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 1190c914fedf63add405bced217d6fc9bd0564fe..c51244d343999126ab20aac7446ee7b87db45fdb 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 8c6251e6d25b562e09e5547e74d36425885f96c1..c20349e487a44fc3e4ebcdd049ef45fa4a190ff1 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
         <property name="margin_bottom">5</property>
         <property name="row_spacing">5</property>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index ca5c4cccf74aacd553504a746343c1e64c79637f..8f2aab877ccaf752751fae3dd97195c5e5577cf2 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="find-buttonbox">
+          <object class="PsppireButtonbox" id="find-buttonbox">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index acdf881de7185ab1cbd264e578c6e530d8991956..1ef79dae737815629fbecc54bae2f2c7d619f64d 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="GtkButtonBox" id="psppire-vbuttonbox2">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="GtkButtonBox" id="psppire-vbuttonbox3">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="GtkButtonBox" id="psppire-vbuttonbox1">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index b4b9abd4407a85f274613214aa057240bcbbdef5..1a48ec260bd671f5c8cb5e16ab42eccdb3e5ad02 100644 (file)
@@ -64,7 +64,8 @@
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox5">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox5">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 2a6486d9e70cc0404e05a5a796ab852cf4d95207..4e374e2dafb8446168125360c559644284f1f0e0 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index cbf01714ba4427cf07a22636db7cb30eebfa62c0..b0720146862191bede8b22af7cbc912f0d80b258 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 8de5538bbf87fa9d247262ce8001a148f328df89..06a5021c5d49987ede03ae08f60a1510a2d88422 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 4f93eb15bdfa812a3962975278c346aa0a869819..40175795e9f4948b8392a52cdec263771ce306fa 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 065149d64aae47056deef695064a733eff0be08b..4d500bd26b8435d91fdff98fd01b1f38dd5b6e19 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index a48c1e2f98d8f1d565508ca3b476b5f23c6b73af..b226eedb352e3bea0fd1a36661fab2d348b9dacc 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index c75535f5631659e8af451d5305f1683e61bd8a01..17391912319790c139d3326739f0209a4b498d18 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-buttonbox6">
+          <object class="PsppireButtonbox" id="psppire-buttonbox6">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index a736895479ef29331980734a4aed9f5810f065ea..b9360fb196b798e5b891d312dff8adf3132d159c 100644 (file)
@@ -47,7 +47,8 @@
       </packing>
     </child>
     <child>
-      <object class="PsppireHButtonBox" id="hbuttonbox">
+      <object class="PsppireButtonbox" id="hbuttonbox">
+        <property name="orientation">horizontal</property>
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 4e6b3d50019c802f2be96c301f9532ac9b3725b4..02720a42eca9ef2cbe8afd3712c8a5ef6dfe36df 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index c21e837bc82ab0a7b5336ae6de388b9186d2f981..6f86e763fac38453a20c8f448b46c30462df9a15 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox4">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox4">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 567a13cc0d7ee013919e07e6a856e82f56406f24..12d474559db95417207618ccd055aead1d0385a2 100644 (file)
 GType psppire_button_flags_get_type (void);
 
 
-static void psppire_button_box_class_init          (PsppireButtonBoxClass *);
-static void psppire_button_box_init                (PsppireButtonBox      *);
+static void psppire_button_box_class_init          (PsppireButtonboxClass *);
+static void psppire_button_box_init                (PsppireButtonbox      *);
 
 
 GType
-psppire_button_box_get_type (void)
+psppire_buttonbox_get_type (void)
 {
   static GType button_box_type = 0;
 
@@ -45,19 +45,19 @@ psppire_button_box_get_type (void)
     {
       static const GTypeInfo button_box_info =
       {
-       sizeof (PsppireButtonBoxClass),
+       sizeof (PsppireButtonboxClass),
        NULL, /* base_init */
         NULL, /* base_finalize */
        (GClassInitFunc) psppire_button_box_class_init,
         NULL, /* class_finalize */
        NULL, /* class_data */
-        sizeof (PsppireButtonBox),
+        sizeof (PsppireButtonbox),
        0,
        (GInstanceInitFunc) psppire_button_box_init,
       };
 
       button_box_type = g_type_register_static (GTK_TYPE_BUTTON_BOX,
-                                           "PsppireButtonBox", &button_box_info, G_TYPE_FLAG_ABSTRACT);
+                                           "PsppireButtonbox", &button_box_info, 0);
     }
 
   return button_box_type;
@@ -69,11 +69,11 @@ enum {
 };
 
 static void
-set_default (PsppireButtonBox *bb)
+set_default (PsppireButtonbox *bb)
 {
   int i;
 
-  for (i = 0 ; i < n_PsppireButtonBoxButtons ; ++i )
+  for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
     if (bb->def == (1 << i))
       {
         gtk_widget_set_can_default (bb->button[i], TRUE);
@@ -89,13 +89,13 @@ psppire_buttonbox_set_property (GObject         *object,
 {
   gint i;
   guint flags;
-  PsppireButtonBox *bb = PSPPIRE_BUTTONBOX (object);
+  PsppireButtonbox *bb = PSPPIRE_BUTTONBOX (object);
 
   switch (prop_id)
     {
     case PROP_BUTTONS:
       flags = g_value_get_flags (value);
-      for (i = 0 ; i < n_PsppireButtonBoxButtons ; ++i )
+      for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
         g_object_set (bb->button[i], "visible", 0x01 & (flags >> i)  , NULL);
       break;
 
@@ -119,12 +119,12 @@ psppire_buttonbox_get_property (GObject         *object,
   guint flags = 0;
   gint i;
 
-  PsppireButtonBox *bb = PSPPIRE_BUTTONBOX (object);
+  PsppireButtonbox *bb = PSPPIRE_BUTTONBOX (object);
 
   switch (prop_id)
     {
     case PROP_BUTTONS:
-      for (i = 0 ; i < n_PsppireButtonBoxButtons ; ++i )
+      for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
         {
           gboolean visibility;
           g_object_get (bb->button[i], "visible", &visibility, NULL);
@@ -162,7 +162,7 @@ static GParamSpec *button_flags;
 static GParamSpec *default_flags;
 
 static void
-psppire_button_box_class_init (PsppireButtonBoxClass *class)
+psppire_button_box_class_init (PsppireButtonboxClass *class)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (class);
 
@@ -275,8 +275,6 @@ refresh_clicked (GtkWidget *w, gpointer data)
   psppire_dialog_reload (dialog);
 }
 
-
-
 static void
 help_clicked (GtkWidget *w, gpointer data)
 {
@@ -291,12 +289,10 @@ help_clicked (GtkWidget *w, gpointer data)
   psppire_dialog_help (dialog);
 }
 
-
-
 static void
 on_validity_change (GtkWidget *toplevel, gboolean valid, gpointer data)
 {
-  PsppireButtonBox *bb = data;
+  PsppireButtonbox *bb = data;
 
   /* Set the sensitivity of all the 'executive order' buttons */
   gtk_widget_set_sensitive (GTK_WIDGET (bb->button[PSPPIRE_BUTTON_OK]), valid);
@@ -319,7 +315,7 @@ on_realize (GtkWidget *buttonbox, gpointer data)
 }
 
 static void
-psppire_button_box_init (PsppireButtonBox *bb)
+psppire_button_box_init (PsppireButtonbox *bb)
 {
   bb->def = PSPPIRE_BUTTON_CONTINUE;
 
@@ -395,7 +391,7 @@ psppire_button_box_init (PsppireButtonBox *bb)
 
     flags = g_value_get_flags (&value);
 
-    for (i = 0 ; i < n_PsppireButtonBoxButtons ; ++i )
+    for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
       g_object_set (bb->button[i], "visible", 0x01 & (flags >> i)  , NULL);
 
     g_value_unset (&value);
@@ -405,95 +401,6 @@ psppire_button_box_init (PsppireButtonBox *bb)
   g_signal_connect (bb, "realize", G_CALLBACK (on_realize), NULL);
 }
 
-
-/* This function was lifted verbatim from the Gtk2.10.6 library.
-   But later modified to fit Gtk2.24
- */
-void
-_psppire_button_box_child_requisition (GtkWidget *widget,
-                                      int       *nvis_children,
-                                      int       *nvis_secondaries,
-                                      int       *width,
-                                      int       *height)
-{
-  GtkButtonBox *bbox;
-  GList *children;
-  gint nchildren;
-  gint nsecondaries;
-  gint needed_width;
-  gint needed_height;
-  GtkRequisition child_requisition;
-  gint ipad_w;
-  gint ipad_h;
-  gint width_default;
-  gint height_default;
-  gint ipad_x_default;
-  gint ipad_y_default;
-
-  gint child_min_width;
-  gint child_min_height;
-  gint ipad_x;
-  gint ipad_y;
-
-  g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
-
-  bbox = GTK_BUTTON_BOX (widget);
-
-  gtk_widget_style_get (widget,
-                        "child-min-width", &width_default,
-                        "child-min-height", &height_default,
-                        "child-internal-pad-x", &ipad_x_default,
-                        "child-internal-pad-y", &ipad_y_default,
-                       NULL);
-
-  child_min_width = width_default;
-  child_min_height = height_default;
-  ipad_x = ipad_x_default;
-  ipad_y = ipad_y_default;
-
-  nchildren = 0;
-  nsecondaries = 0;
-
-  needed_width = child_min_width;
-  needed_height = child_min_height;
-  ipad_w = ipad_x * 2;
-  ipad_h = ipad_y * 2;
-
-  children = gtk_container_get_children (GTK_CONTAINER (bbox));
-  while (children)
-    {
-      GtkWidget *child = children->data;
-      children = children->next;
-
-      if (gtk_widget_get_visible (child))
-       {
-          gboolean is_secondary = FALSE;
-         nchildren += 1;
-         gtk_widget_get_preferred_size (child, NULL, &child_requisition);
-
-         if (child_requisition.width + ipad_w > needed_width)
-           needed_width = child_requisition.width + ipad_w;
-         if (child_requisition.height + ipad_h > needed_height)
-           needed_height = child_requisition.height + ipad_h;
-
-          gtk_container_child_get (GTK_CONTAINER (bbox), child, "secondary", &is_secondary, NULL);
-
-          if (is_secondary)
-           nsecondaries++;
-       }
-    }
-
-  if (nvis_children)
-    *nvis_children = nchildren;
-  if (nvis_secondaries)
-    *nvis_secondaries = nsecondaries;
-  if (width)
-    *width = needed_width;
-  if (height)
-    *height = needed_height;
-}
-
-
 GType
 psppire_button_flags_get_type (void)
 {
index dc6eb5cf3178ae21b27c0586896edd2935fa7426..d4b53787b34e79489e3fc7b3f682af0b11ca489b 100644 (file)
 
 G_BEGIN_DECLS
 
-#define PSPPIRE_BUTTONBOX_TYPE            (psppire_button_box_get_type ())
-#define PSPPIRE_BUTTONBOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBox))
-#define PSPPIRE_BUTTONBOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBoxClass))
+#define PSPPIRE_BUTTONBOX_TYPE            (psppire_buttonbox_get_type ())
+#define PSPPIRE_BUTTONBOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonbox))
+#define PSPPIRE_BUTTONBOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonboxClass))
 #define PSPPIRE_IS_BUTTONBOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_BUTTONBOX_TYPE))
 #define PSPPIRE_IS_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_BUTTONBOX_TYPE))
 
 
-typedef struct _PsppireButtonBox       PsppireButtonBox;
-typedef struct _PsppireButtonBoxClass  PsppireButtonBoxClass;
+typedef struct _PsppireButtonbox       PsppireButtonbox;
+typedef struct _PsppireButtonboxClass  PsppireButtonboxClass;
+
 
 enum
   {
@@ -45,33 +46,26 @@ enum
     PSPPIRE_BUTTON_HELP,
     PSPPIRE_BUTTON_RESET,
     PSPPIRE_BUTTON_PASTE,
-    n_PsppireButtonBoxButtons
+    n_PsppireButtonboxButtons
   };
 
-struct _PsppireButtonBox
+
+struct _PsppireButtonbox
 {
   GtkButtonBox parent;
 
   /* <private> */
-  GtkWidget *button[n_PsppireButtonBoxButtons];
+  GtkWidget *button[n_PsppireButtonboxButtons];
   guint def;
 };
 
-struct _PsppireButtonBoxClass
+struct _PsppireButtonboxClass
 {
   GtkButtonBoxClass parent_class;
 };
 
-GType          psppire_button_box_get_type        (void);
-
+GType          psppire_buttonbox_get_type        (void);
 
-/* Internal function.  Do not use */
-void
-_psppire_button_box_child_requisition (GtkWidget *widget,
-                                      int       *nvis_children,
-                                      int       *nvis_secondaries,
-                                      int       *width,
-                                      int       *height);
 
 #define PSPPIRE_TYPE_BUTTON_MASK psppire_button_flags_get_type()
 
diff --git a/src/ui/gui/psppire-hbuttonbox.c b/src/ui/gui/psppire-hbuttonbox.c
deleted file mode 100644 (file)
index 93f8990..0000000
+++ /dev/null
@@ -1,293 +0,0 @@
-/* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007, 2010, 2011  Free Software Foundation
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
-
-
-#include <config.h>
-
-#include <glib.h>
-#include <gtk/gtk.h>
-#include "psppire-hbuttonbox.h"
-#include "psppire-dialog.h"
-
-#include <gettext.h>
-
-#define _(msgid) gettext (msgid)
-#define N_(msgid) msgid
-
-
-static void psppire_hbuttonbox_class_init          (PsppireHButtonBoxClass *);
-static void psppire_hbuttonbox_init                (PsppireHButtonBox      *);
-
-static void gtk_hbutton_box_size_request  (GtkWidget      *widget,
-                                          GtkRequisition *requisition);
-static void gtk_hbutton_box_size_allocate (GtkWidget      *widget,
-                                          GtkAllocation  *allocation);
-
-
-static void
-psppire_hbutton_box_get_preferred_height (GtkWidget *widget,
-                                gint      *minimal_height,
-                                gint      *natural_height)
-{
-  GtkRequisition requisition;
-
-  gtk_hbutton_box_size_request (widget, &requisition);
-
-  *minimal_height = *natural_height = requisition.height;
-}
-
-
-static void
-psppire_hbutton_box_get_preferred_width (GtkWidget *widget,
-                                gint      *minimal_width,
-                                gint      *natural_width)
-{
-  GtkRequisition requisition;
-
-  gtk_hbutton_box_size_request (widget, &requisition);
-
-  *minimal_width = *natural_width = requisition.width;
-}
-
-
-
-
-GType
-psppire_hbutton_box_get_type (void)
-{
-  static GType hbuttonbox_type = 0;
-
-  if (!hbuttonbox_type)
-    {
-      static const GTypeInfo hbuttonbox_info =
-      {
-       sizeof (PsppireHButtonBoxClass),
-       NULL, /* base_init */
-        NULL, /* base_finalize */
-       (GClassInitFunc) psppire_hbuttonbox_class_init,
-        NULL, /* class_finalize */
-       NULL, /* class_data */
-        sizeof (PsppireHButtonBox),
-       0,
-       (GInstanceInitFunc) psppire_hbuttonbox_init,
-      };
-
-      hbuttonbox_type = g_type_register_static (PSPPIRE_BUTTONBOX_TYPE,
-                                           "PsppireHButtonBox", &hbuttonbox_info, 0);
-    }
-
-  return hbuttonbox_type;
-}
-
-static void
-psppire_hbuttonbox_class_init (PsppireHButtonBoxClass *class)
-{
-  GtkWidgetClass *widget_class;
-
-  widget_class = (GtkWidgetClass*) class;
-
-  widget_class->get_preferred_width = psppire_hbutton_box_get_preferred_width;
-  widget_class->get_preferred_height = psppire_hbutton_box_get_preferred_height;
-  widget_class->size_allocate = gtk_hbutton_box_size_allocate;
-}
-
-
-static void
-psppire_hbuttonbox_init (PsppireHButtonBox *hbuttonbox)
-{
-}
-
-
-GtkWidget*
-psppire_hbuttonbox_new (void)
-{
-  PsppireHButtonBox *hbuttonbox ;
-
-  hbuttonbox = g_object_new (psppire_hbutton_box_get_type (), NULL);
-
-  return GTK_WIDGET (hbuttonbox) ;
-}
-
-
-
-/* The following two functions are lifted verbatim from
-   the Gtk2.10.6 library */
-
-static void
-gtk_hbutton_box_size_request (GtkWidget      *widget,
-                             GtkRequisition *requisition)
-{
-  GtkBox *box;
-  GtkButtonBox *bbox;
-  gint nvis_children;
-  gint child_width;
-  gint child_height;
-  gint spacing;
-  GtkButtonBoxStyle layout;
-
-  box = GTK_BOX (widget);
-  bbox = GTK_BUTTON_BOX (widget);
-
-  spacing = gtk_box_get_spacing (box);
-  layout = gtk_button_box_get_layout (bbox) ;
-
-  _psppire_button_box_child_requisition (widget,
-                                     &nvis_children,
-                                    NULL,
-                                     &child_width,
-                                     &child_height);
-
-  if (nvis_children == 0)
-  {
-    requisition->width = 0;
-    requisition->height = 0;
-  }
-  else
-  {
-    switch (layout)
-    {
-    case GTK_BUTTONBOX_SPREAD:
-      requisition->width =
-             nvis_children*child_width + ((nvis_children+1)*spacing);
-      break;
-    default:
-    case GTK_BUTTONBOX_EDGE:
-    case GTK_BUTTONBOX_START:
-    case GTK_BUTTONBOX_END:
-      requisition->width = nvis_children*child_width + ((nvis_children-1)*spacing);
-      break;
-    }
-
-    requisition->height = child_height;
-  }
-
-  requisition->width += gtk_container_get_border_width (GTK_CONTAINER (box)) * 2;
-  requisition->height += gtk_container_get_border_width (GTK_CONTAINER (box)) * 2;
-}
-
-
-
-static void
-gtk_hbutton_box_size_allocate (GtkWidget     *widget,
-                              GtkAllocation *allocation)
-{
-  GtkBox *base_box;
-  GtkButtonBox *box;
-  GList *children;
-  GtkAllocation child_allocation;
-  gint nvis_children;
-  gint n_secondaries;
-  gint child_width;
-  gint child_height;
-  gint x = 0;
-  gint secondary_x = 0;
-  gint y = 0;
-  gint width;
-  gint childspace;
-  gint childspacing = 0;
-  GtkButtonBoxStyle layout;
-  gint spacing;
-
-  base_box = GTK_BOX (widget);
-  box = GTK_BUTTON_BOX (widget);
-  spacing = gtk_box_get_spacing (base_box);
-  layout = gtk_button_box_get_layout (box) ;
-  _psppire_button_box_child_requisition (widget,
-                                     &nvis_children,
-                                    &n_secondaries,
-                                     &child_width,
-                                     &child_height);
-  gtk_widget_set_allocation (widget, allocation);
-  width = allocation->width - gtk_container_get_border_width (GTK_CONTAINER (box))*2;
-  switch (layout)
-  {
-  case GTK_BUTTONBOX_SPREAD:
-    childspacing = (width - (nvis_children * child_width)) / (nvis_children + 1);
-    x = allocation->x + gtk_container_get_border_width (GTK_CONTAINER (box)) + childspacing;
-    secondary_x = x + ((nvis_children - n_secondaries) * (child_width + childspacing));
-    break;
-  default:
-  case GTK_BUTTONBOX_EDGE:
-    if (nvis_children >= 2)
-      {
-       childspacing = (width - (nvis_children * child_width)) / (nvis_children - 1);
-       x = allocation->x + gtk_container_get_border_width (GTK_CONTAINER (box));
-       secondary_x = x + ((nvis_children - n_secondaries) * (child_width + childspacing));
-      }
-    else
-      {
-       /* one or zero children, just center */
-        childspacing = width;
-       x = secondary_x = allocation->x + (allocation->width - child_width) / 2;
-      }
-    break;
-  case GTK_BUTTONBOX_START:
-    childspacing = spacing;
-    x = allocation->x + gtk_container_get_border_width (GTK_CONTAINER (box));
-    secondary_x = allocation->x + allocation->width
-      - child_width * n_secondaries
-      - spacing * (n_secondaries - 1)
-      - gtk_container_get_border_width (GTK_CONTAINER (box));
-    break;
-  case GTK_BUTTONBOX_END:
-    childspacing = spacing;
-    x = allocation->x + allocation->width
-      - child_width * (nvis_children - n_secondaries)
-      - spacing * (nvis_children - n_secondaries - 1)
-      - gtk_container_get_border_width (GTK_CONTAINER (box));
-    secondary_x = allocation->x + gtk_container_get_border_width (GTK_CONTAINER (box));
-    break;
-  }
-
-
-  y = allocation->y + (allocation->height - child_height) / 2;
-  childspace = child_width + childspacing;
-
-  children = gtk_container_get_children (GTK_CONTAINER (box));
-
-  while (children)
-    {
-      GtkWidget *child = children->data;
-      children = children->next;
-
-      if (gtk_widget_get_visible (child))
-       {
-          gboolean is_secondary = FALSE;
-          gtk_container_child_get (GTK_CONTAINER (box), child, "secondary", &is_secondary, NULL);
-
-
-         child_allocation.width = child_width;
-         child_allocation.height = child_height;
-         child_allocation.y = y;
-
-          if (is_secondary)
-            {
-             child_allocation.x = secondary_x;
-             secondary_x += childspace;
-           }
-          else
-           {
-             child_allocation.x = x;
-             x += childspace;
-           }
-
-         if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
-           child_allocation.x = (allocation->x + allocation->width) - (child_allocation.x + child_width - allocation->x);
-
-         gtk_widget_size_allocate (child, &child_allocation);
-       }
-    }
-}
diff --git a/src/ui/gui/psppire-hbuttonbox.h b/src/ui/gui/psppire-hbuttonbox.h
deleted file mode 100644 (file)
index 6d63d2b..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007  Free Software Foundation
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
-
-
-#ifndef __PSPPIRE_HBBOX_H__
-#define __PSPPIRE_HBBOX_H__
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "psppire-buttonbox.h"
-
-G_BEGIN_DECLS
-
-#define PSPPIRE_HBUTTON_BOX_TYPE            (psppire_hbutton_box_get_type ())
-#define PSPPIRE_HBUTTON_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_HBUTTON_BOX_TYPE, PsppireHButtonBox))
-#define PSPPIRE_HBUTTON_BOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_HBUTTON_BOX_TYPE, PsppireHButtonBoxClass))
-#define PSPPIRE_IS_HBUTTON_BOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_HBUTTON_BOX_TYPE))
-#define PSPPIRE_IS_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_HBUTTON_BOX_TYPE))
-
-
-typedef struct _PsppireHButtonBox       PsppireHButtonBox;
-typedef struct _PsppireHButtonBoxClass  PsppireHButtonBoxClass;
-
-struct _PsppireHButtonBox
-{
-  PsppireButtonBox parent;
-};
-
-struct _PsppireHButtonBoxClass
-{
-  PsppireButtonBoxClass parent_class;
-};
-
-GType          psppire_hbutton_box_get_type        (void);
-GtkWidget*     psppire_hbutton_box_new             (void);
-
-G_END_DECLS
-
-#endif /* __PSPPIRE_HBBOX_H__ */
-
diff --git a/src/ui/gui/psppire-vbuttonbox.c b/src/ui/gui/psppire-vbuttonbox.c
deleted file mode 100644 (file)
index 72e6585..0000000
+++ /dev/null
@@ -1,286 +0,0 @@
-/* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007, 2010, 2011  Free Software Foundation
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
-
-
-#include <config.h>
-
-#include <glib.h>
-#include <gtk/gtk.h>
-#include "psppire-vbuttonbox.h"
-#include "psppire-dialog.h"
-
-#include <gettext.h>
-
-#define _(msgid) gettext (msgid)
-#define N_(msgid) msgid
-
-
-static void psppire_vbuttonbox_class_init          (PsppireVButtonBoxClass *);
-static void psppire_vbuttonbox_init                (PsppireVButtonBox      *);
-
-static void gtk_vbutton_box_size_request  (GtkWidget      *widget,
-                                          GtkRequisition *requisition);
-static void gtk_vbutton_box_size_allocate (GtkWidget      *widget,
-                                          GtkAllocation  *allocation);
-
-
-static void
-psppire_vbutton_box_get_preferred_height (GtkWidget *widget,
-                                gint      *minimal_height,
-                                gint      *natural_height)
-{
-  GtkRequisition requisition;
-
-  gtk_vbutton_box_size_request (widget, &requisition);
-
-  *minimal_height = *natural_height = requisition.height;
-}
-
-
-static void
-psppire_vbutton_box_get_preferred_width (GtkWidget *widget,
-                                gint      *minimal_width,
-                                gint      *natural_width)
-{
-  GtkRequisition requisition;
-
-  gtk_vbutton_box_size_request (widget, &requisition);
-
-  *minimal_width = *natural_width = requisition.width;
-}
-
-
-GType
-psppire_vbutton_box_get_type (void)
-{
-  static GType vbuttonbox_type = 0;
-
-  if (!vbuttonbox_type)
-    {
-      static const GTypeInfo vbuttonbox_info =
-      {
-       sizeof (PsppireVButtonBoxClass),
-       NULL, /* base_init */
-        NULL, /* base_finalize */
-       (GClassInitFunc) psppire_vbuttonbox_class_init,
-        NULL, /* class_finalize */
-       NULL, /* class_data */
-        sizeof (PsppireVButtonBox),
-       0,
-       (GInstanceInitFunc) psppire_vbuttonbox_init,
-      };
-
-      vbuttonbox_type = g_type_register_static (PSPPIRE_BUTTONBOX_TYPE,
-                                           "PsppireVButtonBox", &vbuttonbox_info, 0);
-    }
-
-  return vbuttonbox_type;
-}
-
-static void
-psppire_vbuttonbox_class_init (PsppireVButtonBoxClass *class)
-{
-  GtkWidgetClass *widget_class;
-
-  widget_class = (GtkWidgetClass*) class;
-
-  widget_class->get_preferred_width = psppire_vbutton_box_get_preferred_width;
-  widget_class->get_preferred_height = psppire_vbutton_box_get_preferred_height;
-  widget_class->size_allocate = gtk_vbutton_box_size_allocate;
-}
-
-
-static void
-psppire_vbuttonbox_init (PsppireVButtonBox *vbuttonbox)
-{
-}
-
-
-GtkWidget*
-psppire_vbuttonbox_new (void)
-{
-  PsppireVButtonBox *vbuttonbox ;
-
-  vbuttonbox = g_object_new (psppire_vbutton_box_get_type (), NULL);
-
-  return GTK_WIDGET (vbuttonbox) ;
-}
-
-
-
-/* The following two functions are lifted verbatim from
-   the Gtk2.10.6 library */
-
-static void
-gtk_vbutton_box_size_request (GtkWidget      *widget,
-                             GtkRequisition *requisition)
-{
-  GtkBox *box;
-  GtkButtonBox *bbox;
-  gint nvis_children;
-  gint child_width;
-  gint child_height;
-  gint spacing;
-  GtkButtonBoxStyle layout;
-
-  box = GTK_BOX (widget);
-  bbox = GTK_BUTTON_BOX (widget);
-
-  spacing = gtk_box_get_spacing (box);
-  layout = gtk_button_box_get_layout (bbox);
-
-  _psppire_button_box_child_requisition (widget,
-                                        &nvis_children,
-                                        NULL,
-                                        &child_width,
-                                        &child_height);
-
-  if (nvis_children == 0)
-    {
-      requisition->width = 0;
-      requisition->height = 0;
-    }
-  else
-    {
-      switch (layout)
-      {
-      case GTK_BUTTONBOX_SPREAD:
-        requisition->height =
-               nvis_children*child_height + ((nvis_children+1)*spacing);
-       break;
-      case GTK_BUTTONBOX_EDGE:
-      case GTK_BUTTONBOX_START:
-      case GTK_BUTTONBOX_END:
-      default:
-        requisition->height =
-               nvis_children*child_height + ((nvis_children-1)*spacing);
-       break;
-      }
-      requisition->width = child_width;
-    }
-
-  requisition->width += gtk_container_get_border_width (GTK_CONTAINER (box)) * 2;
-  requisition->height += gtk_container_get_border_width (GTK_CONTAINER (box)) * 2;
-}
-
-
-
-static void
-gtk_vbutton_box_size_allocate (GtkWidget     *widget,
-                              GtkAllocation *allocation)
-{
-  GtkBox *base_box;
-  GtkButtonBox *box;
-  GList *children;
-  GtkAllocation child_allocation;
-  gint nvis_children;
-  gint n_secondaries;
-  gint child_width;
-  gint child_height;
-  gint x = 0;
-  gint y = 0;
-  gint secondary_y = 0;
-  gint height;
-  gint childspace;
-  gint childspacing = 0;
-  GtkButtonBoxStyle layout;
-  gint spacing;
-
-  base_box = GTK_BOX (widget);
-  box = GTK_BUTTON_BOX (widget);
-  spacing = gtk_box_get_spacing (base_box);
-  layout = gtk_button_box_get_layout (box) ;
-  _psppire_button_box_child_requisition (widget,
-                                     &nvis_children,
-                                    &n_secondaries,
-                                     &child_width,
-                                     &child_height);
-  gtk_widget_set_allocation (widget, allocation);
-  height = allocation->height - gtk_container_get_border_width (GTK_CONTAINER (box))*2;
-  switch (layout)
-  {
-  case GTK_BUTTONBOX_SPREAD:
-    childspacing = (height - (nvis_children * child_height)) / (nvis_children + 1);
-    y = allocation->y + gtk_container_get_border_width (GTK_CONTAINER (box)) + childspacing;
-    secondary_y = y + ((nvis_children - n_secondaries) * (child_height + childspacing));
-    break;
-  case GTK_BUTTONBOX_EDGE:
-  default:
-    if (nvis_children >= 2)
-      {
-        childspacing = (height - (nvis_children*child_height)) / (nvis_children-1);
-       y = allocation->y + gtk_container_get_border_width (GTK_CONTAINER (box));
-       secondary_y = y + ((nvis_children - n_secondaries) * (child_height + childspacing));
-      }
-    else
-      {
-       /* one or zero children, just center */
-       childspacing = height;
-       y = secondary_y = allocation->y + (allocation->height - child_height) / 2;
-      }
-    break;
-  case GTK_BUTTONBOX_START:
-    childspacing = spacing;
-    y = allocation->y + gtk_container_get_border_width (GTK_CONTAINER (box));
-    secondary_y = allocation->y + allocation->height
-      - child_height * n_secondaries
-      - spacing * (n_secondaries - 1)
-      - gtk_container_get_border_width (GTK_CONTAINER (box));
-    break;
-  case GTK_BUTTONBOX_END:
-    childspacing = spacing;
-    y = allocation->y + allocation->height
-      - child_height * (nvis_children - n_secondaries)
-      - spacing * (nvis_children - n_secondaries - 1)
-      - gtk_container_get_border_width (GTK_CONTAINER (box));
-    secondary_y = allocation->y + gtk_container_get_border_width (GTK_CONTAINER (box));
-    break;
-  }
-
-  x = allocation->x + (allocation->width - child_width) / 2;
-  childspace = child_height + childspacing;
-
-  children = gtk_container_get_children (GTK_CONTAINER (box));
-  while (children)
-    {
-      GtkWidget *child = children->data;
-      children = children->next;
-
-      if (gtk_widget_get_visible (child))
-       {
-          gboolean is_secondary = FALSE;
-          gtk_container_child_get (GTK_CONTAINER (box), child, "secondary", &is_secondary, NULL);
-
-         child_allocation.width = child_width;
-         child_allocation.height = child_height;
-         child_allocation.x = x;
-
-         if (is_secondary)
-           {
-             child_allocation.y = secondary_y;
-             secondary_y += childspace;
-           }
-         else
-           {
-             child_allocation.y = y;
-             y += childspace;
-           }
-
-         gtk_widget_size_allocate (child, &child_allocation);
-       }
-    }
-}
-
diff --git a/src/ui/gui/psppire-vbuttonbox.h b/src/ui/gui/psppire-vbuttonbox.h
deleted file mode 100644 (file)
index 01da474..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007  Free Software Foundation
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
-
-
-#ifndef __PSPPIRE_VBBOX_H__
-#define __PSPPIRE_VBBOX_H__
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "psppire-buttonbox.h"
-
-G_BEGIN_DECLS
-
-#define PSPPIRE_VBUTTON_BOX_TYPE            (psppire_vbutton_box_get_type ())
-#define PSPPIRE_VBUTTON_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_VBUTTON_BOX_TYPE, PsppireVButtonBox))
-#define PSPPIRE_VBUTTON_BOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_VBUTTON_BOX_TYPE, PsppireVButtonBoxClass))
-#define PSPPIRE_IS_VBUTTON_BOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_VBUTTON_BOX_TYPE))
-#define PSPPIRE_IS_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_VBUTTON_BOX_TYPE))
-
-
-typedef struct _PsppireVButtonBox       PsppireVButtonBox;
-typedef struct _PsppireVButtonBoxClass  PsppireVButtonBoxClass;
-
-struct _PsppireVButtonBox
-{
-  PsppireButtonBox parent;
-};
-
-struct _PsppireVButtonBoxClass
-{
-  PsppireButtonBoxClass parent_class;
-};
-
-GType          psppire_vbutton_box_get_type        (void);
-GtkWidget*     psppire_vbutton_box_new             (void);
-
-G_END_DECLS
-
-#endif /* __PSPPIRE_VBBOX_H__ */
-
index 8124cb2cdb0a409a945aa1d6ac96446a230e2779..b1afc0e4c30c0f084e79d9048eb06e93214d6574 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index c25065f5e177ec21c255dccd464eec808d921d50..ee31002c81970731e580d929f8399ddf22ec75fa 100644 (file)
               </packing>
             </child>
             <child>
-              <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+              <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+                <property name="orientation">horizontal</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 5aaa37fb21734888454338bb8d3324fb37f82121..d7aa7d1867e07cff64fdb92fb334ba84560409b4 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 8bd36c67dc4652c4c36fed05a195838207b5e16b..6c7072af82e0e6565a4304d5abfc2f9bd9d72a74 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 39f47e14a196eb0c94f7872af2653f0936e5e766..f08322ff12b59607cd47d1be6dfa25545d4b9a1d 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 6a0de6a6c3b865a2fca80ba3f6f3b2be18ad3d07..a729904ad334b934e535adee52239fcc76249e74 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox1">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 77d67af73220df1efe0c48bde552e3d9c5768c29..6cc59b288251dbe7e2b2b8a956301107650f393b 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 1e4cf46025fc37a97bb01e16a5187f5f47b9a3d3..6eb7bda8a3a2dd50500c4df872e032b1e4727c52 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox4">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox4">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox3">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireHButtonBox" id="psppire-hbuttonbox6">
+          <object class="PsppireButtonbox" id="psppire-hbuttonbox6">
+            <property name="orientation">horizontal</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 15aad1227f667cb78f8e4774e06c85343e216cf8..6773c33932cf5728beb3bba8c4dc1d9d4b1416f8 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-buttonbox4">
+          <object class="PsppireButtonbox" id="psppire-buttonbox4">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 48fa19544c578e07a7ada57b597285556b1e15ad..dde80d624fa4e55c0b42bb288be53d1a996f3389 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-buttonbox3">
+          <object class="PsppireButtonbox" id="psppire-buttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index e5ebe735d29724ad729844f5b40611e44d1c3b3f..6230f11d35b2dc72d06e3595981115f90a6915b8 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
         <property name="margin_bottom">5</property>
         <property name="row_spacing">5</property>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox5">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox5">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 006847d08f7cbaac664d6ddf83ed6d9d3409bb65..3b62febd03781b9fe80d1b45ae6e97f1bab9ea48 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-buttonbox2">
+          <object class="PsppireButtonbox" id="psppire-buttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 41679de0b669bd9cafd3e6fff2bfeb14b0c1cc40..79774e9af9bd2290eb76d986c1358eec4fae09a3 100644 (file)
@@ -63,7 +63,8 @@
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox2">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox3">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
+          <object class="PsppireButtonbox" id="psppire-vbuttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index 307d7286968f66ed32e4bc98cc2b56158fbc12d5..e3dbc185ec2e989d25522cea959df9a45f1108e1 100644 (file)
       </packing>
     </child>
     <child>
-      <object class="PsppireVButtonBox" id="vbuttonbox">
+      <object class="PsppireButtonbox" id="vbuttonbox">
+        <property name="orientation">vertical</property>
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 1701ea299c7709eb8cd0b100abb96b947854c82d..69383b49dfeab11576ecfc97fb4336806134c515 100644 (file)
       </packing>
     </child>
     <child>
-      <object class="PsppireVButtonBox" id="vbuttonbox">
+      <object class="PsppireButtonbox" id="vbuttonbox">
+        <property name="orientation">vertical</property>
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index a74dc9de95ab1abd14fd99cc1d7ecf54431f969f..761c297b87bbf34ead14c53371937bad272b9266 100644 (file)
@@ -51,7 +51,8 @@
             <property name="orientation">vertical</property>
             <property name="spacing">5</property>
             <child>
-              <object class="PsppireHButtonBox" id="psppire-hbuttonbox4">
+              <object class="PsppireButtonbox" id="psppire-hbuttonbox4">
+                <property name="orientation">horizontal</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
index 171ce963ffc037c38913c5375b6be9da3836210b..9ee4e46ef3844aa20de780b2c4e1101b521a5384 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="PsppireVButtonBox" id="psppire-buttonbox1">
+          <object class="PsppireButtonbox" id="psppire-buttonbox1">
+            <property name="orientation">vertical</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="border_width">5</property>
index b9a7a1ec3edf2da7741aaa292f9182e684d40c95..b6948d9414a46647ebf2a1cb394188e30a0b90d1 100644 (file)
@@ -7,8 +7,7 @@
 
 #include "psppire-dialog.h"
 #include "psppire-selector.h"
-#include "psppire-vbuttonbox.h"
-#include "psppire-hbuttonbox.h"
+#include "psppire-buttonbox.h"
 #include "psppire-keypad.h"
 #include "psppire-acr.h"
 #include "psppire-dictview.h"
@@ -131,8 +130,7 @@ preregister_widgets (void)
   psppire_val_chooser_get_type ();
   psppire_dialog_get_type ();
   psppire_selector_get_type ();
-  psppire_vbutton_box_get_type ();
-  psppire_hbutton_box_get_type ();
+  psppire_buttonbox_get_type ();
   psppire_keypad_get_type ();
   psppire_acr_get_type ();
   psppire_dict_view_get_type ();