X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-means-layer.c;h=e4fb17ac97688438815e5c53655cb29db8475d42;hb=55268cdabc9575abb4b8f0fd91692e743bf9cc3f;hp=8046b00765e2a42d6371fa1a96f71bf462c80820;hpb=0df9cdd3df66caf4353128feff3008289cda8115;p=pspp diff --git a/src/ui/gui/psppire-means-layer.c b/src/ui/gui/psppire-means-layer.c index 8046b00765..e4fb17ac97 100644 --- a/src/ui/gui/psppire-means-layer.c +++ b/src/ui/gui/psppire-means-layer.c @@ -29,7 +29,7 @@ static void psppire_means_layer_class_init (PsppireMeansLayerClass *class); static void psppire_means_layer_init (PsppireMeansLayer *window); -G_DEFINE_TYPE (PsppireMeansLayer, psppire_means_layer, GTK_TYPE_VBOX); +G_DEFINE_TYPE (PsppireMeansLayer, psppire_means_layer, GTK_TYPE_BOX); static GObjectClass *parent_class = NULL; @@ -159,14 +159,15 @@ psppire_means_layer_clear (PsppireMeansLayer *ml) 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 *alignment = gtk_alignment_new (0, 0.5, 0, 0); + GtkWidget *hbox_upper = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); + GtkWidget *hbox_lower = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); GtkWidget *sw = gtk_scrolled_window_new (NULL, NULL); + gtk_orientable_set_orientation (GTK_ORIENTABLE (ml), GTK_ORIENTATION_VERTICAL); + ml->dispose_has_run = FALSE; - ml->forward = gtk_button_new_from_stock (GTK_STOCK_GO_FORWARD); - ml->back = gtk_button_new_from_stock (GTK_STOCK_GO_BACK); + ml->forward = gtk_button_new_with_label (_("Forward")); + ml->back = gtk_button_new_with_label (_("Back")); ml->var_view = psppire_var_view_new (); ml->label = gtk_label_new (""); @@ -188,7 +189,6 @@ psppire_means_layer_init (PsppireMeansLayer *ml) gtk_box_pack_start (GTK_BOX (hbox_upper), ml->label, TRUE, FALSE, 5); gtk_box_pack_start (GTK_BOX (hbox_upper), ml->forward, FALSE, FALSE, 5); - gtk_box_pack_start (GTK_BOX (hbox_lower), alignment, FALSE, FALSE, 5); gtk_box_pack_start (GTK_BOX (hbox_lower), sw, TRUE, TRUE, 5); gtk_container_add (GTK_CONTAINER (sw), ml->var_view);