[gnome-settings-daemon] Simplifying and updating error popup



commit d8a5d69e2c3c1077bfcb81eace7cdad6ca97ba7b
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Tue Oct 19 20:50:14 2010 +0100

    Simplifying and updating error popup
    
    Getting rid of useless information, updating the diag cmds to use gsettings

 plugins/keyboard/gsd-keyboard-xkb.c |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-xkb.c b/plugins/keyboard/gsd-keyboard-xkb.c
index cb5ebe4..d9c0614 100644
--- a/plugins/keyboard/gsd-keyboard-xkb.c
+++ b/plugins/keyboard/gsd-keyboard-xkb.c
@@ -92,11 +92,9 @@ static void
 activation_error (void)
 {
 	char const *vendor;
-	int release;
 	GtkWidget *dialog;
 
 	vendor = ServerVendor (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
-	release = VendorRelease (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
 
 	/* VNC viewers will not work, do not barrage them with warnings */
 	if (NULL != vendor && NULL != strstr (vendor, "VNC"))
@@ -108,18 +106,16 @@ activation_error (void)
 						     GTK_BUTTONS_CLOSE,
 						     _
 						     ("Error activating XKB configuration.\n"
-						      "It can happen under various circumstances:\n"
-						      " â?¢ a bug in libxklavier library\n"
-						      " â?¢ a bug in X server (xkbcomp, xmodmap utilities)\n"
-						      " â?¢ X server with incompatible libxkbfile implementation\n\n"
-						      "X server version data:\n%s\n%d\n"
-						      "If you report this situation as a bug, please include:\n"
-						      " â?¢ The result of <b>%s</b>\n"
-						      " â?¢ The result of <b>%s</b>"),
-						     vendor,
-						     release,
+						      "There can be various reasons for that.\n\n"
+						      "If you report this situation as a bug, include the results of\n"
+						      " â?¢ <b>%s</b>\n"
+						      " â?¢ <b>%s</b>\n"
+						      " â?¢ <b>%s</b>\n"
+						      " â?¢ <b>%s</b>"),
 						     "xprop -root | grep XKB",
-						     "gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd");
+						     "gsettings get org.gnome.libgnomekbd.keyboard model",
+						     "gsettings get org.gnome.libgnomekbd.keyboard layouts",
+						     "gsettings get org.gnome.libgnomekbd.keyboard options");
 	g_signal_connect (dialog, "response",
 			  G_CALLBACK (gtk_widget_destroy), NULL);
 	gsd_delayed_show_dialog (dialog);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]