diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Makefile.am | 1 | ||||
-rw-r--r-- | src/core/eggtrayicon.c | 8 | ||||
-rw-r--r-- | src/core/main.c | 32 |
3 files changed, 20 insertions, 21 deletions
diff --git a/src/core/Makefile.am b/src/core/Makefile.am index 256f99e2..747cd895 100644 --- a/src/core/Makefile.am +++ b/src/core/Makefile.am | |||
@@ -18,7 +18,6 @@ gnunet_gtk_SOURCES = \ | |||
18 | gnunet_gtk_LDADD = \ | 18 | gnunet_gtk_LDADD = \ |
19 | @GTK_LIBS@ \ | 19 | @GTK_LIBS@ \ |
20 | -lgnunetutil \ | 20 | -lgnunetutil \ |
21 | -lgnunetutil_boot \ | ||
22 | $(INTLLIBS) \ | 21 | $(INTLLIBS) \ |
23 | -lgthread-2.0 \ | 22 | -lgthread-2.0 \ |
24 | $(top_builddir)/src/common/libgnunetgtk_common.la \ | 23 | $(top_builddir)/src/common/libgnunetgtk_common.la \ |
diff --git a/src/core/eggtrayicon.c b/src/core/eggtrayicon.c index da2ee0e4..dc3f139e 100644 --- a/src/core/eggtrayicon.c +++ b/src/core/eggtrayicon.c | |||
@@ -651,13 +651,13 @@ initTrayIcon () | |||
651 | tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit"); | 651 | tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit"); |
652 | 652 | ||
653 | tray_icon = egg_tray_icon_new (_("GNU's p2p network")); | 653 | tray_icon = egg_tray_icon_new (_("GNU's p2p network")); |
654 | instDir = os_get_installation_path (IPK_DATADIR); | 654 | instDir = GNUNET_get_installation_path (GNUNET_IPK_DATADIR); |
655 | iconPath = MALLOC (strlen (instDir) + 40); | 655 | iconPath = GNUNET_malloc (strlen (instDir) + 40); |
656 | strcpy (iconPath, instDir); | 656 | strcpy (iconPath, instDir); |
657 | strcat (iconPath, "/../gnunet-gtk/gnunet-gtk-tray.png"); | 657 | strcat (iconPath, "/../gnunet-gtk/gnunet-gtk-tray.png"); |
658 | FREE (instDir); | 658 | GNUNET_free (instDir); |
659 | pixbuf = gdk_pixbuf_new_from_file (iconPath, NULL); | 659 | pixbuf = gdk_pixbuf_new_from_file (iconPath, NULL); |
660 | FREE (iconPath); | 660 | GNUNET_free (iconPath); |
661 | tray_icon_image = gtk_image_new_from_pixbuf (pixbuf); | 661 | tray_icon_image = gtk_image_new_from_pixbuf (pixbuf); |
662 | eventbox = gtk_event_box_new (); | 662 | eventbox = gtk_event_box_new (); |
663 | gtk_container_add (GTK_CONTAINER (eventbox), tray_icon_image); | 663 | gtk_container_add (GTK_CONTAINER (eventbox), tray_icon_image); |
diff --git a/src/core/main.c b/src/core/main.c index 1bf128c1..da1490af 100644 --- a/src/core/main.c +++ b/src/core/main.c | |||
@@ -27,11 +27,11 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunetgtk_common.h" | 28 | #include "gnunetgtk_common.h" |
29 | #include <GNUnet/gnunet_directories.h> | 29 | #include <GNUnet/gnunet_directories.h> |
30 | #include <GNUnet/gnunet_util_boot.h> | 30 | #include <GNUnet/gnunet_util.h> |
31 | #include "eggtrayicon.h" | 31 | #include "eggtrayicon.h" |
32 | 32 | ||
33 | #ifdef WINDOWS | 33 | #ifdef WINDOWS |
34 | static int debug_mode = NO; | 34 | static int debug_mode = GNUNET_NO; |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | static char *cfgFilename = DEFAULT_CLIENT_CONFIG_FILE; | 37 | static char *cfgFilename = DEFAULT_CLIENT_CONFIG_FILE; |
@@ -39,19 +39,19 @@ static char *cfgFilename = DEFAULT_CLIENT_CONFIG_FILE; | |||
39 | /** | 39 | /** |
40 | * All gnunet-gtk command line options | 40 | * All gnunet-gtk command line options |
41 | */ | 41 | */ |
42 | static struct CommandLineOption gnunetgtkOptions[] = { | 42 | static struct GNUNET_CommandLineOption gnunetgtkOptions[] = { |
43 | COMMAND_LINE_OPTION_CFG_FILE (&cfgFilename), /* -c */ | 43 | GNUNET_COMMAND_LINE_OPTION_CFG_FILE (&cfgFilename), /* -c */ |
44 | #ifdef WINDOWS | 44 | #ifdef WINDOWS |
45 | {'d', "debug", NULL, | 45 | {'d', "debug", NULL, |
46 | gettext_noop ("run in debug mode"), | 46 | gettext_noop ("run in debug mode"), |
47 | 0, &gnunet_getopt_configure_set_one, &debug_mode}, | 47 | 0, &GNUNET_getopt_configure_set_one, &debug_mode}, |
48 | #endif | 48 | #endif |
49 | COMMAND_LINE_OPTION_HELP (gettext_noop ("GNUnet GTK user interface.")), /* -h */ | 49 | GNUNET_COMMAND_LINE_OPTION_HELP (gettext_noop ("GNUnet GTK user interface.")), /* -h */ |
50 | COMMAND_LINE_OPTION_HOSTNAME, /* -H */ | 50 | GNUNET_COMMAND_LINE_OPTION_HOSTNAME, /* -H */ |
51 | COMMAND_LINE_OPTION_LOGGING, /* -L */ | 51 | GNUNET_COMMAND_LINE_OPTION_LOGGING, /* -L */ |
52 | COMMAND_LINE_OPTION_VERSION (VERSION), /* -v */ | 52 | GNUNET_COMMAND_LINE_OPTION_VERSION (VERSION), /* -v */ |
53 | COMMAND_LINE_OPTION_VERBOSE, | 53 | GNUNET_COMMAND_LINE_OPTION_VERBOSE, |
54 | COMMAND_LINE_OPTION_END, | 54 | GNUNET_COMMAND_LINE_OPTION_END, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static void * | 57 | static void * |
@@ -112,9 +112,9 @@ main (int argc, char *const *argv) | |||
112 | 112 | ||
113 | #if ENABLE_NLS | 113 | #if ENABLE_NLS |
114 | setlocale (LC_ALL, ""); | 114 | setlocale (LC_ALL, ""); |
115 | path = os_get_installation_path (IPK_LOCALEDIR); | 115 | path = GNUNET_get_installation_path (GNUNET_IPK_LOCALEDIR); |
116 | BINDTEXTDOMAIN ("gnunet-gtk", path); | 116 | BINDTEXTDOMAIN ("gnunet-gtk", path); |
117 | FREE (path); | 117 | GNUNET_free (path); |
118 | textdomain ("gnunet-gtk"); | 118 | textdomain ("gnunet-gtk"); |
119 | bind_textdomain_codeset ("GNUnet", "UTF-8"); | 119 | bind_textdomain_codeset ("GNUnet", "UTF-8"); |
120 | bind_textdomain_codeset ("gnunet-gtk", "UTF-8"); | 120 | bind_textdomain_codeset ("gnunet-gtk", "UTF-8"); |
@@ -125,11 +125,11 @@ main (int argc, char *const *argv) | |||
125 | "LOGGING", | 125 | "LOGGING", |
126 | "USER-LEVEL", "WARNING", &log); | 126 | "USER-LEVEL", "WARNING", &log); |
127 | mask = GE_getKIND (log); | 127 | mask = GE_getKIND (log); |
128 | FREE (log); | 128 | GNUNET_free (log); |
129 | mask |= mask - 1; /* set all bits... */ | 129 | mask |= mask - 1; /* set all bits... */ |
130 | mask |= GE_USER | GE_BULK | GE_IMMEDIATE; | 130 | mask |= GE_USER | GE_BULK | GE_IMMEDIATE; |
131 | if (YES == GC_get_configuration_value_yesno (cfg, | 131 | if (GNUNET_YES == GC_get_configuration_value_yesno (cfg, |
132 | "LOGGING", "DEVELOPER", NO)) | 132 | "LOGGING", "DEVELOPER", GNUNET_NO)) |
133 | mask |= GE_DEVELOPER | GE_REQUEST; | 133 | mask |= GE_DEVELOPER | GE_REQUEST; |
134 | my_ctx = createGtkLogger (mask); | 134 | my_ctx = createGtkLogger (mask); |
135 | GE_setDefaultContext (my_ctx); | 135 | GE_setDefaultContext (my_ctx); |