Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cut-n-paste/recent-files/egg-recent-util.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-17 10:58:37 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-17 10:58:37 (GMT)
commit50ba6d2ea8219ef2ec7b69e027b2a0f8f803e5a6 (patch)
treed477c22e64296bdd75834e171a3eeea277fbf97b /cut-n-paste/recent-files/egg-recent-util.c
parent485a0f8735af92a5a7d0d01709707fc30eb70ad4 (diff)
Better makefile for toolbar editor and update everything to latest libegg.
2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> * configure.ac: * cut-n-paste/recent-files/egg-recent-model.c: (egg_recent_model_write_raw), (egg_recent_model_lock_file), (egg_recent_model_unlock_file): * cut-n-paste/recent-files/egg-recent-util.c: (egg_recent_util_get_unique_id): * cut-n-paste/recent-files/update-from-egg.sh: * cut-n-paste/toolbar-editor/Makefile.am: * cut-n-paste/toolbar-editor/egg-editable-toolbar.c: * cut-n-paste/toolbar-editor/egg-editable-toolbar.h: * cut-n-paste/toolbar-editor/egg-toolbar-editor.c: * cut-n-paste/toolbar-editor/egg-toolbars-model.c: (egg_toolbars_model_get_type): * cut-n-paste/toolbar-editor/egg-toolbars-model.h: Better makefile for toolbar editor and update everything to latest libegg.
Diffstat (limited to 'cut-n-paste/recent-files/egg-recent-util.c')
-rw-r--r--cut-n-paste/recent-files/egg-recent-util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cut-n-paste/recent-files/egg-recent-util.c b/cut-n-paste/recent-files/egg-recent-util.c
index 6780cd1..bc15a06 100644
--- a/cut-n-paste/recent-files/egg-recent-util.c
+++ b/cut-n-paste/recent-files/egg-recent-util.c
@@ -12,6 +12,10 @@
#include <math.h>
#include "egg-recent-util.h"
+#ifdef G_OS_WIN32
+#include <windows.h>
+#endif
+
#define EGG_RECENT_UTIL_HOSTNAME_SIZE 512
/* ripped out of gedit2 */
@@ -128,7 +132,14 @@ egg_recent_util_get_unique_id (void)
guint32 rand;
int pid;
+#ifndef G_OS_WIN32
gethostname (hostname, EGG_RECENT_UTIL_HOSTNAME_SIZE);
+#else
+ {
+ DWORD size = EGG_RECENT_UTIL_HOSTNAME_SIZE;
+ GetComputerName (hostname, &size);
+ }
+#endif
time (&the_time);
rand = g_random_int ();