]> granicus.if.org Git - transmission/commitdiff
(gtk) #5203 transmission-gtk shouldn't use gdk_threads_enter() and gdk_threads_leave...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 4 Jan 2013 07:08:25 +0000 (07:08 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 4 Jan 2013 07:08:25 +0000 (07:08 +0000)
gtk/tr-prefs.c

index f14568da842ab2daab3ad71249c315ed4b2edb8e..5c142f7c90641d6bd3560a99427264df33ebac59 100644 (file)
@@ -1135,11 +1135,9 @@ onCorePrefsChanged (TrCore * core UNUSED, const tr_quark key, gpointer gdata)
   if (key == TR_KEY_peer_port)
     {
       struct network_page_data * data = gdata;
-      gdk_threads_enter ();
       gtr_label_set_text (GTK_LABEL (data->portLabel), _("Status unknown"));
       gtk_widget_set_sensitive (data->portButton, TRUE);
       gtk_widget_set_sensitive (data->portSpin, TRUE);
-      gdk_threads_leave ();
     }
 }