[Xfce4-commits] <parole:master> Make codec installer transient for parole window.
Sean Davis
noreply at xfce.org
Sun Jan 13 02:00:05 CET 2013
Updating branch refs/heads/master
to 980788f08f626c2ac01ba6347da9a40791ac0959 (commit)
from f336ed1325b56a29bc1e94d21feb974dd62365fc (commit)
commit 980788f08f626c2ac01ba6347da9a40791ac0959
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sat Jan 12 18:01:41 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