1 --- gnome-control-center-2.23.90.old/capplets/display/xrandr-capplet.c 2008-09-25 12:15:58.397603000 +0100 2 +++ gnome-control-center-2.23.90/capplets/display/xrandr-capplet.c 2008-09-25 12:16:06.376162000 +0100 3 @@ -62,9 +62,8 @@ struct App 4 static void rebuild_gui (App *app); 5 static void on_rate_changed (GtkComboBox *box, gpointer data); 6 7 -#if 0 8 static void 9 -show_error (const GError *err) 10 +show_error (const char *err) 11 { 12 if (!err) 13 return; 14 @@ -73,14 +72,13 @@ show_error (const GError *err) 15 NULL, 16 GTK_DIALOG_DESTROY_WITH_PARENT, 17 GTK_MESSAGE_WARNING, 18 - GTK_BUTTONS_OK, err->message); 19 + GTK_BUTTONS_OK, err); 20 21 gtk_window_set_title (GTK_WINDOW (dialog), ""); 22 23 gtk_dialog_run (GTK_DIALOG (dialog)); 24 gtk_widget_destroy (dialog); 25 } 26 -#endif 27 28 static gboolean 29 do_free (gpointer data) 30 @@ -1715,7 +1713,8 @@ run_application (App *app) 31 on_screen_changed, app); 32 if (!app->screen) 33 { 34 - g_error ("Could not get screen info"); 35 + g_warning (_("The X server does not support the XRANDR extension. Runtime resolution changes to the display size are not available.")); 36 + show_error (_("The X server does not support the XRANDR extension. Runtime resolution changes to the display size are not available.")); 37 g_object_unref (xml); 38 return; 39 } 40