[gimp/gtk3-port: 258/274] libgimpwidgets: GimpBrowser undeprecated: threads and focus-on-click



commit 8d213c4e503b46285bc36b44afa8bfe24de4c8d1
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]