[gimp/gtk3-port: 258/444] libgimpwidgets: GimpBrowser undeprecated: threads and focus-on-click
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 258/444] libgimpwidgets: GimpBrowser undeprecated: threads and focus-on-click
- Date: Sun, 13 May 2018 21:59:33 +0000 (UTC)
commit 571fb67f890edd242bc5f9132fc68bf9cd98b90b
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 29 17:35:33 2018 +0200
libgimpwidgets: GimpBrowser undeprecated: threads and focus-on-click
libgimpwidgets/gimpbrowser.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libgimpwidgets/gimpbrowser.c b/libgimpwidgets/gimpbrowser.c
index be27692..352a40d 100644
--- a/libgimpwidgets/gimpbrowser.c
+++ b/libgimpwidgets/gimpbrowser.c
@@ -265,7 +265,7 @@ gimp_browser_add_search_types (GimpBrowser *browser,
args);
va_end (args);
- gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (combo), FALSE);
+ gtk_widget_set_focus_on_click (combo, FALSE);
priv->search_type_combo = combo;
priv->search_type = first_type_id;
@@ -484,8 +484,6 @@ gimp_browser_search_timeout (gpointer data)
GimpBrowserPrivate *priv = GET_PRIVATE (data);
const gchar *search_string;
- GDK_THREADS_ENTER();
-
search_string = gtk_entry_get_text (GTK_ENTRY (priv->search_entry));
if (! search_string)
@@ -496,7 +494,5 @@ gimp_browser_search_timeout (gpointer data)
priv->search_timeout_id = 0;
- GDK_THREADS_LEAVE();
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]