aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-09 05:20:05 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-09 05:20:05 +0800
commit61066010dcf502a4e3879b8539b92dde34bb27ff (patch)
tree7d73125c93a8f2a03faec4dd4384568a33144ca0
parent8632f73b6f67d9f8e657b7a696bcbea6a5ed7aaa (diff)
downloadgsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.tar
gsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.tar.gz
gsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.tar.bz2
gsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.tar.lz
gsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.tar.xz
gsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.tar.zst
gsoc2013-evolution-61066010dcf502a4e3879b8539b92dde34bb27ff.zip
Make sure we have something selected first ;-)
2001-03-08 Jeffrey Stedfast <fejj@ximian.com> * vfolder-editor.c (double_click): Make sure we have something selected first ;-) * filter-editor.c (double_click): And here too. svn path=/trunk/; revision=8599
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/filter-editor.c6
-rw-r--r--filter/vfolder-editor.c6
3 files changed, 13 insertions, 6 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 3cecbeb156..768891ac77 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+2001-03-08 Jeffrey Stedfast <fejj@ximian.com>
+
+ * vfolder-editor.c (double_click): Make sure we have something
+ selected first ;-)
+
+ * filter-editor.c (double_click): And here too.
+
2001-03-03 Not Zed <NotZed@Ximian.com>
* filter.glade: Added option menu to vfolder editor.
diff --git a/filter/filter-editor.c b/filter/filter-editor.c
index 5fa1796e3f..1c6c46291b 100644
--- a/filter/filter-editor.c
+++ b/filter/filter-editor.c
@@ -388,10 +388,10 @@ select_rule (GtkWidget *w, GtkWidget *child, struct _editor_data *data)
}
static void
-double_click (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
+double_click (GtkWidget *widget, GdkEventButton *event, struct _editor_data *data)
{
- if (event->type == GDK_2BUTTON_PRESS)
- rule_edit (widget, user_data);
+ if (data->current && event->type == GDK_2BUTTON_PRESS)
+ rule_edit (widget, data);
}
/* FIXME: we need a way to change a rule from one source type
diff --git a/filter/vfolder-editor.c b/filter/vfolder-editor.c
index 1b2022fecb..caa9069ac5 100644
--- a/filter/vfolder-editor.c
+++ b/filter/vfolder-editor.c
@@ -338,10 +338,10 @@ select_rule (GtkWidget *w, GtkWidget *child, struct _editor_data *data)
}
static void
-double_click (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
+double_click (GtkWidget *widget, GdkEventButton *event, struct _editor_data *data)
{
- if (event->type == GDK_2BUTTON_PRESS)
- rule_edit (widget, user_data);
+ if (data->current && event->type == GDK_2BUTTON_PRESS)
+ rule_edit (widget, data);
}
GtkWidget *