Show error message on pushing 'Prefernces' on 'pager' if no WM configurator found.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 17 Aug 2014 16:03:32 +0000 (19:03 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 17 Aug 2014 16:03:32 +0000 (19:03 +0300)
Also corrected error message parameters on 'volumealsa' plugin.

plugins/pager.c
plugins/volumealsa/volumealsa.c

index 17466f1..e333783 100644 (file)
@@ -88,6 +88,9 @@ static GtkWidget *pager_configure(LXPanel *panel, GtkWidget *instance)
     if (configure_command)
         fm_launch_command_simple(NULL, NULL, G_APP_INFO_CREATE_NONE,
                                  configure_command, NULL);
+    else
+        fm_show_error(NULL, NULL,
+                      _("Sorry, there was no window manager configuration program found."));
     return NULL; /* no configuration dialog of lxpanel available */
 }
 
index ffc932e..90116a8 100644 (file)
@@ -620,9 +620,9 @@ static GtkWidget *volumealsa_configure(LXPanel *panel, GtkWidget *p)
     }
     else
     {
-        fm_show_error(NULL,
-                      _("Error, you need to install an application to configure the sound (pavucontrol, alsamixer ...)"),
-                      NULL);
+        fm_show_error(NULL, NULL,
+                      _("Error, you need to install an application to configure"
+                        " the sound (pavucontrol, alsamixer ...)"));
     }
 
     return NULL;