[gnome-packagekit] Bug 636361 — GTK+ no longer contains GdkDrawable



commit 8eade6d870b58537e8650e5fd6564d2f5d60b4b2
Author: Wouter Bolsterlee <wbolster gnome org>
Date:   Sat Dec 4 18:12:22 2010 +0100

    Bug 636361 â?? GTK+ no longer contains GdkDrawable
    
    Use the right GTK+ API instead.

 src/gpk-application.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 6ad9445..4ff8cdd 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2754,7 +2754,7 @@ gpk_application_menu_sources_cb (GtkAction *_action, gpointer user_data)
 
 	/* get xid */
 	window = GTK_WIDGET (gtk_builder_get_object (builder, "window_manager"));
-	xid = gdk_x11_drawable_get_xid (gtk_widget_get_window (window));
+	xid = gdk_x11_window_get_xid (gtk_widget_get_window (window));
 
 	command = g_strdup_printf ("%s/gnome-control-center update --parent-window %u", BINDIR, xid);
 	g_debug ("running: %s", command);
@@ -2778,7 +2778,7 @@ gpk_application_menu_log_cb (GtkAction *_action, gpointer user_data)
 
 	/* get xid */
 	window = GTK_WIDGET (gtk_builder_get_object (builder, "window_manager"));
-	xid = gdk_x11_drawable_get_xid (gtk_widget_get_window (window));
+	xid = gdk_x11_window_get_xid (gtk_widget_get_window (window));
 
 	command = g_strdup_printf ("%s/gpk-log --parent-window %u", BINDIR, xid);
 	g_debug ("running: %s", command);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]