aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-06-03 23:02:26 +0000
committerChristian Grothoff <christian@grothoff.org>2008-06-03 23:02:26 +0000
commitf5707ec843c7c6e311f084ea975df2228fe8165e (patch)
treeb84b556549149b3d661fb4f6589baf3a71d80602
parent0d3953fd8f42bb4533246445872328d42860d5f2 (diff)
downloadgnunet-gtk-f5707ec843c7c6e311f084ea975df2228fe8165e.tar.gz
gnunet-gtk-f5707ec843c7c6e311f084ea975df2228fe8165e.zip
fixing icon handling
-rw-r--r--gnunet-gtk.glade2
-rw-r--r--po/Makefile.in2
-rw-r--r--src/core/main.c5
-rw-r--r--src/include/gnunetgtk_common.h2
4 files changed, 8 insertions, 3 deletions
diff --git a/gnunet-gtk.glade b/gnunet-gtk.glade
index 788b942f..70ff4b4a 100644
--- a/gnunet-gtk.glade
+++ b/gnunet-gtk.glade
@@ -6,7 +6,7 @@
6 <property name="title" translatable="yes">GNUnet, GNU's Peer-to-Peer Network</property> 6 <property name="title" translatable="yes">GNUnet, GNU's Peer-to-Peer Network</property>
7 <property name="default_width">700</property> 7 <property name="default_width">700</property>
8 <property name="default_height">500</property> 8 <property name="default_height">500</property>
9 <property name="icon">gnunet-gtk.png</property> 9 <property name="icon_name">gnunet-gtk</property>
10 <signal name="delete_event" handler="GNUNET_GTK_main_quit" after="yes"/> 10 <signal name="delete_event" handler="GNUNET_GTK_main_quit" after="yes"/>
11 <signal name="window_state_event" handler="GNUNET_GTK_save_main_window_state" after="yes"/> 11 <signal name="window_state_event" handler="GNUNET_GTK_save_main_window_state" after="yes"/>
12 <child> 12 <child>
diff --git a/po/Makefile.in b/po/Makefile.in
index 71ecc80e..baba3cb0 100644
--- a/po/Makefile.in
+++ b/po/Makefile.in
@@ -20,7 +20,7 @@ srcdir = .
20top_srcdir = .. 20top_srcdir = ..
21 21
22 22
23prefix = /home/grothoff 23prefix = /home/grothoff/
24exec_prefix = ${prefix} 24exec_prefix = ${prefix}
25datadir = ${prefix}/share 25datadir = ${prefix}/share
26localedir = $(datadir)/locale 26localedir = $(datadir)/locale
diff --git a/src/core/main.c b/src/core/main.c
index 3fd82978..8b95c834 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -85,6 +85,7 @@ main (int argc, char *const *argv)
85 struct GNUNET_GE_Context *my_ctx; 85 struct GNUNET_GE_Context *my_ctx;
86 struct GNUNET_GC_Configuration *cfg; 86 struct GNUNET_GC_Configuration *cfg;
87 char *log; 87 char *log;
88 char *dataDir;
88 GNUNET_GE_KIND mask; 89 GNUNET_GE_KIND mask;
89#if ENABLE_NLS 90#if ENABLE_NLS
90 char *path; 91 char *path;
@@ -136,6 +137,10 @@ main (int argc, char *const *argv)
136 GNUNET_GE_setDefaultContext (my_ctx); 137 GNUNET_GE_setDefaultContext (my_ctx);
137 root = 138 root =
138 glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "mainWindow"); 139 glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "mainWindow");
140 dataDir = GNUNET_get_installation_path (GNUNET_IPK_DATADIR);
141 gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
142 dataDir);
143 GNUNET_free (dataDir);
139 gtk_window_maximize (GTK_WINDOW (root)); 144 gtk_window_maximize (GTK_WINDOW (root));
140 gtk_widget_show (root); 145 gtk_widget_show (root);
141 gtk_window_present (GTK_WINDOW (root)); 146 gtk_window_present (GTK_WINDOW (root));
diff --git a/src/include/gnunetgtk_common.h b/src/include/gnunetgtk_common.h
index dbea47cb..b98d132a 100644
--- a/src/include/gnunetgtk_common.h
+++ b/src/include/gnunetgtk_common.h
@@ -103,7 +103,7 @@ void GNUNET_GTK_notify (int type, const char *message, ...);
103 103
104/** 104/**
105 * Call a callback function from the mainloop/main thread ("SaveCall"). 105 * Call a callback function from the mainloop/main thread ("SaveCall").
106 * Since GTK doesn't work with multi-threaded applications under Windows, 106 * Since GTK doesn't work with multi-threaded applications
107 * all GTK operations have to be done in the main thread 107 * all GTK operations have to be done in the main thread
108 */ 108 */
109void *GNUNET_GTK_save_call (GNUNET_ThreadMainFunction func, void *arg); 109void *GNUNET_GTK_save_call (GNUNET_ThreadMainFunction func, void *arg);