[gnome-control-center] info: don't use the fallback warning text when turning it off



commit ab5adcb98ed160063a3983605a2eafddcd366d12
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Feb 17 18:21:22 2011 -0500

    info: don't use the fallback warning text when turning it off
    
    Use text that says the standard experience will be attempted.

 panels/info/cc-info-panel.c |   11 ++++++++++-
 panels/info/info.ui         |    2 +-
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 2a2d358..0b20eab 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -734,9 +734,18 @@ static void
 toggle_fallback_warning_label (CcInfoPanel *self,
                                gboolean     visible)
 {
-  GtkWidget *widget;
+  GtkWidget  *widget;
+  const char *text;
 
   widget = WID (self->priv->builder, "graphics_logout_warning_label");
+
+  if (self->priv->is_fallback)
+    text = _("The next login will attempt to use the standard experience.");
+  else
+    text = _("The next login will use the fallback mode intended for unsupported graphics hardware.");
+
+  gtk_label_set_text (GTK_LABEL (widget), text);
+
   if (visible)
     gtk_widget_show (widget);
   else
diff --git a/panels/info/info.ui b/panels/info/info.ui
index 288f44b..a42fc58 100644
--- a/panels/info/info.ui
+++ b/panels/info/info.ui
@@ -757,7 +757,7 @@
                                 <property name="can_focus">False</property>
                                 <property name="no_show_all">True</property>
                                 <property name="xalign">0</property>
-                                <property name="label">The next login will use the fallback mode intended for unsupported graphics hardware</property>
+                                <property name="label">The next login will use the fallback mode intended for unsupported graphics hardware.</property>
                                 <property name="wrap">True</property>
                                 <property name="selectable">True</property>
                                 <attributes>



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