[giv] * giv-win.gob, giv-contrast.gob, giv-histo.gob : Moving over a gray level image updates the pointer
- From: Dov Grobgeld <dov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giv] * giv-win.gob, giv-contrast.gob, giv-histo.gob : Moving over a gray level image updates the pointer
- Date: Tue, 12 Apr 2011 19:38:55 +0000 (UTC)
commit 40f2119b97da89ea0001a9832c2e6c9128726fb5
Author: Dov Grobgeld <dov grobgeld gmail com>
Date: Tue Apr 12 22:38:40 2011 +0300
* giv-win.gob, giv-contrast.gob, giv-histo.gob : Moving over a gray level image updates the pointer triangle in the histogram.
ChangeLog | 4 ++++
src/giv-contrast.gob | 7 +++++++
src/giv-histo.gob | 8 ++++++++
src/giv-win.gob | 3 +++
4 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index aeb8e1d..aca7e8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-04-12 Dov Grobgeld <dov grobgeld gmail com>
+
+ * giv-win.gob, giv-contrast.gob, giv-histo.gob : Moving over a gray level image updates the pointer triangle in the histogram.
+
2011-04-10 Dov Grobgeld <dov grobgeld gmail com>
* giv-win.gob : Made GL of integer formats show all values as integers.
diff --git a/src/giv-contrast.gob b/src/giv-contrast.gob
index 5cabfb2..e29d1a2 100644
--- a/src/giv-contrast.gob
+++ b/src/giv-contrast.gob
@@ -179,6 +179,13 @@ class Giv:Contrast from Gtk:Dialog {
giv_histo_set_image(GIV_HISTO(selfp->w_histo), img);
}
+ public void
+ set_cursor_gl(self,
+ double gl)
+ {
+ giv_histo_set_cursor_gl(GIV_HISTO(selfp->w_histo), gl);
+ }
+
override (Gtk:Dialog) void
response (Gtk:Dialog *_self,
gint response_id)
diff --git a/src/giv-histo.gob b/src/giv-histo.gob
index 4f68327..4a55a97 100644
--- a/src/giv-histo.gob
+++ b/src/giv-histo.gob
@@ -112,6 +112,14 @@ class Giv:Histo from Gtk:Drawing:Area {
gtk_widget_queue_draw(GTK_WIDGET(self));
}
+
+ public void
+ set_cursor_gl(self,
+ double gl)
+ {
+ selfp->cursor_gl = gl;
+ gtk_widget_queue_draw(GTK_WIDGET(self));
+ }
override (Gtk:Widget) gboolean
expose_event (Gtk:Widget *_self,
diff --git a/src/giv-win.gob b/src/giv-win.gob
index 6a5a655..467309d 100644
--- a/src/giv-win.gob
+++ b/src/giv-win.gob
@@ -1718,6 +1718,9 @@ cb_motion_event(GtkWidget *widget,
g_string_sprintfa(info_label,
"] = #%02X",
(int)val);
+ if (selfp->w_contrast_view)
+ giv_contrast_set_cursor_gl(GIV_CONTRAST(selfp->w_contrast_view),
+ val);
}
else if (selfp->img_org->img_type == GIVIMAGE_RGBA_U8
|| selfp->img_org->img_type == GIVIMAGE_RGBA_U16) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]