/* Like GSEAL but only used in PSPP */
#define PSEAL(X) X
-#define gtk_hbox_new(HOMOGENOUS,SPACING) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, SPACING)
-#define gtk_vbox_new(HOMOGENOUS,SPACING) gtk_box_new (GTK_ORIENTATION_VERTICAL, SPACING)
-
-#define gtk_vbutton_box_new() gtk_button_box_new (GTK_ORIENTATION_VERTICAL)
-#define gtk_hbutton_box_new() gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL)
-
-#define gtk_vpaned_new() gtk_paned_new (GTK_ORIENTATION_VERTICAL)
-#define gtk_hpaned_new() gtk_paned_new (GTK_ORIENTATION_HORIZONTAL)
-
#if (GTK_CHECK_VERSION(3,8,0) == 0)
#define gtk_widget_register_window(widget, window) gdk_window_set_user_data (window, widget);
#endif
tree_column->alignment = gtk_alignment_new (tree_column->xalign, 0.5, 0.0, 0.0);
- hbox = gtk_hbox_new (FALSE, 2);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
tree_column->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_IN);
if (tree_column->child)
gtk_widget_show (frame);
gtk_container_add (GTK_CONTAINER (tree_view->priv->search_window), frame);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 3);
static void
psppire_acr_init (PsppireAcr *acr)
{
- GtkWidget *bb = gtk_vbutton_box_new ();
+ GtkWidget *bb = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
GtkWidget *sw = gtk_scrolled_window_new (NULL, NULL);
g_signal_connect (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (de->datum_entry))),
"activate", G_CALLBACK (on_datum_entry_activate), de);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (hbox), de->cell_ref_label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), de->datum_entry, TRUE, TRUE, 0);
de->datasheet_vbox_widget
= make_single_datasheet (de, GTK_TREE_VIEW_GRID_LINES_BOTH, FALSE);
- de->vbox = gtk_vbox_new (FALSE, 0);
+ de->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (de->vbox), hbox, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (de->vbox), de->datasheet_vbox_widget,
TRUE, TRUE, 0);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (combo_box), cell,
"text", 1);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), combo_box, FALSE, FALSE, 0);
gtk_widget_show_all (hbox);
GtkWidget *hb ;
GtkWidget *sb ;
- GtkWidget *box = gtk_vbox_new (FALSE, 0);
+ GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
de->dataset = ds;
de->dict = psppire_dict_new_from_dict (dataset_dict (ds));
GtkBuilder *xml = builder_new ("paired-samples.ui");
GtkWidget *selector = get_widget_assert (xml, "psppire-selector3");
- GtkWidget *bb = gtk_hbutton_box_new ();
+ GtkWidget *bb = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
GtkWidget *button = gtk_button_new_with_mnemonic (_("O_ptions..."));
GtkWidget *box = get_widget_assert (xml, "vbox3");
{
/* NPAR Specific options */
GtkWidget *frame = gtk_frame_new (_("Test Type"));
- GtkWidget *bb = gtk_vbutton_box_new ();
+ GtkWidget *bb = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
GtkWidget *box = get_widget_assert (xml, "vbox3");
renderer, set_sensitive,
NULL, NULL);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (hbox),
gtk_label_new (_("Character Encoding: ")),
FALSE, FALSE, 0);
static void
psppire_means_layer_init (PsppireMeansLayer *ml)
{
- GtkWidget *hbox_upper = gtk_hbox_new (FALSE, 5);
- GtkWidget *hbox_lower = gtk_hbox_new (FALSE, 5);
+ GtkWidget *hbox_upper = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
+ GtkWidget *hbox_lower = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
GtkWidget *alignment = gtk_alignment_new (0, 0.5, 0, 0);
GtkWidget *sw = gtk_scrolled_window_new (NULL, NULL);
psppire_syntax_window_init (PsppireSyntaxWindow *window)
{
GtkBuilder *xml = builder_new ("syntax-editor.ui");
- GtkWidget *box = gtk_vbox_new (FALSE, 0);
+ GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
GtkWidget *menubar = get_widget_assert (xml, "menubar");
GtkWidget *sw = get_widget_assert (xml, "scrolledwindow8");
static GtkWidget * range_entry (struct layout *l, struct range_widgets *rw)
{
- GtkWidget *vbox = gtk_vbox_new (FALSE, 3);
+ GtkWidget *vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
GtkWidget *entrylo = gtk_entry_new ();
GtkWidget *label = gtk_label_new (_("through"));
GtkWidget *entryhi = gtk_entry_new ();