[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Warn the user that he tried to disable all screens.

Jérôme Guelfucci noreply at xfce.org
Sun Jun 27 00:06:01 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to beaca0ddfaec63b56243d90836285b3968e18e1c (commit)
       from 5cec7176b9f4bfb4a422c174176aab369cd9b07d (commit)

commit beaca0ddfaec63b56243d90836285b3968e18e1c
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sat Jun 26 21:37:56 2010 +0200

    Warn the user that he tried to disable all screens.

 xfce4-settings-helper/displays.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index 2f3bf7f..17ca725 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -29,6 +29,7 @@
 #include <gdk/gdkx.h>
 #include <gtk/gtk.h>
 #include <xfconf/xfconf.h>
+#include <libxfce4ui/libxfce4ui.h>
 
 #include <X11/extensions/Xrandr.h>
 
@@ -632,7 +633,10 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
 
             if (nactive == 1)
             {
-                g_warning ("Disregarding request to disable the last active output (%s).\n", output->info->name);
+                xfce_dialog_show_warning (NULL,
+                                          _("The last active screen must not be disabled, the system would"
+                                            " be unusable."),
+                                          _("%s was not disabled"), output->info->name);
                 continue;
             }
             crtc = xfce_displays_helper_find_crtc_by_id (resources, crtcs,



More information about the Xfce4-commits mailing list