X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkappchooseronlinepk.c;h=5b70a5d75cd74efb62bab555b1eb742beca44322;hb=fa4878979e0a72890ca577a210ccd7cf6291dbf0;hp=7bfc84de9c3f4f45317dbc64d6d239ccfaa3da63;hpb=569b5ffd5bf687cbb37e17367f1d7ac7657eee2e;p=~andy%2Fgtk diff --git a/gtk/gtkappchooseronlinepk.c b/gtk/gtkappchooseronlinepk.c index 7bfc84de9..5b70a5d75 100644 --- a/gtk/gtkappchooseronlinepk.c +++ b/gtk/gtkappchooseronlinepk.c @@ -14,9 +14,7 @@ * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with the Gnome Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . * * Authors: Cosimo Cecchi */ @@ -118,6 +116,7 @@ install_mime_types_ready_cb (GObject *source, } g_simple_async_result_complete (self->priv->result); + g_clear_object (&self->priv->result); } static void @@ -139,7 +138,8 @@ pk_search_mime_async (GtkAppChooserOnline *obj, #ifdef GDK_WINDOWING_X11 window = gtk_widget_get_window (GTK_WIDGET (parent)); - xid = GDK_WINDOW_XID (window); + if (GDK_IS_X11_WINDOW (window)) + xid = GDK_WINDOW_XID (window); #endif mime_types[0] = content_type;