[gimp/tito: 13/15] app: remove leading/trailing spaces to keyword before action searching.



commit 6581324d3f1a854bc62306945e329e8eef291934
Author: Jehan <jehan girinstud io>
Date:   Sat Nov 30 19:01:06 2013 +1300

    app: remove leading/trailing spaces to keyword before action searching.

 app/dialogs/action-search-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/dialogs/action-search-dialog.c b/app/dialogs/action-search-dialog.c
index ca5e6bd..a314e65 100644
--- a/app/dialogs/action-search-dialog.c
+++ b/app/dialogs/action-search-dialog.c
@@ -170,7 +170,7 @@ key_released (GtkWidget    *widget,
   gint           width;
 
   gtk_window_get_size (GTK_WINDOW (private->dialog), &width, NULL);
-  entry_text = gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1);
+  entry_text = g_strstrip (gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1));
 
   switch (event->keyval)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]