Revision: 1426
http://geeqie.svn.sourceforge.net/geeqie/?rev=1426&view=rev
Author: zas_
Date: 2009-02-26 21:46:27 +0000 (Thu, 26 Feb 2009)
Log Message:
-----------
Add a tooltip showing current histogram state on bar histogram.
Modified Paths:
--------------
trunk/src/bar_histogram.c
Modified: trunk/src/bar_histogram.c
===================================================================
--- trunk/src/bar_histogram.c 2009-02-26 20:50:36 UTC (rev 1425)
+++ trunk/src/bar_histogram.c 2009-02-26 21:46:27 UTC (rev 1426)
@@ -62,6 +62,10 @@
phd->pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8,
phd->histogram_width, phd->histogram_height);
gdk_pixbuf_fill(phd->pixbuf, 0xffffffff);
histogram_draw(phd->histogram, histmap, phd->pixbuf, 0, 0,
phd->histogram_width, phd->histogram_height);
+
+#if GTK_CHECK_VERSION(2,12,0)
+ gtk_widget_set_tooltip_text(phd->drawing_area,
histogram_label(phd->histogram));
+#endif
}
@@ -328,6 +332,9 @@
g_signal_connect(G_OBJECT(phd->drawing_area), "button_press_event",
G_CALLBACK(bar_pane_histogram_press_cb), phd);
+#if GTK_CHECK_VERSION(2,12,0)
+ gtk_widget_set_tooltip_text(phd->drawing_area,
histogram_label(phd->histogram));
+#endif
gtk_widget_show(phd->widget);
file_data_register_notify_func(bar_pane_histogram_notify_cb, phd,
NOTIFY_PRIORITY_LOW);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn