summaryrefslogtreecommitdiff
path: root/gtk/gtkprinteroptionwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-02-21 00:09:32 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-02-21 00:09:32 -0500
commit52e0ab53dc1caf6195990f9bc54f318bb7530c13 (patch)
tree769b119503281957fabcf8ac55986cc923f278ea /gtk/gtkprinteroptionwidget.c
parente9300e2f7917dd67c8adc8c08390c44ca22f0d9b (diff)
downloadgtk+-52e0ab53dc1caf6195990f9bc54f318bb7530c13.tar.gz
print dialog: More baseline alignment
Some places were missing the right valign setting to make baselines line up properly.
Diffstat (limited to 'gtk/gtkprinteroptionwidget.c')
-rw-r--r--gtk/gtkprinteroptionwidget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index 509119e0a4..47579a6f08 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -736,6 +736,7 @@ alternative_append (GtkWidget *box,
button = gtk_radio_button_new_with_label (group, label);
gtk_widget_show (button);
+ gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
g_object_set_data (G_OBJECT (button), "value", (gpointer)value);
@@ -819,6 +820,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
case GTK_PRINTER_OPTION_TYPE_ALTERNATIVE:
group = NULL;
priv->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+ gtk_widget_set_valign (priv->box, GTK_ALIGN_BASELINE);
gtk_widget_show (priv->box);
gtk_box_pack_start (GTK_BOX (widget), priv->box, TRUE, TRUE, 0);
for (i = 0; i < source->num_choices; i++)
@@ -837,6 +839,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
{
text = g_strdup_printf ("%s:", source->display_text);
priv->label = gtk_label_new_with_mnemonic (text);
+ gtk_widget_set_valign (priv->label, GTK_ALIGN_BASELINE);
g_free (text);
gtk_widget_show (priv->label);
}