SF.net SVN: geany:[3775] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun May 10 17:44:14 UTC 2009


Revision: 3775
          http://geany.svn.sourceforge.net/geany/?rev=3775&view=rev
Author:   eht16
Date:     2009-05-10 17:44:14 +0000 (Sun, 10 May 2009)

Log Message:
-----------
Make the clear icon of entry fields act on the release event, not on the press event like for other buttons.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/ui_utils.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-05-08 17:04:40 UTC (rev 3774)
+++ trunk/ChangeLog	2009-05-10 17:44:14 UTC (rev 3775)
@@ -1,3 +1,10 @@
+2009-05-10  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/ui_utils.c:
+   Make the clear icon of entry fields act on the release event, not
+   on the press event like for other buttons.
+
+
 2009-05-08  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * plugins/filebrowser.c:

Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c	2009-05-08 17:04:40 UTC (rev 3774)
+++ trunk/src/ui_utils.c	2009-05-10 17:44:14 UTC (rev 3775)
@@ -1293,7 +1293,8 @@
 }
 
 
-static void entry_clear_icon_press_cb(GtkEntry *entry, gint icon_pos, GdkEvent *event, gpointer data)
+static void entry_clear_icon_release_cb(GtkEntry *entry, gint icon_pos,
+										GdkEvent *event, gpointer data)
 {
 	if (event->button.button == 1 && icon_pos == 1)
 	{
@@ -1318,7 +1319,7 @@
 	if (gtk_check_version(2, 15, 2) == NULL)
 	{
 		g_object_set(entry, "secondary-icon-stock", "gtk-clear", NULL);
-		g_signal_connect(entry, "icon-press", G_CALLBACK(entry_clear_icon_press_cb), NULL);
+		g_signal_connect(entry, "icon-release", G_CALLBACK(entry_clear_icon_release_cb), NULL);
 	}
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list