[gnome-terminal] profile: editor: Don't use stock items



commit a969cd770c1a5cc9bfc2c0303d1fb58e6581160c
Author: Christian Persch <chpe gnome org>
Date:   Sun Jul 7 11:50:21 2013 +0200

    profile: editor: Don't use stock items

 src/profile-editor.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/profile-editor.c b/src/profile-editor.c
index f228624..6d84970 100644
--- a/src/profile-editor.c
+++ b/src/profile-editor.c
@@ -398,15 +398,16 @@ custom_command_entry_changed_cb (GtkEntry *entry)
 
   command = gtk_entry_get_text (entry);
 
-  if (g_shell_parse_argv (command, NULL, NULL, &error))
+  if (command[0] == '\0' ||
+      g_shell_parse_argv (command, NULL, NULL, &error))
     {
-      gtk_entry_set_icon_from_stock (entry, GTK_PACK_END, NULL);
+      gtk_entry_set_icon_from_icon_name (entry, GTK_PACK_END, NULL);
     }
   else
     {
       char *tooltip;
 
-      gtk_entry_set_icon_from_stock (entry, GTK_PACK_END, GTK_STOCK_DIALOG_WARNING);
+      gtk_entry_set_icon_from_icon_name (entry, GTK_PACK_END, "dialog-warning");
 
       tooltip = g_strdup_printf (_("Error parsing command: %s"), error->message);
       gtk_entry_set_icon_tooltip_text (entry, GTK_PACK_END, tooltip);


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