From a19a3ac4aa9f51a1e58d872056e9a8535853f362 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 6 Jul 2005 00:31:59 +0000 Subject: [PATCH] match case-insensitive. 2005-07-06 Sven Neumann * app/plug-in/plug-ins-query.c (match_strings): match case-insensitive. * libgimpwidgets/gimpbrowser.c: unset "focus-on-click" on the filter combo-box. * plug-ins/dbbrowser/plugin-browser.c: moved "Insertation Date" column all the way to the right and renamed to "Installation Date". * plug-ins/common/gauss.c: tweaked dialog packing. --- app/plug-in/gimppluginmanager-query.c | 2 +- app/plug-in/plug-ins-query.c | 2 +- libgimpwidgets/gimpbrowser.c | 2 ++ plug-ins/common/gauss.c | 2 +- plug-ins/common/plugin-browser.c | 35 ++++++++++++++------------- plug-ins/dbbrowser/plugin-browser.c | 35 ++++++++++++++------------- 6 files changed, 41 insertions(+), 37 deletions(-) diff --git a/app/plug-in/gimppluginmanager-query.c b/app/plug-in/gimppluginmanager-query.c index 15c1f033d5..fa0bd8558c 100644 --- a/app/plug-in/gimppluginmanager-query.c +++ b/app/plug-in/gimppluginmanager-query.c @@ -45,7 +45,7 @@ static int match_strings (regex_t *preg, gchar *a) { - return regexec (preg, a, 0, NULL, 0); + return regexec (preg, a, 0, NULL, REG_ICASE); } gint diff --git a/app/plug-in/plug-ins-query.c b/app/plug-in/plug-ins-query.c index 15c1f033d5..fa0bd8558c 100644 --- a/app/plug-in/plug-ins-query.c +++ b/app/plug-in/plug-ins-query.c @@ -45,7 +45,7 @@ static int match_strings (regex_t *preg, gchar *a) { - return regexec (preg, a, 0, NULL, 0); + return regexec (preg, a, 0, NULL, REG_ICASE); } gint diff --git a/libgimpwidgets/gimpbrowser.c b/libgimpwidgets/gimpbrowser.c index c9de066aec..aa776ba510 100644 --- a/libgimpwidgets/gimpbrowser.c +++ b/libgimpwidgets/gimpbrowser.c @@ -210,6 +210,8 @@ gimp_browser_add_search_types (GimpBrowser *browser, args); va_end (args); + gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (combo), FALSE); + browser->search_type_combo = combo; browser->search_type = first_type_id; diff --git a/plug-ins/common/gauss.c b/plug-ins/common/gauss.c index 51eeca84a5..42257d96f0 100644 --- a/plug-ins/common/gauss.c +++ b/plug-ins/common/gauss.c @@ -483,7 +483,7 @@ gauss_dialog (gint32 image_ID, /* parameter settings */ frame = gimp_frame_new (_("Blur Radius")); - gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0); gtk_widget_show (frame); /* Get the image resolution and unit */ diff --git a/plug-ins/common/plugin-browser.c b/plug-ins/common/plugin-browser.c index 48a932fbfe..39c6d2c65b 100644 --- a/plug-ins/common/plugin-browser.c +++ b/plug-ins/common/plugin-browser.c @@ -588,14 +588,6 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_NAME); gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); - renderer = gtk_cell_renderer_text_new (); - column = gtk_tree_view_column_new_with_attributes (_("Insertion Date"), - renderer, - "text", LIST_COLUMN_DATE, - NULL); - gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_DATE); - gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); - renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (_("Menu Path"), renderer, @@ -613,6 +605,15 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_IMAGE_TYPES); gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); + renderer = gtk_cell_renderer_text_new (); + + column = gtk_tree_view_column_new_with_attributes (_("Installation Date"), + renderer, + "text", LIST_COLUMN_DATE, + NULL); + gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_DATE); + gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); + scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), @@ -657,15 +658,6 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_PATH_NAME); gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); - renderer = gtk_cell_renderer_text_new (); - column = gtk_tree_view_column_new_with_attributes (_("Insertion Date"), - renderer, - "text", - TREE_COLUMN_DATE, - NULL); - gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_DATE); - gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); - renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (_("Image Types"), renderer, @@ -675,6 +667,15 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_IMAGE_TYPES); gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); + renderer = gtk_cell_renderer_text_new (); + column = gtk_tree_view_column_new_with_attributes (_("Installation Date"), + renderer, + "text", + TREE_COLUMN_DATE, + NULL); + gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_DATE); + gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); + scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), diff --git a/plug-ins/dbbrowser/plugin-browser.c b/plug-ins/dbbrowser/plugin-browser.c index 48a932fbfe..39c6d2c65b 100644 --- a/plug-ins/dbbrowser/plugin-browser.c +++ b/plug-ins/dbbrowser/plugin-browser.c @@ -588,14 +588,6 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_NAME); gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); - renderer = gtk_cell_renderer_text_new (); - column = gtk_tree_view_column_new_with_attributes (_("Insertion Date"), - renderer, - "text", LIST_COLUMN_DATE, - NULL); - gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_DATE); - gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); - renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (_("Menu Path"), renderer, @@ -613,6 +605,15 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_IMAGE_TYPES); gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); + renderer = gtk_cell_renderer_text_new (); + + column = gtk_tree_view_column_new_with_attributes (_("Installation Date"), + renderer, + "text", LIST_COLUMN_DATE, + NULL); + gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_DATE); + gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); + scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), @@ -657,15 +658,6 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_PATH_NAME); gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); - renderer = gtk_cell_renderer_text_new (); - column = gtk_tree_view_column_new_with_attributes (_("Insertion Date"), - renderer, - "text", - TREE_COLUMN_DATE, - NULL); - gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_DATE); - gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); - renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (_("Image Types"), renderer, @@ -675,6 +667,15 @@ browser_dialog_new (void) gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_IMAGE_TYPES); gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); + renderer = gtk_cell_renderer_text_new (); + column = gtk_tree_view_column_new_with_attributes (_("Installation Date"), + renderer, + "text", + TREE_COLUMN_DATE, + NULL); + gtk_tree_view_column_set_sort_column_id (column, TREE_COLUMN_DATE); + gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); + scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),