aboutsummaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 27353922..c6c7e05c 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -77,19 +77,19 @@ customLog (const char *msg)
77#endif 77#endif
78 78
79static void 79static void
80setIconSearchPath() 80setIconSearchPath ()
81{ 81{
82 char *dataDir; 82 char *dataDir;
83 char *buf; 83 char *buf;
84 84
85 dataDir = GNUNET_get_installation_path (GNUNET_IPK_DATADIR); 85 dataDir = GNUNET_get_installation_path (GNUNET_IPK_DATADIR);
86 buf = GNUNET_malloc(strlen(dataDir) + strlen("../gnunet-gtk/icons/") + 2); 86 buf =
87 strcpy(buf, dataDir); 87 GNUNET_malloc (strlen (dataDir) + strlen ("../gnunet-gtk/icons/") + 2);
88 strcat(buf, "../gnunet-gtk/icons/"); 88 strcpy (buf, dataDir);
89 gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), 89 strcat (buf, "../gnunet-gtk/icons/");
90 buf); 90 gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), buf);
91 GNUNET_free(buf); 91 GNUNET_free (buf);
92 GNUNET_free(dataDir); 92 GNUNET_free (dataDir);
93} 93}
94 94
95int 95int
@@ -134,7 +134,7 @@ main (int argc, char *const *argv)
134 bind_textdomain_codeset ("GNUnet", "UTF-8"); 134 bind_textdomain_codeset ("GNUnet", "UTF-8");
135 bind_textdomain_codeset ("gnunet-gtk", "UTF-8"); 135 bind_textdomain_codeset ("gnunet-gtk", "UTF-8");
136#endif 136#endif
137 setIconSearchPath(); 137 setIconSearchPath ();
138 GNUNET_GTK_initialize_common_library (cfg, &GNUNET_GTK_main_quit); 138 GNUNET_GTK_initialize_common_library (cfg, &GNUNET_GTK_main_quit);
139 /* configure GTK logging */ 139 /* configure GTK logging */
140 GNUNET_GC_get_configuration_value_string (cfg, 140 GNUNET_GC_get_configuration_value_string (cfg,
@@ -152,7 +152,7 @@ main (int argc, char *const *argv)
152 my_ctx = GNUNET_GTK_create_gtk_logger (mask); 152 my_ctx = GNUNET_GTK_create_gtk_logger (mask);
153 GNUNET_GE_setDefaultContext (my_ctx); 153 GNUNET_GE_setDefaultContext (my_ctx);
154 root = 154 root =
155 glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "mainWindow"); 155 glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "mainWindow");
156 gtk_window_maximize (GTK_WINDOW (root)); 156 gtk_window_maximize (GTK_WINDOW (root));
157 gtk_widget_show (root); 157 gtk_widget_show (root);
158 gtk_window_present (GTK_WINDOW (root)); 158 gtk_window_present (GTK_WINDOW (root));