gimp r26568 - in trunk: . plug-ins/help-browser
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26568 - in trunk: . plug-ins/help-browser
- Date: Thu, 14 Aug 2008 20:38:07 +0000 (UTC)
Author: mitch
Date: Thu Aug 14 20:38:07 2008
New Revision: 26568
URL: http://svn.gnome.org/viewvc/gimp?rev=26568&view=rev
Log:
2008-08-14 Michael Natterer <mitch gimp org>
* plug-ins/help-browser/dialog.c (search_entry_key_press): search
the next match when return or enter is pressed in the search
entry.
Modified:
trunk/ChangeLog
trunk/plug-ins/help-browser/dialog.c
Modified: trunk/plug-ins/help-browser/dialog.c
==============================================================================
--- trunk/plug-ins/help-browser/dialog.c (original)
+++ trunk/plug-ins/help-browser/dialog.c Thu Aug 14 20:38:07 2008
@@ -1202,11 +1202,17 @@
search_entry_key_press (GtkWidget *entry,
GdkEventKey *event)
{
- if (event->keyval == GDK_Escape)
+ switch (event->keyval)
{
+ case GDK_Escape:
gtk_widget_hide (searchbar);
webkit_web_view_unmark_text_matches (WEBKIT_WEB_VIEW (view));
+ return TRUE;
+ case GDK_Return:
+ case GDK_KP_Enter:
+ case GDK_ISO_Enter:
+ search (gtk_entry_get_text (GTK_ENTRY (entry)), TRUE);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]