[gimp] libgimpwidgets: check icon position in the 'icon-press' signal handler
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] libgimpwidgets: check icon position in the 'icon-press' signal handler
- Date: Sun, 24 May 2009 11:05:18 -0400 (EDT)
commit 149cc5da09a989ad9c807d176584f856b9f2d35d
Author: Sven Neumann <sven gimp org>
Date: Sun May 24 17:06:17 2009 +0200
libgimpwidgets: check icon position in the 'icon-press' signal handler
---
libgimpwidgets/gimpbrowser.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libgimpwidgets/gimpbrowser.c b/libgimpwidgets/gimpbrowser.c
index 9dc6b5d..916afbd 100644
--- a/libgimpwidgets/gimpbrowser.c
+++ b/libgimpwidgets/gimpbrowser.c
@@ -331,7 +331,9 @@ gimp_browser_entry_icon_press (GtkEntry *entry,
GdkEvent *event,
GimpBrowser *browser)
{
- if (((GdkEventButton*) event)->button == 1)
+ GdkEventButton *bevent = (GdkEventButton *) event;
+
+ if (icon_pos == GTK_ENTRY_ICON_SECONDARY && bevent->button == 1)
{
gtk_entry_set_text (entry, "");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]