git://git.jankratochvil.net
/
udpgate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5f6ae22
)
New 'HostIP' message: "(unknown; Kill the daemon and start your own)"
author
short
<>
Sun, 23 May 2004 20:19:54 +0000
(20:19 +0000)
committer
short
<>
Sun, 23 May 2004 20:19:54 +0000
(20:19 +0000)
src/ui-gnome.c
patch
|
blob
|
history
diff --git
a/src/ui-gnome.c
b/src/ui-gnome.c
index
f706abc
..
b1ce30d
100644
(file)
--- a/
src/ui-gnome.c
+++ b/
src/ui-gnome.c
@@
-156,10
+156,15
@@
void on_ButtonHide_clicked(GtkButton *button,gpointer user_data)
static void ui_gnome_network_notify_hostip(guint32 hostip_guint32)
{
if (!hostip_guint32) {
static void ui_gnome_network_notify_hostip(guint32 hostip_guint32)
{
if (!hostip_guint32) {
- if (is_daemon_running()==(pid_t)-1)
+pid_t daemon_pid;
+
+ daemon_pid=is_daemon_running();
+ if ((pid_t)-1==daemon_pid)
gtk_entry_set_text(HostIPEntry,_("(unknown; Start the daemon)"));
gtk_entry_set_text(HostIPEntry,_("(unknown; Start the daemon)"));
- else
+ else
if (getpid()==daemon_pid)
gtk_entry_set_text(HostIPEntry,_("(unknown; detecting...)"));
gtk_entry_set_text(HostIPEntry,_("(unknown; detecting...)"));
+ else
+ gtk_entry_set_text(HostIPEntry,_("(unknown; Kill the daemon and start your own)"));
}
else {
gtk_entry_set_text(HostIPEntry,HOSTIP_GUINT32_TO_STRING(hostip_guint32));
}
else {
gtk_entry_set_text(HostIPEntry,HOSTIP_GUINT32_TO_STRING(hostip_guint32));