[mutter] util: Use a sad face in the force-quit dialog



commit ae1be578ba0868ea22b2dc93968f82698a658289
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Sep 18 22:57:26 2012 +0200

    util: Use a sad face in the force-quit dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684306

 src/core/delete.c  |    3 ++-
 src/core/session.c |    2 +-
 src/core/util.c    |    7 +++++++
 src/meta/util.h    |    1 +
 4 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/core/delete.c b/src/core/delete.c
index d90e49e..29d46f2 100644
--- a/src/core/delete.c
+++ b/src/core/delete.c
@@ -126,7 +126,8 @@ delete_ping_timeout_func (MetaDisplay *display,
     meta_show_dialog ("--question",
                       window_content, NULL,
                       window->screen->screen_name,
-                      _("_Wait"), _("_Force Quit"), window->xwindow,
+                      _("_Wait"), _("_Force Quit"),
+                      "face-sad-symbolic", window->xwindow,
                       NULL, NULL);
 
   g_free (window_content);
diff --git a/src/core/session.c b/src/core/session.c
index c19b17c..41f360f 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -1811,7 +1811,7 @@ warn_about_lame_clients_and_finish_interact (gboolean shutdown)
                            "you log in."),
                          "240",
                          meta_get_display()->active_screen->screen_name,
-                         NULL, NULL,
+                         NULL, NULL, NULL,
                          None,
                          columns,
                          lame_details);
diff --git a/src/core/util.c b/src/core/util.c
index 06d9ec8..efb87aa 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -585,6 +585,7 @@ meta_show_dialog (const char *type,
                   const char *display,
                   const char *ok_text,
                   const char *cancel_text,
+                  const char *icon_name,
                   const int transient_for,
                   GSList *columns,
                   GSList *entries)
@@ -625,6 +626,12 @@ meta_show_dialog (const char *type,
       append_argument (args, cancel_text);
     }
 
+  if (icon_name)
+    {
+      append_argument (args, "--icon-name");
+      append_argument (args, icon_name);
+    }
+
   tmp = columns;
   while (tmp)
     {
diff --git a/src/meta/util.h b/src/meta/util.h
index c9fead4..04bb7bf 100644
--- a/src/meta/util.h
+++ b/src/meta/util.h
@@ -107,6 +107,7 @@ GPid meta_show_dialog (const char *type,
                        const char *display,
                        const char *ok_text,
                        const char *cancel_text,
+                       const char *icon_name,
                        const int transient_for,
                        GSList *columns,
                        GSList *entries);



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