aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/range_utils.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-11-26 11:57:54 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-11-26 11:57:54 +0000
commit11a0eb486790fa0fa9fc40dbc7a18e92ea66911b (patch)
tree7329394d5cc9ecc9dca5d5649bce81106b73ec14 /gtk/range_utils.c
parent2edee79378560690fa4e43d78f4ec59c6a7e5a84 (diff)
fix #568: disable event "activate" handler for the range entry field. see the added comment for details
svn path=/trunk/; revision=16604
Diffstat (limited to 'gtk/range_utils.c')
-rw-r--r--gtk/range_utils.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/gtk/range_utils.c b/gtk/range_utils.c
index d0e4110514..703826bd3a 100644
--- a/gtk/range_utils.c
+++ b/gtk/range_utils.c
@@ -297,7 +297,19 @@ range_entry(GtkWidget *widget _U_, gpointer data)
static void
range_entry_in_event(GtkWidget *widget, GdkEventFocus *event _U_, gpointer user_data)
{
- range_entry(widget, user_data);
+ /* This event is called, if the "enter" key is pressed while the key focus (right name?) */
+ /* is in the range entry field. */
+
+ /* Calling range_entry() isn't necessary as all changes are already done while the */
+ /* entry was edited. Calling it here will cause a NULL pointer exception, */
+ /* so don't do: <range_entry(widget, user_data); as we did before. */
+
+ /* What we could do here is to cause the "hosting" dialog box do whatever it */
+ /* needs to do when the default button was pressed. This is difficult as we currently */
+ /* don't have a concept to call the hosting dialog this way. */
+
+ /* XXX - As we might want to put the whole range thing in it's own dialog, this would be */
+ /* a much easier task than it would be today as we could simply close our own dialog. */
}