mirror of https://github.com/GNOME/gimp.git
match case-insensitive.
2005-07-06 Sven Neumann <sven@gimp.org> * 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.
This commit is contained in:
parent
419b1ef03d
commit
a19a3ac4aa
|
@ -45,7 +45,7 @@ static int
|
||||||
match_strings (regex_t *preg,
|
match_strings (regex_t *preg,
|
||||||
gchar *a)
|
gchar *a)
|
||||||
{
|
{
|
||||||
return regexec (preg, a, 0, NULL, 0);
|
return regexec (preg, a, 0, NULL, REG_ICASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
|
|
|
@ -45,7 +45,7 @@ static int
|
||||||
match_strings (regex_t *preg,
|
match_strings (regex_t *preg,
|
||||||
gchar *a)
|
gchar *a)
|
||||||
{
|
{
|
||||||
return regexec (preg, a, 0, NULL, 0);
|
return regexec (preg, a, 0, NULL, REG_ICASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
|
|
|
@ -210,6 +210,8 @@ gimp_browser_add_search_types (GimpBrowser *browser,
|
||||||
args);
|
args);
|
||||||
va_end (args);
|
va_end (args);
|
||||||
|
|
||||||
|
gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (combo), FALSE);
|
||||||
|
|
||||||
browser->search_type_combo = combo;
|
browser->search_type_combo = combo;
|
||||||
browser->search_type = first_type_id;
|
browser->search_type = first_type_id;
|
||||||
|
|
||||||
|
|
|
@ -483,7 +483,7 @@ gauss_dialog (gint32 image_ID,
|
||||||
|
|
||||||
/* parameter settings */
|
/* parameter settings */
|
||||||
frame = gimp_frame_new (_("Blur Radius"));
|
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);
|
gtk_widget_show (frame);
|
||||||
|
|
||||||
/* Get the image resolution and unit */
|
/* Get the image resolution and unit */
|
||||||
|
|
|
@ -588,14 +588,6 @@ browser_dialog_new (void)
|
||||||
gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_NAME);
|
gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_NAME);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column);
|
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 ();
|
renderer = gtk_cell_renderer_text_new ();
|
||||||
column = gtk_tree_view_column_new_with_attributes (_("Menu Path"),
|
column = gtk_tree_view_column_new_with_attributes (_("Menu Path"),
|
||||||
renderer,
|
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_column_set_sort_column_id (column, LIST_COLUMN_IMAGE_TYPES);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column);
|
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);
|
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
||||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
|
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_column_set_sort_column_id (column, TREE_COLUMN_PATH_NAME);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column);
|
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 ();
|
renderer = gtk_cell_renderer_text_new ();
|
||||||
column = gtk_tree_view_column_new_with_attributes (_("Image Types"),
|
column = gtk_tree_view_column_new_with_attributes (_("Image Types"),
|
||||||
renderer,
|
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_column_set_sort_column_id (column, TREE_COLUMN_IMAGE_TYPES);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column);
|
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);
|
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
||||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
|
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
|
||||||
|
|
|
@ -588,14 +588,6 @@ browser_dialog_new (void)
|
||||||
gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_NAME);
|
gtk_tree_view_column_set_sort_column_id (column, LIST_COLUMN_NAME);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column);
|
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 ();
|
renderer = gtk_cell_renderer_text_new ();
|
||||||
column = gtk_tree_view_column_new_with_attributes (_("Menu Path"),
|
column = gtk_tree_view_column_new_with_attributes (_("Menu Path"),
|
||||||
renderer,
|
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_column_set_sort_column_id (column, LIST_COLUMN_IMAGE_TYPES);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column);
|
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);
|
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
||||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
|
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_column_set_sort_column_id (column, TREE_COLUMN_PATH_NAME);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column);
|
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 ();
|
renderer = gtk_cell_renderer_text_new ();
|
||||||
column = gtk_tree_view_column_new_with_attributes (_("Image Types"),
|
column = gtk_tree_view_column_new_with_attributes (_("Image Types"),
|
||||||
renderer,
|
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_column_set_sort_column_id (column, TREE_COLUMN_IMAGE_TYPES);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column);
|
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);
|
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
|
||||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
|
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
|
||||||
|
|
Loading…
Reference in New Issue