Roy's Projects
/
dhcpcd-ui
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compile and icon.
[dhcpcd-ui]
/
prefs.c
diff --git
a/prefs.c
b/prefs.c
index 35b0ecd3699b4ebd66276b2141139e729044c9df..dd293a9b00c3ce54f035351c146caf6159f47b64 100644
(file)
--- a/
prefs.c
+++ b/
prefs.c
@@
-357,7
+357,8
@@
on_rebind(void)
make_config(config);
if (save_config(block, name, config)) {
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);
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, \
} 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);
w = gtk_label_new(_("IP Address:"));
address = gtk_entry_new();
gtk_entry_set_max_length(GTK_ENTRY(address), 15);