[brasero] Fix the build with recent GTK+
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix the build with recent GTK+
- Date: Fri, 3 Dec 2010 18:57:52 +0000 (UTC)
commit a3b0605e2bc2e7f6262a43338f254d22d75f1b90
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 2 23:33:58 2010 -0500
Fix the build with recent GTK+
GdkDrawable apis are gone.
libbrasero-burn/brasero-burn-dialog.c | 2 +-
libbrasero-burn/brasero-burn-options.c | 2 +-
libbrasero-utils/brasero-io.c | 2 +-
src/brasero-player-bacon.c | 2 +-
src/brasero-project.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index 11afdab..eb20169 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -1483,7 +1483,7 @@ brasero_burn_dialog_install_missing_cb (BraseroBurn *burn,
/* Get the xid */
window = gtk_widget_get_window (user_data);
- xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (window));
+ xid = gdk_x11_window_get_xid (window);
package = brasero_pk_new ();
cancel = g_cancellable_new ();
diff --git a/libbrasero-burn/brasero-burn-options.c b/libbrasero-burn/brasero-burn-options.c
index ec1b0ec..872dd9a 100644
--- a/libbrasero-burn/brasero-burn-options.c
+++ b/libbrasero-burn/brasero-burn-options.c
@@ -1131,7 +1131,7 @@ brasero_burn_options_install_missing (BraseroPluginErrorType type,
int xid = 0;
/* Get the xid */
- xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (gtk_widget_get_window (GTK_WIDGET (user_data))));
+ xid = gdk_x11_window_get_xid (gtk_widget_get_window (GTK_WIDGET (user_data)));
package = brasero_pk_new ();
cancel = g_cancellable_new ();
diff --git a/libbrasero-utils/brasero-io.c b/libbrasero-utils/brasero-io.c
index b121a25..135ab36 100644
--- a/libbrasero-utils/brasero-io.c
+++ b/libbrasero-utils/brasero-io.c
@@ -2353,7 +2353,7 @@ static int
GtkWindow *parent;
parent = priv->win_callback (priv->win_user_data);
- xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (gtk_widget_get_window(GTK_WIDGET (parent))));
+ xid = gdk_x11_window_get_xid (gtk_widget_get_window(GTK_WIDGET (parent)));
return xid;
}
diff --git a/src/brasero-player-bacon.c b/src/brasero-player-bacon.c
index 49854a9..91a6424 100644
--- a/src/brasero-player-bacon.c
+++ b/src/brasero-player-bacon.c
@@ -187,7 +187,7 @@ brasero_player_bacon_draw (GtkWidget *widget, cairo_t *cr)
window = gtk_widget_get_window (widget);
if (window)
- bacon->priv->xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (window));
+ bacon->priv->xid = gdk_x11_window_get_xid (window);
if (bacon->priv->xoverlay
&& GST_IS_X_OVERLAY (bacon->priv->xoverlay)
diff --git a/src/brasero-project.c b/src/brasero-project.c
index e953b7b..af98604 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -1318,7 +1318,7 @@ brasero_project_install_missing (BraseroPluginErrorType type,
/* Get the xid */
parent = gtk_widget_get_toplevel (GTK_WIDGET (project));
- xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (gtk_widget_get_window (parent)));
+ xid = gdk_x11_window_get_xid (gtk_widget_get_window (parent));
package = brasero_pk_new ();
cancel = g_cancellable_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]