[gimp] display: reserve more space for the cursor label so negative coords fit
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] display: reserve more space for the cursor label so negative coords fit
- Date: Thu, 11 Feb 2010 18:56:01 +0000 (UTC)
commit 56ec0c87740279d53a5f3467ffba290d7aab6ea7
Author: Michael Natterer <mitch gimp org>
Date: Thu Feb 11 19:55:20 2010 +0100
display: reserve more space for the cursor label so negative coords fit
app/display/gimpstatusbar.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpstatusbar.c b/app/display/gimpstatusbar.c
index 6ccf75a..d58bca7 100644
--- a/app/display/gimpstatusbar.c
+++ b/app/display/gimpstatusbar.c
@@ -52,6 +52,9 @@
/* maximal width of the string holding the cursor-coordinates */
#define CURSOR_LEN 256
+/* the spacing of the hbox */
+#define HBOX_SPACING 1
+
/* spacing between the icon and the statusbar label */
#define ICON_SPACING 2
@@ -186,7 +189,7 @@ gimp_statusbar_init (GimpStatusbar *statusbar)
#if GTK_CHECK_VERSION (2, 19, 1)
{
hbox = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar));
- gtk_box_set_spacing (GTK_BOX (hbox), 1);
+ gtk_box_set_spacing (GTK_BOX (hbox), HBOX_SPACING);
gtk_container_remove (GTK_CONTAINER (hbox), label);
}
#else
@@ -196,7 +199,7 @@ gimp_statusbar_init (GimpStatusbar *statusbar)
label_parent = gtk_widget_get_parent (label);
gtk_container_remove (GTK_CONTAINER (label_parent), label);
- hbox = gtk_hbox_new (FALSE, 1);
+ hbox = gtk_hbox_new (FALSE, HBOX_SPACING);
gtk_container_add (GTK_CONTAINER (label_parent), hbox);
gtk_widget_show (hbox);
}
@@ -1448,7 +1451,7 @@ gimp_statusbar_shell_scaled (GimpDisplayShell *shell,
}
gimp_statusbar_update_cursor (statusbar, GIMP_CURSOR_PRECISION_SUBPIXEL,
- image_width, image_height);
+ -image_width, -image_height);
text = gtk_label_get_text (GTK_LABEL (statusbar->cursor_label));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]