From 025e53fad83f449e7d97e75f52fd35c73eeb142f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 5 Mar 2009 16:53:31 +0000 Subject: [PATCH] Fix compile and icon. --- prefs.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/prefs.c b/prefs.c index 35b0ecd..dd293a9 100644 --- a/prefs.c +++ b/prefs.c @@ -357,7 +357,8 @@ on_rebind(void) make_config(config); if (save_config(block, name, config)) { - set_name_active_icon("document-save"); + set_name_active_icon(config->len == 0 ? + "document-new" : "document-save"); show_config(config); if (g_strcmp0(block, "interface") == 0) rebind_interface(name); @@ -491,8 +492,8 @@ dhcpcd_prefs_show(void) } while (0) #define attach_entry(a, b, c, d, e) \ gtk_table_attach(GTK_TABLE(table), a, b, c, d, e, \ - GTK_EXPAND | GTK_FILL | GTK_SHRINK, GTK_FILL | GTK_SHRINK, 3, 3); \ - \ + GTK_EXPAND | GTK_FILL | GTK_SHRINK, GTK_FILL | GTK_SHRINK, 3, 3); + w = gtk_label_new(_("IP Address:")); address = gtk_entry_new(); gtk_entry_set_max_length(GTK_ENTRY(address), 15); -- 1.7.1