diff gtk3/dw.c @ 1389:0512fbb08abf

Added dw_window_set_tooltip() for adding bubble help to most controls. Mac, Windows and GTK should be supported... OS/2 coming soon.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 26 Nov 2011 21:00:14 +0000
parents 8fe15c1648c9
children 58c084177e3e
line wrap: on
line diff
--- a/gtk3/dw.c	Sat Nov 26 20:20:41 2011 +0000
+++ b/gtk3/dw.c	Sat Nov 26 21:00:14 2011 +0000
@@ -4335,6 +4335,21 @@
 }
 
 /*
+ * Sets the text used for a given window's floating bubble help.
+ * Parameters:
+ *       handle: Handle to the window (widget).
+ *       bubbletext: The text in the floating bubble tooltip.
+ */
+void API dw_window_set_tooltip(HWND handle, char *bubbletext)
+{
+   int _locked_by_me = FALSE;
+
+   DW_MUTEX_LOCK;
+   gtk_widget_set_tooltip_text(tmp, bubbletext);
+   DW_MUTEX_UNLOCK;
+}
+
+/*
  * Gets the text used for a given window.
  * Parameters:
  *       handle: Handle to the window.