[Frugalware-darcs] fw-control-center: gnetconfig: misc fixes
Priyank
priyank at frugalware.org
Thu Jun 21 14:03:58 CEST 2007
Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070621115942-5ce2c-ecba50c88143159ecad34dbb088a467debf6e85f.gz;
[gnetconfig: misc fixes
Priyank <priyank at frugalware.org>**20070621115942
* Use PACKAGE and VERSION instead of custom defined constants for about
dialog.
* Do NOT write the hostname everytime the user makes a change.
] {
hunk ./gnetconfig/src/gnetconfig-about.c 24
-#define VERSION "0.1"
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
hunk ./gnetconfig/src/gnetconfig-about.c 33
-
hunk ./gnetconfig/src/gnetconfig-about.c 61
- "name", "Gnetconfig",
+ "name", PACKAGE,
hunk ./gnetconfig/src/gnetconfig-interface.c 474
- gchar hostname[256];
hunk ./gnetconfig/src/gnetconfig-interface.c 476
- sprintf (hostname, "%s", (char*)gtk_entry_get_text(GTK_ENTRY(gn_hostname_entry)));
-
hunk ./gnetconfig/src/gnetconfig-interface.c 477
- if(fwnet_writeconfig (profile, hostname))
+ if(fwnet_writeconfig (profile, NULL))
hunk ./gnetconfig/src/gnetconfig-new_profile.c 30
+extern GtkWidget *gn_hostname_entry;
hunk ./gnetconfig/src/gnetconfig-new_profile.c 132
+ /* set default hostname */
+ gtk_entry_set_text (GTK_ENTRY(gn_hostname_entry), "frugalware.example.net");
+
}
More information about the Frugalware-darcs
mailing list