[Xfce4-commits] [apps/parole] 01/01: Catch GST_INSTALL_PLUGINS_HELPER_MISSING and notify the user (bug #14529)

noreply at xfce.org noreply at xfce.org
Sat Aug 25 12:21:21 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/parole.

commit 171d87ad3210bd1f3e1a42cc6df862e8ea4679b6
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Aug 25 06:21:15 2018 -0400

    Catch GST_INSTALL_PLUGINS_HELPER_MISSING and notify the user (bug #14529)
---
 src/gst/parole-gst.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/src/gst/parole-gst.c b/src/gst/parole-gst.c
index ac5fd31..8e0cc4a 100644
--- a/src/gst/parole-gst.c
+++ b/src/gst/parole-gst.c
@@ -1257,6 +1257,26 @@ parole_gst_application_message(ParoleGst *gst, GstMessage *msg) {
     }
 }
 
+static void
+parole_gst_missing_codec_helper_dialog(void) {
+    GtkMessageDialog *dialog;
+    gchar*     desc;
+
+    dialog = GTK_MESSAGE_DIALOG(gtk_message_dialog_new_with_markup(
+                            NULL,
+                            GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+                            GTK_MESSAGE_WARNING,
+                            GTK_BUTTONS_OK,
+                            "<b><big>%s</big></b>",
+                            _("Unable to install missing codecs.")));
+
+    gtk_message_dialog_format_secondary_markup(dialog,
+                                               _("No available plugin installer was found."));
+
+    gtk_dialog_run(GTK_DIALOG(dialog));
+    gtk_widget_destroy(GTK_WIDGET(dialog));
+}
+
 /**
  * parole_gst_install_plugins_result_func:
  * @result    : %GST_INSTALL_PLUGINS_SUCCESS (0) if successful
@@ -1279,6 +1299,9 @@ parole_gst_install_plugins_result_func(GstInstallPluginsReturn result, gpointer
         case GST_INSTALL_PLUGINS_USER_ABORT:
             g_debug("User aborted plugin install.\n");
             break;
+        case GST_INSTALL_PLUGINS_HELPER_MISSING:
+            parole_gst_missing_codec_helper_dialog();
+            break;
         default:
             g_debug("Plugin installation failed with code %i\n", result);
             break;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list