[Xfce4-commits] <parole:gst1.0> Make codec installer transient for parole window.
Sean Davis
noreply at xfce.org
Sun Jan 13 04:04:12 CET 2013
Updating branch refs/heads/gst1.0
to 6110eb94b4ed6daff59ded8211a1f0b7d27b077f (commit)
from e242c40e103357221992a595c25979e3007bd0a9 (commit)
commit 6110eb94b4ed6daff59ded8211a1f0b7d27b077f
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sat Jan 12 22:00:11 2013 -0500
Make codec installer transient for parole window.
src/gst/parole-gst.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/gst/parole-gst.c b/src/gst/parole-gst.c
index 8b21af6..8c67c11 100644
--- a/src/gst/parole-gst.c
+++ b/src/gst/parole-gst.c
@@ -1565,6 +1565,9 @@ parole_gst_bus_event (GstBus *bus, GstMessage *msg, gpointer data)
gchar* details[2];
GstInstallPluginsContext *ctx;
gint response;
+#ifdef GDK_WINDOWING_X11
+ GtkWidget *parent;
+#endif
gst = PAROLE_GST (data);
@@ -1658,6 +1661,20 @@ parole_gst_bus_event (GstBus *bus, GstMessage *msg, gpointer data)
details[0] = gst_missing_plugin_message_get_installer_detail(msg);
details[1] = NULL;
ctx = gst_install_plugins_context_new();
+
+#ifdef GDK_WINDOWING_X11
+ if (gtk_widget_get_window (GTK_WIDGET (gst)) != NULL &&
+ gtk_widget_get_realized (GTK_WIDGET (gst)))
+ {
+ gulong xid = 0;
+
+ parent = gtk_widget_get_toplevel (GTK_WIDGET (gst));
+
+ xid = GDK_WINDOW_XID(gtk_widget_get_window (parent));
+ gst_install_plugins_context_set_xid (ctx, xid);
+ }
+#endif /* GDK_WINDOWING_X11 */
+
#if GST_CHECK_VERSION(1, 0, 0)
gst_install_plugins_async((const gchar * const *) details, ctx, parole_gst_install_plugins_result_func, gst);
#else
More information about the Xfce4-commits
mailing list