[gnome-control-center] network: use computer-fail instead of the error icon when NM isn't available



commit 1e53d76bc0ca852169bead0d555170d134b3022b
Author: William Jon McCann <jmccann redhat com>
Date:   Mon Mar 21 09:58:08 2011 -0400

    network: use computer-fail instead of the error icon when NM isn't available
    
    It is not something the user did wrong so we shouldn't use a mean
    looking error icon.  We use computer-fail when something is wrong
    with the setup of the computer that the user can't fix.

 panels/network/cc-network-panel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 77e961a..78b3c87 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1770,6 +1770,7 @@ static gboolean
 display_version_warning_idle (CcNetworkPanel *panel)
 {
         GtkWidget  *dialog;
+        GtkWidget  *image;
         GtkWindow  *window;
         const char *message;
 
@@ -1783,6 +1784,10 @@ display_version_warning_idle (CcNetworkPanel *panel)
                                          GTK_BUTTONS_CLOSE,
                                          "%s",
                                          message);
+        image = gtk_image_new_from_icon_name ("computer-fail", GTK_ICON_SIZE_DIALOG);
+        gtk_widget_show (image);
+        gtk_message_dialog_set_image (GTK_MESSAGE_DIALOG (dialog), image);
+
         gtk_dialog_run (GTK_DIALOG (dialog));
         gtk_widget_destroy (dialog);
 



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