Commit 8511b4c2 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed position of pixel and resolution labels.

2005-01-02  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.c (gimp_size_box_constructor): fixed
	position of pixel and resolution labels.
parent 3be2928e
2005-01-02 Sven Neumann <sven@gimp.org>
* app/widgets/gimpsizebox.c (gimp_size_box_constructor): fixed
position of pixel and resolution labels.
2005-01-02 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c: fixed auto-scrolling
......
......@@ -201,6 +201,7 @@ gimp_size_box_constructor (GType type,
{
GObject *object;
GimpSizeBox *box;
GtkWidget *vbox;
GtkWidget *entry;
GtkWidget *hbox;
GtkWidget *label;
......@@ -249,17 +250,20 @@ gimp_size_box_constructor (GType type,
gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0);
gtk_widget_show (entry);
vbox = gtk_vbox_new (2, FALSE);
gtk_table_attach_defaults (GTK_TABLE (entry), vbox, 1, 3, 2, 3);
gtk_widget_show (vbox);
label = gtk_label_new (NULL);
gimp_label_set_attributes (GTK_LABEL (label),
PANGO_ATTR_SCALE, PANGO_SCALE_SMALL,
-1);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
priv->pixel_label = label;
if (box->edit_resolution)
{
hbox = gtk_hbox_new (FALSE, 0);
......@@ -294,7 +298,7 @@ gimp_size_box_constructor (GType type,
PANGO_ATTR_SCALE, PANGO_SCALE_SMALL,
-1);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
priv->res_label = label;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment