aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2005-05-25 11:46:16 +0000
committerChristian Grothoff <christian@grothoff.org>2005-05-25 11:46:16 +0000
commite89c480c5d9985674535fe6ee1e196c6738643cd (patch)
tree1af72b0ed157b7c67b9c06c0ffebc4eb18364866
parent4a8cc85eabaea49b1b97c24d3fb6ab49d677ab85 (diff)
downloadgnunet-gtk-e89c480c5d9985674535fe6ee1e196c6738643cd.tar.gz
gnunet-gtk-e89c480c5d9985674535fe6ee1e196c6738643cd.zip
update
-rw-r--r--src/callbacks.c237
-rw-r--r--src/callbacks.h118
-rw-r--r--src/interface.c1821
-rw-r--r--src/interface.h10
-rw-r--r--src/support.c144
-rw-r--r--src/support.h69
6 files changed, 0 insertions, 2399 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
deleted file mode 100644
index 221103a2..00000000
--- a/src/callbacks.c
+++ /dev/null
@@ -1,237 +0,0 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <gtk/gtk.h>
6
7#include "callbacks.h"
8#include "interface.h"
9#include "support.h"
10
11
12void
13on_about_activate (GtkMenuItem *menuitem,
14 gpointer user_data)
15{
16
17}
18
19
20void
21on_startGnunetdButton_clicked (GtkButton *button,
22 gpointer user_data)
23{
24
25}
26
27
28void
29on_stopDaemon_clicked (GtkButton *button,
30 gpointer user_data)
31{
32
33}
34
35
36void
37on_fssearchbutton_clicked (GtkButton *button,
38 gpointer user_data)
39{
40
41}
42
43
44void
45on_mainFileSharingInsertBrowseButton_activate
46 (GtkButton *button,
47 gpointer user_data)
48{
49
50}
51
52
53void
54on_fsinsertuploadbutton_clicked (GtkButton *button,
55 gpointer user_data)
56{
57
58}
59
60
61void
62on_create_namespace_activate (GtkMenuItem *menuitem,
63 gpointer user_data)
64{
65
66}
67
68
69void
70on_create_directory_activate (GtkMenuItem *menuitem,
71 gpointer user_data)
72{
73
74}
75
76
77void
78on_create_collection_activate (GtkMenuItem *menuitem,
79 gpointer user_data)
80{
81
82}
83
84
85void
86on_create_advertisement_activate (GtkMenuItem *menuitem,
87 gpointer user_data)
88{
89
90}
91
92
93void
94on_namespace2_activate (GtkMenuItem *menuitem,
95 gpointer user_data)
96{
97
98}
99
100
101void
102on_collection_delete_activate (GtkMenuItem *menuitem,
103 gpointer user_data)
104{
105
106}
107
108
109void
110chatMainEntryLine_activate (GtkEntry *entry,
111 gpointer user_data)
112{
113
114}
115
116
117void
118on_chatMainEntryLine_editing_done (GtkCellEditable *celleditable,
119 gpointer user_data)
120{
121
122}
123
124
125void
126on_metaDataDialog_close (GtkDialog *dialog,
127 gpointer user_data)
128{
129
130}
131
132
133void
134on_metaDataDialogValueEntry_editing_done
135 (GtkCellEditable *celleditable,
136 gpointer user_data)
137{
138
139}
140
141
142gboolean
143on_metaDataDialogMetaDataList_select_cursor_row
144 (GtkTreeView *treeview,
145 gboolean start_editing,
146 gpointer user_data)
147{
148
149 return FALSE;
150}
151
152
153void
154fileInformationKeywordEntry_activate (GtkEntry *entry,
155 gpointer user_data)
156{
157
158}
159
160
161gboolean
162on_metaDataDialogKeywordList_select_cursor_row
163 (GtkTreeView *treeview,
164 gboolean start_editing,
165 gpointer user_data)
166{
167
168 return FALSE;
169}
170
171
172void
173on_metaDataDialogDeleteButton_activate (GtkButton *button,
174 gpointer user_data)
175{
176
177}
178
179
180void
181on_metaDataDialogApplyButton_clicked (GtkButton *button,
182 gpointer user_data)
183{
184
185}
186
187
188void
189on_downloadButton_clicked (GtkButton *button,
190 gpointer user_data)
191{
192
193}
194
195
196gboolean
197on_namespaceContentFrameTreeView_select_cursor_row
198 (GtkTreeView *treeview,
199 gboolean start_editing,
200 gpointer user_data)
201{
202
203 return FALSE;
204}
205
206
207void
208on_namespaceInsertButton_activate (GtkButton *button,
209 gpointer user_data)
210{
211
212}
213
214
215void
216on_namespaceUpdateButton_clicked (GtkButton *button,
217 gpointer user_data)
218{
219
220}
221
222
223void
224on_chatLineTextEntry_editing_done (GtkCellEditable *celleditable,
225 gpointer user_data)
226{
227
228}
229
230
231void
232on_chatSendButton_clicked (GtkButton *button,
233 gpointer user_data)
234{
235
236}
237
diff --git a/src/callbacks.h b/src/callbacks.h
deleted file mode 100644
index 4ab1840e..00000000
--- a/src/callbacks.h
+++ /dev/null
@@ -1,118 +0,0 @@
1#include <gtk/gtk.h>
2
3
4void
5on_about_activate (GtkMenuItem *menuitem,
6 gpointer user_data);
7
8void
9on_startGnunetdButton_clicked (GtkButton *button,
10 gpointer user_data);
11
12void
13on_stopDaemon_clicked (GtkButton *button,
14 gpointer user_data);
15
16void
17on_fssearchbutton_clicked (GtkButton *button,
18 gpointer user_data);
19
20void
21on_mainFileSharingInsertBrowseButton_activate
22 (GtkButton *button,
23 gpointer user_data);
24
25void
26on_fsinsertuploadbutton_clicked (GtkButton *button,
27 gpointer user_data);
28
29void
30on_create_namespace_activate (GtkMenuItem *menuitem,
31 gpointer user_data);
32
33void
34on_create_directory_activate (GtkMenuItem *menuitem,
35 gpointer user_data);
36
37void
38on_create_collection_activate (GtkMenuItem *menuitem,
39 gpointer user_data);
40
41void
42on_create_advertisement_activate (GtkMenuItem *menuitem,
43 gpointer user_data);
44
45void
46on_namespace2_activate (GtkMenuItem *menuitem,
47 gpointer user_data);
48
49void
50on_collection_delete_activate (GtkMenuItem *menuitem,
51 gpointer user_data);
52
53void
54chatMainEntryLine_activate (GtkEntry *entry,
55 gpointer user_data);
56
57void
58on_chatMainEntryLine_editing_done (GtkCellEditable *celleditable,
59 gpointer user_data);
60
61void
62on_metaDataDialog_close (GtkDialog *dialog,
63 gpointer user_data);
64
65void
66on_metaDataDialogValueEntry_editing_done
67 (GtkCellEditable *celleditable,
68 gpointer user_data);
69
70gboolean
71on_metaDataDialogMetaDataList_select_cursor_row
72 (GtkTreeView *treeview,
73 gboolean start_editing,
74 gpointer user_data);
75
76void
77fileInformationKeywordEntry_activate (GtkEntry *entry,
78 gpointer user_data);
79
80gboolean
81on_metaDataDialogKeywordList_select_cursor_row
82 (GtkTreeView *treeview,
83 gboolean start_editing,
84 gpointer user_data);
85
86void
87on_metaDataDialogDeleteButton_activate (GtkButton *button,
88 gpointer user_data);
89
90void
91on_metaDataDialogApplyButton_clicked (GtkButton *button,
92 gpointer user_data);
93
94void
95on_downloadButton_clicked (GtkButton *button,
96 gpointer user_data);
97
98gboolean
99on_namespaceContentFrameTreeView_select_cursor_row
100 (GtkTreeView *treeview,
101 gboolean start_editing,
102 gpointer user_data);
103
104void
105on_namespaceInsertButton_activate (GtkButton *button,
106 gpointer user_data);
107
108void
109on_namespaceUpdateButton_clicked (GtkButton *button,
110 gpointer user_data);
111
112void
113on_chatLineTextEntry_editing_done (GtkCellEditable *celleditable,
114 gpointer user_data);
115
116void
117on_chatSendButton_clicked (GtkButton *button,
118 gpointer user_data);
diff --git a/src/interface.c b/src/interface.c
deleted file mode 100644
index 2a528dc2..00000000
--- a/src/interface.c
+++ /dev/null
@@ -1,1821 +0,0 @@
1/*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5#ifdef HAVE_CONFIG_H
6# include <config.h>
7#endif
8
9#include <sys/types.h>
10#include <sys/stat.h>
11#include <unistd.h>
12#include <string.h>
13#include <stdio.h>
14
15#include <gdk/gdkkeysyms.h>
16#include <gtk/gtk.h>
17
18#include "callbacks.h"
19#include "interface.h"
20#include "support.h"
21
22#define GLADE_HOOKUP_OBJECT(component,widget,name) \
23 g_object_set_data_full (G_OBJECT (component), name, \
24 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
25
26#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
27 g_object_set_data (G_OBJECT (component), name, widget)
28
29GtkWidget*
30create_mainWindow (void)
31{
32 GtkWidget *mainWindow;
33 GdkPixbuf *mainWindow_icon_pixbuf;
34 GtkWidget *vbox1;
35 GtkWidget *main_app_menubar;
36 GtkWidget *quit1;
37 GtkWidget *help1;
38 GtkWidget *help1_menu;
39 GtkWidget *about;
40 GtkWidget *mainnotebook;
41 GtkWidget *splashScreen;
42 GtkWidget *welcomelabel;
43 AtkObject *atko;
44 GtkWidget *fs_scrolledwindow;
45 GtkWidget *viewport1;
46 GtkWidget *scrolledwindow2;
47 GtkWidget *viewport2;
48 GtkWidget *vbox2;
49 GtkWidget *frame3;
50 GtkWidget *hbox2;
51 GtkWidget *startGnunetdButton;
52 GtkWidget *alignment1;
53 GtkWidget *hbox11;
54 GtkWidget *image1;
55 GtkWidget *startButton;
56 GtkWidget *stopDaemon;
57 GtkWidget *alignment2;
58 GtkWidget *hbox12;
59 GtkWidget *image2;
60 GtkWidget *label64;
61 GtkWidget *statusPixmap;
62 GtkWidget *gnunetdControlLabel;
63 GtkWidget *frame2;
64 GtkWidget *statisticsLabel;
65 GtkWidget *label2;
66 GtkWidget *frame1;
67 GtkWidget *scrolledwindow5;
68 GtkWidget *clist2;
69 GtkWidget *label3;
70 GtkWidget *generalLabel;
71 GtkWidget *fsnotebook;
72 GtkWidget *fsstatusvbox;
73 GtkWidget *frame8;
74 GtkWidget *scrolledwindow9;
75 GtkWidget *clist7;
76 GtkWidget *label16;
77 GtkWidget *frame9;
78 GtkWidget *scrolledwindow7;
79 GtkWidget *clist5;
80 GtkWidget *label45;
81 GtkWidget *frame10;
82 GtkWidget *scrolledwindow8;
83 GtkWidget *clist6;
84 GtkWidget *label46;
85 GtkWidget *statusfstab;
86 GtkWidget *fsdownloadvbox;
87 GtkWidget *notebook6;
88 GtkWidget *label61;
89 GtkWidget *label36;
90 GtkWidget *fssearchhbox;
91 GtkWidget *fsSearchStringInputLine;
92 GList *fsSearchStringInputLine_items = NULL;
93 GtkWidget *combo_entry2;
94 GtkWidget *fssearchbutton;
95 GtkWidget *alignment8;
96 GtkWidget *hbox21;
97 GtkWidget *image8;
98 GtkWidget *label71;
99 GtkWidget *label40;
100 GtkWidget *optionmenu1;
101 GtkWidget *convertwidget16;
102 GtkWidget *convertwidget17;
103 GtkWidget *downloadfstab;
104 GtkWidget *fsinsertvbox;
105 GtkWidget *hbox8;
106 GtkWidget *methodLabel;
107 GtkWidget *indexbutton;
108 GSList *indexbutton_group = NULL;
109 GtkWidget *insertButton;
110 GtkWidget *hbox9;
111 GtkWidget *scopeLabel;
112 GtkWidget *radiobutton2;
113 GSList *radiobutton2_group = NULL;
114 GtkWidget *radiobutton3;
115 GtkWidget *hbox10;
116 GtkWidget *label54;
117 GtkWidget *fsinsertfilenamecombo;
118 GList *fsinsertfilenamecombo_items = NULL;
119 GtkWidget *combo_entry1;
120 GtkWidget *mainFileSharingInsertBrowseButton;
121 GtkWidget *alignment7;
122 GtkWidget *hbox20;
123 GtkWidget *image7;
124 GtkWidget *label70;
125 GtkWidget *fsinsertuploadbutton;
126 GtkWidget *alignment9;
127 GtkWidget *hbox22;
128 GtkWidget *image9;
129 GtkWidget *label74;
130 GtkWidget *insertfstab;
131 GtkWidget *fsadvancedvbox;
132 GtkWidget *menubar2;
133 GtkWidget *createNamespace;
134 GtkWidget *createNamespace_menu;
135 GtkWidget *namespace1;
136 GtkWidget *directory1;
137 GtkWidget *collection1;
138 GtkWidget *advertisement1;
139 GtkWidget *delete1;
140 GtkWidget *delete1_menu;
141 GtkWidget *namespace2;
142 GtkWidget *collection2;
143 GtkWidget *notebook4;
144 GtkWidget *label62;
145 GtkWidget *label39;
146 GtkWidget *frame11;
147 GtkWidget *scrolledwindow3;
148 GtkWidget *viewport3;
149 GtkWidget *scrolledwindow4;
150 GtkWidget *clist1;
151 GtkWidget *label55;
152 GtkWidget *advancedfstab;
153 GtkWidget *fstab;
154 GtkWidget *statisticsnotebookvbox;
155 GtkWidget *label68;
156 GtkWidget *label5;
157 GtkWidget *chatnotbookvbox;
158 GtkWidget *notebook3;
159 GtkWidget *label72;
160 GtkWidget *label38;
161 GtkWidget *combo3;
162 GList *combo3_items = NULL;
163 GtkWidget *chatMainEntryLine;
164 GtkWidget *chatNotebookLabel;
165 GtkWidget *statusbar;
166 GtkAccelGroup *accel_group;
167 GtkTooltips *tooltips;
168
169 tooltips = gtk_tooltips_new ();
170
171 accel_group = gtk_accel_group_new ();
172
173 mainWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
174 gtk_widget_set_name (mainWindow, "mainWindow");
175 gtk_window_set_title (GTK_WINDOW (mainWindow), _("gnunet-gtk"));
176 mainWindow_icon_pixbuf = create_pixbuf ("gnunet_logo.png");
177 if (mainWindow_icon_pixbuf)
178 {
179 gtk_window_set_icon (GTK_WINDOW (mainWindow), mainWindow_icon_pixbuf);
180 gdk_pixbuf_unref (mainWindow_icon_pixbuf);
181 }
182
183 vbox1 = gtk_vbox_new (FALSE, 0);
184 gtk_widget_set_name (vbox1, "vbox1");
185 gtk_widget_show (vbox1);
186 gtk_container_add (GTK_CONTAINER (mainWindow), vbox1);
187
188 main_app_menubar = gtk_menu_bar_new ();
189 gtk_widget_set_name (main_app_menubar, "main_app_menubar");
190 gtk_widget_show (main_app_menubar);
191 gtk_box_pack_start (GTK_BOX (vbox1), main_app_menubar, FALSE, FALSE, 0);
192
193 quit1 = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group);
194 gtk_widget_set_name (quit1, "quit1");
195 gtk_widget_show (quit1);
196 gtk_container_add (GTK_CONTAINER (main_app_menubar), quit1);
197
198 help1 = gtk_image_menu_item_new_from_stock ("gtk-help", accel_group);
199 gtk_widget_set_name (help1, "help1");
200 gtk_widget_show (help1);
201 gtk_container_add (GTK_CONTAINER (main_app_menubar), help1);
202
203 help1_menu = gtk_menu_new ();
204 gtk_widget_set_name (help1_menu, "help1_menu");
205 gtk_menu_item_set_submenu (GTK_MENU_ITEM (help1), help1_menu);
206
207 about = gtk_image_menu_item_new_from_stock ("gtk-about", accel_group);
208 gtk_widget_set_name (about, "about");
209 gtk_widget_show (about);
210 gtk_container_add (GTK_CONTAINER (help1_menu), about);
211
212 mainnotebook = gtk_notebook_new ();
213 gtk_widget_set_name (mainnotebook, "mainnotebook");
214 gtk_widget_show (mainnotebook);
215 gtk_box_pack_start (GTK_BOX (vbox1), mainnotebook, TRUE, TRUE, 0);
216 gtk_notebook_set_scrollable (GTK_NOTEBOOK (mainnotebook), TRUE);
217
218 splashScreen = gtk_label_new (_("Welcome to GNUnet\n"));
219 gtk_widget_set_name (splashScreen, "splashScreen");
220 gtk_widget_show (splashScreen);
221 gtk_container_add (GTK_CONTAINER (mainnotebook), splashScreen);
222 gtk_label_set_use_markup (GTK_LABEL (splashScreen), TRUE);
223 gtk_label_set_line_wrap (GTK_LABEL (splashScreen), TRUE);
224
225 welcomelabel = gtk_label_new_with_mnemonic (_("_Welcome"));
226 gtk_widget_set_name (welcomelabel, "welcomelabel");
227 gtk_widget_show (welcomelabel);
228 gtk_notebook_set_tab_label (GTK_NOTEBOOK (mainnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mainnotebook), 0), welcomelabel);
229
230 fs_scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
231 gtk_widget_set_name (fs_scrolledwindow, "fs_scrolledwindow");
232 gtk_widget_show (fs_scrolledwindow);
233 gtk_container_add (GTK_CONTAINER (mainnotebook), fs_scrolledwindow);
234 GTK_WIDGET_UNSET_FLAGS (fs_scrolledwindow, GTK_CAN_FOCUS);
235 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (fs_scrolledwindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
236
237 viewport1 = gtk_viewport_new (NULL, NULL);
238 gtk_widget_set_name (viewport1, "viewport1");
239 gtk_widget_show (viewport1);
240 gtk_container_add (GTK_CONTAINER (fs_scrolledwindow), viewport1);
241
242 scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
243 gtk_widget_set_name (scrolledwindow2, "scrolledwindow2");
244 gtk_widget_show (scrolledwindow2);
245 gtk_container_add (GTK_CONTAINER (viewport1), scrolledwindow2);
246 GTK_WIDGET_UNSET_FLAGS (scrolledwindow2, GTK_CAN_FOCUS);
247 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
248
249 viewport2 = gtk_viewport_new (NULL, NULL);
250 gtk_widget_set_name (viewport2, "viewport2");
251 gtk_widget_show (viewport2);
252 gtk_container_add (GTK_CONTAINER (scrolledwindow2), viewport2);
253
254 vbox2 = gtk_vbox_new (FALSE, 0);
255 gtk_widget_set_name (vbox2, "vbox2");
256 gtk_widget_show (vbox2);
257 gtk_container_add (GTK_CONTAINER (viewport2), vbox2);
258
259 frame3 = gtk_frame_new (NULL);
260 gtk_widget_set_name (frame3, "frame3");
261 gtk_widget_show (frame3);
262 gtk_box_pack_start (GTK_BOX (vbox2), frame3, FALSE, FALSE, 0);
263
264 hbox2 = gtk_hbox_new (FALSE, 0);
265 gtk_widget_set_name (hbox2, "hbox2");
266 gtk_widget_show (hbox2);
267 gtk_container_add (GTK_CONTAINER (frame3), hbox2);
268
269 startGnunetdButton = gtk_button_new ();
270 gtk_widget_set_name (startGnunetdButton, "startGnunetdButton");
271 gtk_widget_show (startGnunetdButton);
272 gtk_box_pack_start (GTK_BOX (hbox2), startGnunetdButton, TRUE, TRUE, 0);
273
274 alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
275 gtk_widget_set_name (alignment1, "alignment1");
276 gtk_widget_show (alignment1);
277 gtk_container_add (GTK_CONTAINER (startGnunetdButton), alignment1);
278
279 hbox11 = gtk_hbox_new (FALSE, 2);
280 gtk_widget_set_name (hbox11, "hbox11");
281 gtk_widget_show (hbox11);
282 gtk_container_add (GTK_CONTAINER (alignment1), hbox11);
283
284 image1 = gtk_image_new_from_stock ("gtk-media-play", GTK_ICON_SIZE_BUTTON);
285 gtk_widget_set_name (image1, "image1");
286 gtk_widget_show (image1);
287 gtk_box_pack_start (GTK_BOX (hbox11), image1, FALSE, FALSE, 0);
288
289 startButton = gtk_label_new_with_mnemonic (_("_start gnunetd"));
290 gtk_widget_set_name (startButton, "startButton");
291 gtk_widget_show (startButton);
292 gtk_box_pack_start (GTK_BOX (hbox11), startButton, TRUE, TRUE, 0);
293 gtk_label_set_justify (GTK_LABEL (startButton), GTK_JUSTIFY_RIGHT);
294
295 stopDaemon = gtk_button_new ();
296 gtk_widget_set_name (stopDaemon, "stopDaemon");
297 gtk_widget_show (stopDaemon);
298 gtk_box_pack_start (GTK_BOX (hbox2), stopDaemon, TRUE, TRUE, 0);
299 gtk_tooltips_set_tip (tooltips, stopDaemon, _("disconnect from GNUnet"), NULL);
300
301 alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
302 gtk_widget_set_name (alignment2, "alignment2");
303 gtk_widget_show (alignment2);
304 gtk_container_add (GTK_CONTAINER (stopDaemon), alignment2);
305
306 hbox12 = gtk_hbox_new (FALSE, 2);
307 gtk_widget_set_name (hbox12, "hbox12");
308 gtk_widget_show (hbox12);
309 gtk_container_add (GTK_CONTAINER (alignment2), hbox12);
310
311 image2 = gtk_image_new_from_stock ("gtk-stop", GTK_ICON_SIZE_BUTTON);
312 gtk_widget_set_name (image2, "image2");
313 gtk_widget_show (image2);
314 gtk_box_pack_start (GTK_BOX (hbox12), image2, FALSE, FALSE, 0);
315
316 label64 = gtk_label_new_with_mnemonic (_("s_top gnunetd"));
317 gtk_widget_set_name (label64, "label64");
318 gtk_widget_show (label64);
319 gtk_box_pack_start (GTK_BOX (hbox12), label64, FALSE, FALSE, 0);
320
321 statusPixmap = gtk_image_new_from_stock ("gtk-no", GTK_ICON_SIZE_BUTTON);
322 gtk_widget_set_name (statusPixmap, "statusPixmap");
323 gtk_widget_show (statusPixmap);
324 gtk_box_pack_start (GTK_BOX (hbox2), statusPixmap, FALSE, FALSE, 0);
325
326 gnunetdControlLabel = gtk_label_new (_("gnunetd control"));
327 gtk_widget_set_name (gnunetdControlLabel, "gnunetdControlLabel");
328 gtk_widget_show (gnunetdControlLabel);
329 gtk_frame_set_label_widget (GTK_FRAME (frame3), gnunetdControlLabel);
330
331 frame2 = gtk_frame_new (NULL);
332 gtk_widget_set_name (frame2, "frame2");
333 gtk_widget_show (frame2);
334 gtk_box_pack_start (GTK_BOX (vbox2), frame2, TRUE, TRUE, 0);
335
336 statisticsLabel = gtk_label_new (_("Unavailable.\n"));
337 gtk_widget_set_name (statisticsLabel, "statisticsLabel");
338 gtk_widget_show (statisticsLabel);
339 gtk_container_add (GTK_CONTAINER (frame2), statisticsLabel);
340 gtk_label_set_line_wrap (GTK_LABEL (statisticsLabel), TRUE);
341
342 label2 = gtk_label_new (_("Statistics"));
343 gtk_widget_set_name (label2, "label2");
344 gtk_widget_show (label2);
345 gtk_frame_set_label_widget (GTK_FRAME (frame2), label2);
346
347 frame1 = gtk_frame_new (NULL);
348 gtk_widget_set_name (frame1, "frame1");
349 gtk_widget_show (frame1);
350 gtk_box_pack_start (GTK_BOX (vbox2), frame1, TRUE, TRUE, 0);
351
352 scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
353 gtk_widget_set_name (scrolledwindow5, "scrolledwindow5");
354 gtk_widget_show (scrolledwindow5);
355 gtk_container_add (GTK_CONTAINER (frame1), scrolledwindow5);
356 GTK_WIDGET_UNSET_FLAGS (scrolledwindow5, GTK_CAN_FOCUS);
357 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
358 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);
359
360 clist2 = gtk_tree_view_new ();
361 gtk_widget_set_name (clist2, "clist2");
362 gtk_widget_show (clist2);
363 gtk_container_add (GTK_CONTAINER (scrolledwindow5), clist2);
364
365 label3 = gtk_label_new (_("Available Applications"));
366 gtk_widget_set_name (label3, "label3");
367 gtk_widget_show (label3);
368 gtk_frame_set_label_widget (GTK_FRAME (frame1), label3);
369
370 generalLabel = gtk_label_new_with_mnemonic (_("_General"));
371 gtk_widget_set_name (generalLabel, "generalLabel");
372 gtk_widget_show (generalLabel);
373 gtk_notebook_set_tab_label (GTK_NOTEBOOK (mainnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mainnotebook), 1), generalLabel);
374 gtk_label_set_justify (GTK_LABEL (generalLabel), GTK_JUSTIFY_CENTER);
375
376 fsnotebook = gtk_notebook_new ();
377 gtk_widget_set_name (fsnotebook, "fsnotebook");
378 gtk_widget_show (fsnotebook);
379 gtk_container_add (GTK_CONTAINER (mainnotebook), fsnotebook);
380
381 fsstatusvbox = gtk_vbox_new (FALSE, 0);
382 gtk_widget_set_name (fsstatusvbox, "fsstatusvbox");
383 gtk_widget_show (fsstatusvbox);
384 gtk_container_add (GTK_CONTAINER (fsnotebook), fsstatusvbox);
385
386 frame8 = gtk_frame_new (NULL);
387 gtk_widget_set_name (frame8, "frame8");
388 gtk_widget_show (frame8);
389 gtk_box_pack_start (GTK_BOX (fsstatusvbox), frame8, TRUE, TRUE, 0);
390
391 scrolledwindow9 = gtk_scrolled_window_new (NULL, NULL);
392 gtk_widget_set_name (scrolledwindow9, "scrolledwindow9");
393 gtk_widget_show (scrolledwindow9);
394 gtk_container_add (GTK_CONTAINER (frame8), scrolledwindow9);
395 GTK_WIDGET_UNSET_FLAGS (scrolledwindow9, GTK_CAN_FOCUS);
396 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow9), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
397 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow9), GTK_SHADOW_IN);
398
399 clist7 = gtk_tree_view_new ();
400 gtk_widget_set_name (clist7, "clist7");
401 gtk_widget_show (clist7);
402 gtk_container_add (GTK_CONTAINER (scrolledwindow9), clist7);
403
404 label16 = gtk_label_new (_("Search Results"));
405 gtk_widget_set_name (label16, "label16");
406 gtk_widget_show (label16);
407 gtk_frame_set_label_widget (GTK_FRAME (frame8), label16);
408
409 frame9 = gtk_frame_new (NULL);
410 gtk_widget_set_name (frame9, "frame9");
411 gtk_widget_show (frame9);
412 gtk_box_pack_start (GTK_BOX (fsstatusvbox), frame9, TRUE, TRUE, 0);
413
414 scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
415 gtk_widget_set_name (scrolledwindow7, "scrolledwindow7");
416 gtk_widget_show (scrolledwindow7);
417 gtk_container_add (GTK_CONTAINER (frame9), scrolledwindow7);
418 GTK_WIDGET_UNSET_FLAGS (scrolledwindow7, GTK_CAN_FOCUS);
419 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
420 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);
421
422 clist5 = gtk_tree_view_new ();
423 gtk_widget_set_name (clist5, "clist5");
424 gtk_widget_show (clist5);
425 gtk_container_add (GTK_CONTAINER (scrolledwindow7), clist5);
426
427 label45 = gtk_label_new (_("Downloads"));
428 gtk_widget_set_name (label45, "label45");
429 gtk_widget_show (label45);
430 gtk_frame_set_label_widget (GTK_FRAME (frame9), label45);
431
432 frame10 = gtk_frame_new (NULL);
433 gtk_widget_set_name (frame10, "frame10");
434 gtk_widget_show (frame10);
435 gtk_box_pack_start (GTK_BOX (fsstatusvbox), frame10, TRUE, TRUE, 0);
436
437 scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
438 gtk_widget_set_name (scrolledwindow8, "scrolledwindow8");
439 gtk_widget_show (scrolledwindow8);
440 gtk_container_add (GTK_CONTAINER (frame10), scrolledwindow8);
441 GTK_WIDGET_UNSET_FLAGS (scrolledwindow8, GTK_CAN_FOCUS);
442 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
443 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);
444
445 clist6 = gtk_tree_view_new ();
446 gtk_widget_set_name (clist6, "clist6");
447 gtk_widget_show (clist6);
448 gtk_container_add (GTK_CONTAINER (scrolledwindow8), clist6);
449
450 label46 = gtk_label_new (_("Uploads"));
451 gtk_widget_set_name (label46, "label46");
452 gtk_widget_show (label46);
453 gtk_frame_set_label_widget (GTK_FRAME (frame10), label46);
454
455 statusfstab = gtk_label_new_with_mnemonic (_("S_tatus"));
456 gtk_widget_set_name (statusfstab, "statusfstab");
457 gtk_widget_show (statusfstab);
458 gtk_notebook_set_tab_label (GTK_NOTEBOOK (fsnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (fsnotebook), 0), statusfstab);
459 gtk_label_set_justify (GTK_LABEL (statusfstab), GTK_JUSTIFY_CENTER);
460
461 fsdownloadvbox = gtk_vbox_new (FALSE, 0);
462 gtk_widget_set_name (fsdownloadvbox, "fsdownloadvbox");
463 gtk_widget_show (fsdownloadvbox);
464 gtk_container_add (GTK_CONTAINER (fsnotebook), fsdownloadvbox);
465
466 notebook6 = gtk_notebook_new ();
467 gtk_widget_set_name (notebook6, "notebook6");
468 gtk_box_pack_start (GTK_BOX (fsdownloadvbox), notebook6, TRUE, TRUE, 0);
469
470 label61 = gtk_label_new (_("label61"));
471 gtk_widget_set_name (label61, "label61");
472 gtk_container_add (GTK_CONTAINER (notebook6), label61);
473
474 label36 = gtk_label_new (_("label36"));
475 gtk_widget_set_name (label36, "label36");
476 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook6), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook6), 0), label36);
477 gtk_label_set_justify (GTK_LABEL (label36), GTK_JUSTIFY_CENTER);
478
479 fssearchhbox = gtk_hbox_new (FALSE, 0);
480 gtk_widget_set_name (fssearchhbox, "fssearchhbox");
481 gtk_widget_show (fssearchhbox);
482 gtk_box_pack_start (GTK_BOX (fsdownloadvbox), fssearchhbox, FALSE, FALSE, 0);
483
484 fsSearchStringInputLine = gtk_combo_new ();
485 g_object_set_data (G_OBJECT (GTK_COMBO (fsSearchStringInputLine)->popwin),
486 "GladeParentKey", fsSearchStringInputLine);
487 gtk_widget_set_name (fsSearchStringInputLine, "fsSearchStringInputLine");
488 gtk_widget_show (fsSearchStringInputLine);
489 gtk_box_pack_start (GTK_BOX (fssearchhbox), fsSearchStringInputLine, TRUE, TRUE, 0);
490 fsSearchStringInputLine_items = g_list_append (fsSearchStringInputLine_items, (gpointer) "");
491 gtk_combo_set_popdown_strings (GTK_COMBO (fsSearchStringInputLine), fsSearchStringInputLine_items);
492 g_list_free (fsSearchStringInputLine_items);
493
494 combo_entry2 = GTK_COMBO (fsSearchStringInputLine)->entry;
495 gtk_widget_set_name (combo_entry2, "combo_entry2");
496 gtk_widget_show (combo_entry2);
497 gtk_widget_add_accelerator (combo_entry2, "activate", accel_group,
498 GDK_Return, 0,
499 GTK_ACCEL_VISIBLE);
500
501 fssearchbutton = gtk_button_new ();
502 gtk_widget_set_name (fssearchbutton, "fssearchbutton");
503 gtk_widget_show (fssearchbutton);
504 gtk_box_pack_start (GTK_BOX (fssearchhbox), fssearchbutton, FALSE, FALSE, 0);
505 gtk_widget_add_accelerator (fssearchbutton, "activate", accel_group,
506 GDK_Return, 0,
507 GTK_ACCEL_VISIBLE);
508
509 alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0);
510 gtk_widget_set_name (alignment8, "alignment8");
511 gtk_widget_show (alignment8);
512 gtk_container_add (GTK_CONTAINER (fssearchbutton), alignment8);
513
514 hbox21 = gtk_hbox_new (FALSE, 2);
515 gtk_widget_set_name (hbox21, "hbox21");
516 gtk_widget_show (hbox21);
517 gtk_container_add (GTK_CONTAINER (alignment8), hbox21);
518
519 image8 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_BUTTON);
520 gtk_widget_set_name (image8, "image8");
521 gtk_widget_show (image8);
522 gtk_box_pack_start (GTK_BOX (hbox21), image8, FALSE, FALSE, 0);
523
524 label71 = gtk_label_new_with_mnemonic (_("_Search"));
525 gtk_widget_set_name (label71, "label71");
526 gtk_widget_show (label71);
527 gtk_box_pack_start (GTK_BOX (hbox21), label71, FALSE, FALSE, 0);
528
529 label40 = gtk_label_new (_("in namespace"));
530 gtk_widget_set_name (label40, "label40");
531 gtk_widget_show (label40);
532 gtk_box_pack_start (GTK_BOX (fssearchhbox), label40, FALSE, FALSE, 0);
533 gtk_label_set_justify (GTK_LABEL (label40), GTK_JUSTIFY_CENTER);
534 gtk_misc_set_padding (GTK_MISC (label40), 8, 0);
535
536 optionmenu1 = gtk_option_menu_new ();
537 gtk_widget_set_name (optionmenu1, "optionmenu1");
538 gtk_widget_show (optionmenu1);
539 gtk_box_pack_start (GTK_BOX (fssearchhbox), optionmenu1, FALSE, FALSE, 0);
540
541 convertwidget16 = gtk_menu_new ();
542 gtk_widget_set_name (convertwidget16, "convertwidget16");
543
544 convertwidget17 = gtk_menu_item_new_with_mnemonic (_("global (everywhere)"));
545 gtk_widget_set_name (convertwidget17, "convertwidget17");
546 gtk_widget_show (convertwidget17);
547 gtk_container_add (GTK_CONTAINER (convertwidget16), convertwidget17);
548
549 gtk_option_menu_set_menu (GTK_OPTION_MENU (optionmenu1), convertwidget16);
550
551 downloadfstab = gtk_label_new_with_mnemonic (_("_Download"));
552 gtk_widget_set_name (downloadfstab, "downloadfstab");
553 gtk_widget_show (downloadfstab);
554 gtk_notebook_set_tab_label (GTK_NOTEBOOK (fsnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (fsnotebook), 1), downloadfstab);
555 gtk_label_set_justify (GTK_LABEL (downloadfstab), GTK_JUSTIFY_CENTER);
556
557 fsinsertvbox = gtk_vbox_new (FALSE, 0);
558 gtk_widget_set_name (fsinsertvbox, "fsinsertvbox");
559 gtk_widget_show (fsinsertvbox);
560 gtk_container_add (GTK_CONTAINER (fsnotebook), fsinsertvbox);
561
562 hbox8 = gtk_hbox_new (FALSE, 0);
563 gtk_widget_set_name (hbox8, "hbox8");
564 gtk_widget_show (hbox8);
565 gtk_box_pack_start (GTK_BOX (fsinsertvbox), hbox8, FALSE, FALSE, 0);
566
567 methodLabel = gtk_label_new_with_mnemonic (_("_Method:"));
568 gtk_widget_set_name (methodLabel, "methodLabel");
569 gtk_widget_show (methodLabel);
570 gtk_box_pack_start (GTK_BOX (hbox8), methodLabel, FALSE, FALSE, 0);
571 gtk_misc_set_padding (GTK_MISC (methodLabel), 5, 0);
572
573 indexbutton = gtk_radio_button_new_with_mnemonic (NULL, _("index"));
574 gtk_widget_set_name (indexbutton, "indexbutton");
575 gtk_widget_show (indexbutton);
576 gtk_box_pack_start (GTK_BOX (hbox8), indexbutton, FALSE, FALSE, 0);
577 gtk_radio_button_set_group (GTK_RADIO_BUTTON (indexbutton), indexbutton_group);
578 indexbutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (indexbutton));
579 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (indexbutton), TRUE);
580
581 insertButton = gtk_radio_button_new_with_mnemonic (NULL, _("insert"));
582 gtk_widget_set_name (insertButton, "insertButton");
583 gtk_widget_show (insertButton);
584 gtk_box_pack_start (GTK_BOX (hbox8), insertButton, FALSE, FALSE, 0);
585 gtk_radio_button_set_group (GTK_RADIO_BUTTON (insertButton), indexbutton_group);
586 indexbutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (insertButton));
587
588 hbox9 = gtk_hbox_new (FALSE, 0);
589 gtk_widget_set_name (hbox9, "hbox9");
590 gtk_widget_show (hbox9);
591 gtk_box_pack_start (GTK_BOX (fsinsertvbox), hbox9, FALSE, FALSE, 0);
592
593 scopeLabel = gtk_label_new_with_mnemonic (_("_Scope:"));
594 gtk_widget_set_name (scopeLabel, "scopeLabel");
595 gtk_widget_show (scopeLabel);
596 gtk_box_pack_start (GTK_BOX (hbox9), scopeLabel, FALSE, FALSE, 0);
597 gtk_misc_set_padding (GTK_MISC (scopeLabel), 5, 0);
598
599 radiobutton2 = gtk_radio_button_new_with_mnemonic (NULL, _("file only"));
600 gtk_widget_set_name (radiobutton2, "radiobutton2");
601 gtk_widget_show (radiobutton2);
602 gtk_box_pack_start (GTK_BOX (hbox9), radiobutton2, FALSE, FALSE, 0);
603 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton2), radiobutton2_group);
604 radiobutton2_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton2));
605 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton2), TRUE);
606
607 radiobutton3 = gtk_radio_button_new_with_mnemonic (NULL, _("recursive (for entire directories)"));
608 gtk_widget_set_name (radiobutton3, "radiobutton3");
609 gtk_widget_show (radiobutton3);
610 gtk_box_pack_start (GTK_BOX (hbox9), radiobutton3, FALSE, FALSE, 0);
611 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton3), radiobutton2_group);
612 radiobutton2_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton3));
613
614 hbox10 = gtk_hbox_new (FALSE, 0);
615 gtk_widget_set_name (hbox10, "hbox10");
616 gtk_widget_show (hbox10);
617 gtk_box_pack_start (GTK_BOX (fsinsertvbox), hbox10, FALSE, FALSE, 0);
618
619 label54 = gtk_label_new_with_mnemonic (_("_Filename:"));
620 gtk_widget_set_name (label54, "label54");
621 gtk_widget_show (label54);
622 gtk_box_pack_start (GTK_BOX (hbox10), label54, FALSE, FALSE, 0);
623 gtk_label_set_justify (GTK_LABEL (label54), GTK_JUSTIFY_CENTER);
624 gtk_misc_set_padding (GTK_MISC (label54), 5, 0);
625
626 fsinsertfilenamecombo = gtk_combo_new ();
627 g_object_set_data (G_OBJECT (GTK_COMBO (fsinsertfilenamecombo)->popwin),
628 "GladeParentKey", fsinsertfilenamecombo);
629 gtk_widget_set_name (fsinsertfilenamecombo, "fsinsertfilenamecombo");
630 gtk_widget_show (fsinsertfilenamecombo);
631 gtk_box_pack_start (GTK_BOX (hbox10), fsinsertfilenamecombo, TRUE, TRUE, 0);
632 fsinsertfilenamecombo_items = g_list_append (fsinsertfilenamecombo_items, (gpointer) "");
633 gtk_combo_set_popdown_strings (GTK_COMBO (fsinsertfilenamecombo), fsinsertfilenamecombo_items);
634 g_list_free (fsinsertfilenamecombo_items);
635
636 combo_entry1 = GTK_COMBO (fsinsertfilenamecombo)->entry;
637 gtk_widget_set_name (combo_entry1, "combo_entry1");
638 gtk_widget_show (combo_entry1);
639
640 mainFileSharingInsertBrowseButton = gtk_button_new ();
641 gtk_widget_set_name (mainFileSharingInsertBrowseButton, "mainFileSharingInsertBrowseButton");
642 gtk_widget_show (mainFileSharingInsertBrowseButton);
643 gtk_box_pack_start (GTK_BOX (hbox10), mainFileSharingInsertBrowseButton, FALSE, FALSE, 0);
644
645 alignment7 = gtk_alignment_new (0.5, 0.5, 0, 0);
646 gtk_widget_set_name (alignment7, "alignment7");
647 gtk_widget_show (alignment7);
648 gtk_container_add (GTK_CONTAINER (mainFileSharingInsertBrowseButton), alignment7);
649
650 hbox20 = gtk_hbox_new (FALSE, 2);
651 gtk_widget_set_name (hbox20, "hbox20");
652 gtk_widget_show (hbox20);
653 gtk_container_add (GTK_CONTAINER (alignment7), hbox20);
654
655 image7 = gtk_image_new_from_stock ("gtk-home", GTK_ICON_SIZE_BUTTON);
656 gtk_widget_set_name (image7, "image7");
657 gtk_widget_show (image7);
658 gtk_box_pack_start (GTK_BOX (hbox20), image7, FALSE, FALSE, 0);
659
660 label70 = gtk_label_new_with_mnemonic (_("_Browse"));
661 gtk_widget_set_name (label70, "label70");
662 gtk_widget_show (label70);
663 gtk_box_pack_start (GTK_BOX (hbox20), label70, FALSE, FALSE, 0);
664
665 fsinsertuploadbutton = gtk_button_new ();
666 gtk_widget_set_name (fsinsertuploadbutton, "fsinsertuploadbutton");
667 gtk_widget_show (fsinsertuploadbutton);
668 gtk_box_pack_start (GTK_BOX (fsinsertvbox), fsinsertuploadbutton, FALSE, FALSE, 0);
669
670 alignment9 = gtk_alignment_new (0.5, 0.5, 0, 0);
671 gtk_widget_set_name (alignment9, "alignment9");
672 gtk_widget_show (alignment9);
673 gtk_container_add (GTK_CONTAINER (fsinsertuploadbutton), alignment9);
674
675 hbox22 = gtk_hbox_new (FALSE, 2);
676 gtk_widget_set_name (hbox22, "hbox22");
677 gtk_widget_show (hbox22);
678 gtk_container_add (GTK_CONTAINER (alignment9), hbox22);
679
680 image9 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_BUTTON);
681 gtk_widget_set_name (image9, "image9");
682 gtk_widget_show (image9);
683 gtk_box_pack_start (GTK_BOX (hbox22), image9, FALSE, FALSE, 0);
684
685 label74 = gtk_label_new_with_mnemonic (_("_Upload"));
686 gtk_widget_set_name (label74, "label74");
687 gtk_widget_show (label74);
688 gtk_box_pack_start (GTK_BOX (hbox22), label74, FALSE, FALSE, 0);
689
690 insertfstab = gtk_label_new_with_mnemonic (_("_Insert"));
691 gtk_widget_set_name (insertfstab, "insertfstab");
692 gtk_widget_show (insertfstab);
693 gtk_notebook_set_tab_label (GTK_NOTEBOOK (fsnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (fsnotebook), 2), insertfstab);
694 gtk_label_set_justify (GTK_LABEL (insertfstab), GTK_JUSTIFY_CENTER);
695
696 fsadvancedvbox = gtk_vbox_new (FALSE, 0);
697 gtk_widget_set_name (fsadvancedvbox, "fsadvancedvbox");
698 gtk_widget_show (fsadvancedvbox);
699 gtk_container_add (GTK_CONTAINER (fsnotebook), fsadvancedvbox);
700
701 menubar2 = gtk_menu_bar_new ();
702 gtk_widget_set_name (menubar2, "menubar2");
703 gtk_widget_show (menubar2);
704 gtk_box_pack_start (GTK_BOX (fsadvancedvbox), menubar2, FALSE, FALSE, 0);
705
706 createNamespace = gtk_menu_item_new_with_mnemonic (_("_create"));
707 gtk_widget_set_name (createNamespace, "createNamespace");
708 gtk_widget_show (createNamespace);
709 gtk_container_add (GTK_CONTAINER (menubar2), createNamespace);
710
711 createNamespace_menu = gtk_menu_new ();
712 gtk_widget_set_name (createNamespace_menu, "createNamespace_menu");
713 gtk_menu_item_set_submenu (GTK_MENU_ITEM (createNamespace), createNamespace_menu);
714
715 namespace1 = gtk_menu_item_new_with_mnemonic (_("_Namespace"));
716 gtk_widget_set_name (namespace1, "namespace1");
717 gtk_widget_show (namespace1);
718 gtk_container_add (GTK_CONTAINER (createNamespace_menu), namespace1);
719
720 directory1 = gtk_menu_item_new_with_mnemonic (_("_Directory"));
721 gtk_widget_set_name (directory1, "directory1");
722 gtk_widget_show (directory1);
723 gtk_container_add (GTK_CONTAINER (createNamespace_menu), directory1);
724
725 collection1 = gtk_menu_item_new_with_mnemonic (_("_Collection"));
726 gtk_widget_set_name (collection1, "collection1");
727 gtk_widget_show (collection1);
728 gtk_container_add (GTK_CONTAINER (createNamespace_menu), collection1);
729
730 advertisement1 = gtk_menu_item_new_with_mnemonic (_("_Advertisement"));
731 gtk_widget_set_name (advertisement1, "advertisement1");
732 gtk_widget_show (advertisement1);
733 gtk_container_add (GTK_CONTAINER (createNamespace_menu), advertisement1);
734
735 delete1 = gtk_menu_item_new_with_mnemonic (_("_delete"));
736 gtk_widget_set_name (delete1, "delete1");
737 gtk_widget_show (delete1);
738 gtk_container_add (GTK_CONTAINER (menubar2), delete1);
739
740 delete1_menu = gtk_menu_new ();
741 gtk_widget_set_name (delete1_menu, "delete1_menu");
742 gtk_menu_item_set_submenu (GTK_MENU_ITEM (delete1), delete1_menu);
743
744 namespace2 = gtk_menu_item_new_with_mnemonic (_("_Namespace"));
745 gtk_widget_set_name (namespace2, "namespace2");
746 gtk_widget_show (namespace2);
747 gtk_container_add (GTK_CONTAINER (delete1_menu), namespace2);
748 gtk_tooltips_set_tip (tooltips, namespace2, _("Will prevent future insertions into the namespace (will not delete content in the namespace)"), NULL);
749
750 collection2 = gtk_menu_item_new_with_mnemonic (_("_Collection"));
751 gtk_widget_set_name (collection2, "collection2");
752 gtk_widget_show (collection2);
753 gtk_container_add (GTK_CONTAINER (delete1_menu), collection2);
754 gtk_tooltips_set_tip (tooltips, collection2, _("end collection (will not delete content already in the collection)"), NULL);
755
756 notebook4 = gtk_notebook_new ();
757 gtk_widget_set_name (notebook4, "notebook4");
758 gtk_box_pack_start (GTK_BOX (fsadvancedvbox), notebook4, TRUE, TRUE, 0);
759
760 label62 = gtk_label_new (_("label62"));
761 gtk_widget_set_name (label62, "label62");
762 gtk_container_add (GTK_CONTAINER (notebook4), label62);
763
764 label39 = gtk_label_new (_("label39"));
765 gtk_widget_set_name (label39, "label39");
766 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook4), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook4), 0), label39);
767 gtk_label_set_justify (GTK_LABEL (label39), GTK_JUSTIFY_CENTER);
768
769 frame11 = gtk_frame_new (NULL);
770 gtk_widget_set_name (frame11, "frame11");
771 gtk_widget_show (frame11);
772 gtk_box_pack_start (GTK_BOX (fsadvancedvbox), frame11, TRUE, TRUE, 0);
773
774 scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
775 gtk_widget_set_name (scrolledwindow3, "scrolledwindow3");
776 gtk_widget_show (scrolledwindow3);
777 gtk_container_add (GTK_CONTAINER (frame11), scrolledwindow3);
778 GTK_WIDGET_UNSET_FLAGS (scrolledwindow3, GTK_CAN_FOCUS);
779 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
780
781 viewport3 = gtk_viewport_new (NULL, NULL);
782 gtk_widget_set_name (viewport3, "viewport3");
783 gtk_widget_show (viewport3);
784 gtk_container_add (GTK_CONTAINER (scrolledwindow3), viewport3);
785
786 scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
787 gtk_widget_set_name (scrolledwindow4, "scrolledwindow4");
788 gtk_widget_show (scrolledwindow4);
789 gtk_container_add (GTK_CONTAINER (viewport3), scrolledwindow4);
790 GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS);
791 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
792 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
793
794 clist1 = gtk_tree_view_new ();
795 gtk_widget_set_name (clist1, "clist1");
796 gtk_widget_show (clist1);
797 gtk_container_add (GTK_CONTAINER (scrolledwindow4), clist1);
798
799 label55 = gtk_label_new (_("Available Content"));
800 gtk_widget_set_name (label55, "label55");
801 gtk_widget_show (label55);
802 gtk_frame_set_label_widget (GTK_FRAME (frame11), label55);
803
804 advancedfstab = gtk_label_new_with_mnemonic (_("_Advanced"));
805 gtk_widget_set_name (advancedfstab, "advancedfstab");
806 gtk_widget_show (advancedfstab);
807 gtk_notebook_set_tab_label (GTK_NOTEBOOK (fsnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (fsnotebook), 3), advancedfstab);
808 gtk_label_set_justify (GTK_LABEL (advancedfstab), GTK_JUSTIFY_CENTER);
809
810 fstab = gtk_label_new_with_mnemonic (_("_File sharing"));
811 gtk_widget_set_name (fstab, "fstab");
812 gtk_widget_show (fstab);
813 gtk_notebook_set_tab_label (GTK_NOTEBOOK (mainnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mainnotebook), 2), fstab);
814 gtk_label_set_justify (GTK_LABEL (fstab), GTK_JUSTIFY_CENTER);
815
816 statisticsnotebookvbox = gtk_vbox_new (FALSE, 0);
817 gtk_widget_set_name (statisticsnotebookvbox, "statisticsnotebookvbox");
818 gtk_container_add (GTK_CONTAINER (mainnotebook), statisticsnotebookvbox);
819
820 label68 = gtk_label_new (_("label68"));
821 gtk_widget_set_name (label68, "label68");
822 gtk_widget_show (label68);
823 gtk_box_pack_start (GTK_BOX (statisticsnotebookvbox), label68, FALSE, FALSE, 0);
824
825 label5 = gtk_label_new_with_mnemonic (_("_Statistics"));
826 gtk_widget_set_name (label5, "label5");
827 gtk_widget_show (label5);
828 gtk_notebook_set_tab_label (GTK_NOTEBOOK (mainnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mainnotebook), 3), label5);
829 gtk_label_set_justify (GTK_LABEL (label5), GTK_JUSTIFY_CENTER);
830
831 chatnotbookvbox = gtk_vbox_new (FALSE, 0);
832 gtk_widget_set_name (chatnotbookvbox, "chatnotbookvbox");
833 gtk_widget_show (chatnotbookvbox);
834 gtk_container_add (GTK_CONTAINER (mainnotebook), chatnotbookvbox);
835
836 notebook3 = gtk_notebook_new ();
837 gtk_widget_set_name (notebook3, "notebook3");
838 gtk_box_pack_start (GTK_BOX (chatnotbookvbox), notebook3, TRUE, TRUE, 0);
839
840 label72 = gtk_label_new (_("label72"));
841 gtk_widget_set_name (label72, "label72");
842 gtk_container_add (GTK_CONTAINER (notebook3), label72);
843
844 label38 = gtk_label_new (_("label38"));
845 gtk_widget_set_name (label38, "label38");
846 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 0), label38);
847 gtk_label_set_justify (GTK_LABEL (label38), GTK_JUSTIFY_CENTER);
848
849 combo3 = gtk_combo_new ();
850 g_object_set_data (G_OBJECT (GTK_COMBO (combo3)->popwin),
851 "GladeParentKey", combo3);
852 gtk_widget_set_name (combo3, "combo3");
853 gtk_widget_show (combo3);
854 gtk_box_pack_start (GTK_BOX (chatnotbookvbox), combo3, FALSE, FALSE, 0);
855 gtk_combo_set_case_sensitive (GTK_COMBO (combo3), TRUE);
856 combo3_items = g_list_append (combo3_items, (gpointer) _("/join #gnunet"));
857 combo3_items = g_list_append (combo3_items, (gpointer) "");
858 gtk_combo_set_popdown_strings (GTK_COMBO (combo3), combo3_items);
859 g_list_free (combo3_items);
860
861 chatMainEntryLine = GTK_COMBO (combo3)->entry;
862 gtk_widget_set_name (chatMainEntryLine, "chatMainEntryLine");
863 gtk_widget_show (chatMainEntryLine);
864 gtk_widget_add_accelerator (chatMainEntryLine, "activate", accel_group,
865 GDK_Return, 0,
866 GTK_ACCEL_VISIBLE);
867
868 chatNotebookLabel = gtk_label_new_with_mnemonic (_("_Chat"));
869 gtk_widget_set_name (chatNotebookLabel, "chatNotebookLabel");
870 gtk_widget_show (chatNotebookLabel);
871 gtk_notebook_set_tab_label (GTK_NOTEBOOK (mainnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mainnotebook), 4), chatNotebookLabel);
872 gtk_label_set_justify (GTK_LABEL (chatNotebookLabel), GTK_JUSTIFY_CENTER);
873
874 statusbar = gtk_statusbar_new ();
875 gtk_widget_set_name (statusbar, "statusbar");
876 gtk_widget_show (statusbar);
877 gtk_box_pack_start (GTK_BOX (vbox1), statusbar, FALSE, FALSE, 0);
878 gtk_widget_set_sensitive (statusbar, FALSE);
879
880 g_signal_connect_after ((gpointer) mainWindow, "delete_event",
881 G_CALLBACK (gtk_main_quit),
882 NULL);
883 g_signal_connect ((gpointer) quit1, "activate",
884 G_CALLBACK (gtk_main_quit),
885 NULL);
886 g_signal_connect ((gpointer) about, "activate",
887 G_CALLBACK (on_about_activate),
888 NULL);
889 g_signal_connect ((gpointer) startGnunetdButton, "clicked",
890 G_CALLBACK (on_startGnunetdButton_clicked),
891 NULL);
892 g_signal_connect ((gpointer) stopDaemon, "clicked",
893 G_CALLBACK (on_stopDaemon_clicked),
894 NULL);
895 g_signal_connect_swapped ((gpointer) fssearchbutton, "clicked",
896 G_CALLBACK (on_fssearchbutton_clicked),
897 GTK_OBJECT (fssearchhbox));
898 g_signal_connect_swapped ((gpointer) mainFileSharingInsertBrowseButton, "activate",
899 G_CALLBACK (on_mainFileSharingInsertBrowseButton_activate),
900 GTK_OBJECT (fsinsertfilenamecombo));
901 g_signal_connect_swapped ((gpointer) fsinsertuploadbutton, "clicked",
902 G_CALLBACK (on_fsinsertuploadbutton_clicked),
903 GTK_OBJECT (fsinsertvbox));
904 g_signal_connect ((gpointer) namespace1, "activate_item",
905 G_CALLBACK (on_create_namespace_activate),
906 NULL);
907 g_signal_connect ((gpointer) directory1, "activate_item",
908 G_CALLBACK (on_create_directory_activate),
909 NULL);
910 g_signal_connect ((gpointer) collection1, "activate_item",
911 G_CALLBACK (on_create_collection_activate),
912 NULL);
913 g_signal_connect ((gpointer) advertisement1, "activate_item",
914 G_CALLBACK (on_create_advertisement_activate),
915 NULL);
916 g_signal_connect ((gpointer) namespace2, "activate_item",
917 G_CALLBACK (on_namespace2_activate),
918 NULL);
919 g_signal_connect ((gpointer) collection2, "activate_item",
920 G_CALLBACK (on_collection_delete_activate),
921 NULL);
922 g_signal_connect ((gpointer) chatMainEntryLine, "activate",
923 G_CALLBACK (chatMainEntryLine_activate),
924 NULL);
925 g_signal_connect ((gpointer) chatMainEntryLine, "editing_done",
926 G_CALLBACK (on_chatMainEntryLine_editing_done),
927 NULL);
928
929 gtk_label_set_mnemonic_widget (GTK_LABEL (methodLabel), indexbutton);
930 gtk_label_set_mnemonic_widget (GTK_LABEL (scopeLabel), radiobutton2);
931 gtk_label_set_mnemonic_widget (GTK_LABEL (label54), combo_entry1);
932
933 atko = gtk_widget_get_accessible (welcomelabel);
934 atk_object_set_name (atko, _("Splash Screen"));
935
936 atko = gtk_widget_get_accessible (statusPixmap);
937 atk_object_set_name (atko, _("status"));
938 atk_object_set_description (atko, _("gnunetd status"));
939
940 atko = gtk_widget_get_accessible (fsSearchStringInputLine);
941 atk_object_set_description (atko, _("Enter the keywords to search for in this line."));
942
943
944 /* Store pointers to all widgets, for use by lookup_widget(). */
945 GLADE_HOOKUP_OBJECT_NO_REF (mainWindow, mainWindow, "mainWindow");
946 GLADE_HOOKUP_OBJECT (mainWindow, vbox1, "vbox1");
947 GLADE_HOOKUP_OBJECT (mainWindow, main_app_menubar, "main_app_menubar");
948 GLADE_HOOKUP_OBJECT (mainWindow, quit1, "quit1");
949 GLADE_HOOKUP_OBJECT (mainWindow, help1, "help1");
950 GLADE_HOOKUP_OBJECT (mainWindow, help1_menu, "help1_menu");
951 GLADE_HOOKUP_OBJECT (mainWindow, about, "about");
952 GLADE_HOOKUP_OBJECT (mainWindow, mainnotebook, "mainnotebook");
953 GLADE_HOOKUP_OBJECT (mainWindow, splashScreen, "splashScreen");
954 GLADE_HOOKUP_OBJECT (mainWindow, welcomelabel, "welcomelabel");
955 GLADE_HOOKUP_OBJECT (mainWindow, fs_scrolledwindow, "fs_scrolledwindow");
956 GLADE_HOOKUP_OBJECT (mainWindow, viewport1, "viewport1");
957 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow2, "scrolledwindow2");
958 GLADE_HOOKUP_OBJECT (mainWindow, viewport2, "viewport2");
959 GLADE_HOOKUP_OBJECT (mainWindow, vbox2, "vbox2");
960 GLADE_HOOKUP_OBJECT (mainWindow, frame3, "frame3");
961 GLADE_HOOKUP_OBJECT (mainWindow, hbox2, "hbox2");
962 GLADE_HOOKUP_OBJECT (mainWindow, startGnunetdButton, "startGnunetdButton");
963 GLADE_HOOKUP_OBJECT (mainWindow, alignment1, "alignment1");
964 GLADE_HOOKUP_OBJECT (mainWindow, hbox11, "hbox11");
965 GLADE_HOOKUP_OBJECT (mainWindow, image1, "image1");
966 GLADE_HOOKUP_OBJECT (mainWindow, startButton, "startButton");
967 GLADE_HOOKUP_OBJECT (mainWindow, stopDaemon, "stopDaemon");
968 GLADE_HOOKUP_OBJECT (mainWindow, alignment2, "alignment2");
969 GLADE_HOOKUP_OBJECT (mainWindow, hbox12, "hbox12");
970 GLADE_HOOKUP_OBJECT (mainWindow, image2, "image2");
971 GLADE_HOOKUP_OBJECT (mainWindow, label64, "label64");
972 GLADE_HOOKUP_OBJECT (mainWindow, statusPixmap, "statusPixmap");
973 GLADE_HOOKUP_OBJECT (mainWindow, gnunetdControlLabel, "gnunetdControlLabel");
974 GLADE_HOOKUP_OBJECT (mainWindow, frame2, "frame2");
975 GLADE_HOOKUP_OBJECT (mainWindow, statisticsLabel, "statisticsLabel");
976 GLADE_HOOKUP_OBJECT (mainWindow, label2, "label2");
977 GLADE_HOOKUP_OBJECT (mainWindow, frame1, "frame1");
978 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow5, "scrolledwindow5");
979 GLADE_HOOKUP_OBJECT (mainWindow, clist2, "clist2");
980 GLADE_HOOKUP_OBJECT (mainWindow, label3, "label3");
981 GLADE_HOOKUP_OBJECT (mainWindow, generalLabel, "generalLabel");
982 GLADE_HOOKUP_OBJECT (mainWindow, fsnotebook, "fsnotebook");
983 GLADE_HOOKUP_OBJECT (mainWindow, fsstatusvbox, "fsstatusvbox");
984 GLADE_HOOKUP_OBJECT (mainWindow, frame8, "frame8");
985 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow9, "scrolledwindow9");
986 GLADE_HOOKUP_OBJECT (mainWindow, clist7, "clist7");
987 GLADE_HOOKUP_OBJECT (mainWindow, label16, "label16");
988 GLADE_HOOKUP_OBJECT (mainWindow, frame9, "frame9");
989 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow7, "scrolledwindow7");
990 GLADE_HOOKUP_OBJECT (mainWindow, clist5, "clist5");
991 GLADE_HOOKUP_OBJECT (mainWindow, label45, "label45");
992 GLADE_HOOKUP_OBJECT (mainWindow, frame10, "frame10");
993 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow8, "scrolledwindow8");
994 GLADE_HOOKUP_OBJECT (mainWindow, clist6, "clist6");
995 GLADE_HOOKUP_OBJECT (mainWindow, label46, "label46");
996 GLADE_HOOKUP_OBJECT (mainWindow, statusfstab, "statusfstab");
997 GLADE_HOOKUP_OBJECT (mainWindow, fsdownloadvbox, "fsdownloadvbox");
998 GLADE_HOOKUP_OBJECT (mainWindow, notebook6, "notebook6");
999 GLADE_HOOKUP_OBJECT (mainWindow, label61, "label61");
1000 GLADE_HOOKUP_OBJECT (mainWindow, label36, "label36");
1001 GLADE_HOOKUP_OBJECT (mainWindow, fssearchhbox, "fssearchhbox");
1002 GLADE_HOOKUP_OBJECT (mainWindow, fsSearchStringInputLine, "fsSearchStringInputLine");
1003 GLADE_HOOKUP_OBJECT (mainWindow, combo_entry2, "combo_entry2");
1004 GLADE_HOOKUP_OBJECT (mainWindow, fssearchbutton, "fssearchbutton");
1005 GLADE_HOOKUP_OBJECT (mainWindow, alignment8, "alignment8");
1006 GLADE_HOOKUP_OBJECT (mainWindow, hbox21, "hbox21");
1007 GLADE_HOOKUP_OBJECT (mainWindow, image8, "image8");
1008 GLADE_HOOKUP_OBJECT (mainWindow, label71, "label71");
1009 GLADE_HOOKUP_OBJECT (mainWindow, label40, "label40");
1010 GLADE_HOOKUP_OBJECT (mainWindow, optionmenu1, "optionmenu1");
1011 GLADE_HOOKUP_OBJECT (mainWindow, convertwidget16, "convertwidget16");
1012 GLADE_HOOKUP_OBJECT (mainWindow, convertwidget17, "convertwidget17");
1013 GLADE_HOOKUP_OBJECT (mainWindow, downloadfstab, "downloadfstab");
1014 GLADE_HOOKUP_OBJECT (mainWindow, fsinsertvbox, "fsinsertvbox");
1015 GLADE_HOOKUP_OBJECT (mainWindow, hbox8, "hbox8");
1016 GLADE_HOOKUP_OBJECT (mainWindow, methodLabel, "methodLabel");
1017 GLADE_HOOKUP_OBJECT (mainWindow, indexbutton, "indexbutton");
1018 GLADE_HOOKUP_OBJECT (mainWindow, insertButton, "insertButton");
1019 GLADE_HOOKUP_OBJECT (mainWindow, hbox9, "hbox9");
1020 GLADE_HOOKUP_OBJECT (mainWindow, scopeLabel, "scopeLabel");
1021 GLADE_HOOKUP_OBJECT (mainWindow, radiobutton2, "radiobutton2");
1022 GLADE_HOOKUP_OBJECT (mainWindow, radiobutton3, "radiobutton3");
1023 GLADE_HOOKUP_OBJECT (mainWindow, hbox10, "hbox10");
1024 GLADE_HOOKUP_OBJECT (mainWindow, label54, "label54");
1025 GLADE_HOOKUP_OBJECT (mainWindow, fsinsertfilenamecombo, "fsinsertfilenamecombo");
1026 GLADE_HOOKUP_OBJECT (mainWindow, combo_entry1, "combo_entry1");
1027 GLADE_HOOKUP_OBJECT (mainWindow, mainFileSharingInsertBrowseButton, "mainFileSharingInsertBrowseButton");
1028 GLADE_HOOKUP_OBJECT (mainWindow, alignment7, "alignment7");
1029 GLADE_HOOKUP_OBJECT (mainWindow, hbox20, "hbox20");
1030 GLADE_HOOKUP_OBJECT (mainWindow, image7, "image7");
1031 GLADE_HOOKUP_OBJECT (mainWindow, label70, "label70");
1032 GLADE_HOOKUP_OBJECT (mainWindow, fsinsertuploadbutton, "fsinsertuploadbutton");
1033 GLADE_HOOKUP_OBJECT (mainWindow, alignment9, "alignment9");
1034 GLADE_HOOKUP_OBJECT (mainWindow, hbox22, "hbox22");
1035 GLADE_HOOKUP_OBJECT (mainWindow, image9, "image9");
1036 GLADE_HOOKUP_OBJECT (mainWindow, label74, "label74");
1037 GLADE_HOOKUP_OBJECT (mainWindow, insertfstab, "insertfstab");
1038 GLADE_HOOKUP_OBJECT (mainWindow, fsadvancedvbox, "fsadvancedvbox");
1039 GLADE_HOOKUP_OBJECT (mainWindow, menubar2, "menubar2");
1040 GLADE_HOOKUP_OBJECT (mainWindow, createNamespace, "createNamespace");
1041 GLADE_HOOKUP_OBJECT (mainWindow, createNamespace_menu, "createNamespace_menu");
1042 GLADE_HOOKUP_OBJECT (mainWindow, namespace1, "namespace1");
1043 GLADE_HOOKUP_OBJECT (mainWindow, directory1, "directory1");
1044 GLADE_HOOKUP_OBJECT (mainWindow, collection1, "collection1");
1045 GLADE_HOOKUP_OBJECT (mainWindow, advertisement1, "advertisement1");
1046 GLADE_HOOKUP_OBJECT (mainWindow, delete1, "delete1");
1047 GLADE_HOOKUP_OBJECT (mainWindow, delete1_menu, "delete1_menu");
1048 GLADE_HOOKUP_OBJECT (mainWindow, namespace2, "namespace2");
1049 GLADE_HOOKUP_OBJECT (mainWindow, collection2, "collection2");
1050 GLADE_HOOKUP_OBJECT (mainWindow, notebook4, "notebook4");
1051 GLADE_HOOKUP_OBJECT (mainWindow, label62, "label62");
1052 GLADE_HOOKUP_OBJECT (mainWindow, label39, "label39");
1053 GLADE_HOOKUP_OBJECT (mainWindow, frame11, "frame11");
1054 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow3, "scrolledwindow3");
1055 GLADE_HOOKUP_OBJECT (mainWindow, viewport3, "viewport3");
1056 GLADE_HOOKUP_OBJECT (mainWindow, scrolledwindow4, "scrolledwindow4");
1057 GLADE_HOOKUP_OBJECT (mainWindow, clist1, "clist1");
1058 GLADE_HOOKUP_OBJECT (mainWindow, label55, "label55");
1059 GLADE_HOOKUP_OBJECT (mainWindow, advancedfstab, "advancedfstab");
1060 GLADE_HOOKUP_OBJECT (mainWindow, fstab, "fstab");
1061 GLADE_HOOKUP_OBJECT (mainWindow, statisticsnotebookvbox, "statisticsnotebookvbox");
1062 GLADE_HOOKUP_OBJECT (mainWindow, label68, "label68");
1063 GLADE_HOOKUP_OBJECT (mainWindow, label5, "label5");
1064 GLADE_HOOKUP_OBJECT (mainWindow, chatnotbookvbox, "chatnotbookvbox");
1065 GLADE_HOOKUP_OBJECT (mainWindow, notebook3, "notebook3");
1066 GLADE_HOOKUP_OBJECT (mainWindow, label72, "label72");
1067 GLADE_HOOKUP_OBJECT (mainWindow, label38, "label38");
1068 GLADE_HOOKUP_OBJECT (mainWindow, combo3, "combo3");
1069 GLADE_HOOKUP_OBJECT (mainWindow, chatMainEntryLine, "chatMainEntryLine");
1070 GLADE_HOOKUP_OBJECT (mainWindow, chatNotebookLabel, "chatNotebookLabel");
1071 GLADE_HOOKUP_OBJECT (mainWindow, statusbar, "statusbar");
1072 GLADE_HOOKUP_OBJECT_NO_REF (mainWindow, tooltips, "tooltips");
1073
1074 gtk_window_add_accel_group (GTK_WINDOW (mainWindow), accel_group);
1075
1076 return mainWindow;
1077}
1078
1079GtkWidget*
1080create_metaDataDialog (void)
1081{
1082 GtkWidget *metaDataDialog;
1083 AtkObject *atko;
1084 GdkPixbuf *metaDataDialog_icon_pixbuf;
1085 GtkWidget *dialog_vbox1;
1086 GtkWidget *label51;
1087 GtkWidget *hbox6;
1088 GtkWidget *label49;
1089 GtkWidget *optionmenu2;
1090 GtkWidget *convertwidget30;
1091 GtkWidget *convertwidget31;
1092 GtkWidget *label50;
1093 GtkWidget *metaDataDialogValueEntry;
1094 GtkWidget *frame12;
1095 GtkWidget *scrolledwindow10;
1096 GtkWidget *metaDataDialogMetaDataList;
1097 GtkWidget *label56;
1098 GtkWidget *hbox7;
1099 GtkWidget *label47;
1100 GtkWidget *fileInformationKeywordEntry;
1101 GtkWidget *metaDataDialogKeywordFrame;
1102 GtkWidget *metaDataDialogKeywordScrolledWindow;
1103 GtkWidget *metaDataDialogKeywordList;
1104 GtkWidget *label57;
1105 GtkWidget *dialog_action_area1;
1106 GtkWidget *metaDataDialogDeleteButton;
1107 GtkWidget *metaDataDialogCancelButton;
1108 GtkWidget *metaDataDialogApplyButton;
1109 GtkAccelGroup *accel_group;
1110 GtkTooltips *tooltips;
1111
1112 tooltips = gtk_tooltips_new ();
1113
1114 accel_group = gtk_accel_group_new ();
1115
1116 metaDataDialog = gtk_dialog_new ();
1117 gtk_widget_set_name (metaDataDialog, "metaDataDialog");
1118 gtk_window_set_title (GTK_WINDOW (metaDataDialog), _("Edit File Information"));
1119 gtk_window_set_modal (GTK_WINDOW (metaDataDialog), TRUE);
1120 metaDataDialog_icon_pixbuf = create_pixbuf ("info.png");
1121 if (metaDataDialog_icon_pixbuf)
1122 {
1123 gtk_window_set_icon (GTK_WINDOW (metaDataDialog), metaDataDialog_icon_pixbuf);
1124 gdk_pixbuf_unref (metaDataDialog_icon_pixbuf);
1125 }
1126 gtk_window_set_type_hint (GTK_WINDOW (metaDataDialog), GDK_WINDOW_TYPE_HINT_DIALOG);
1127
1128 dialog_vbox1 = GTK_DIALOG (metaDataDialog)->vbox;
1129 gtk_widget_set_name (dialog_vbox1, "dialog_vbox1");
1130 gtk_widget_show (dialog_vbox1);
1131
1132 label51 = gtk_label_new (_("Please provide meta-data and keywords for the content."));
1133 gtk_widget_set_name (label51, "label51");
1134 gtk_widget_show (label51);
1135 gtk_box_pack_start (GTK_BOX (dialog_vbox1), label51, FALSE, FALSE, 0);
1136 gtk_label_set_justify (GTK_LABEL (label51), GTK_JUSTIFY_CENTER);
1137 gtk_misc_set_padding (GTK_MISC (label51), 9, 5);
1138
1139 hbox6 = gtk_hbox_new (FALSE, 0);
1140 gtk_widget_set_name (hbox6, "hbox6");
1141 gtk_widget_show (hbox6);
1142 gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox6, FALSE, FALSE, 0);
1143
1144 label49 = gtk_label_new_with_mnemonic (_("_Type:"));
1145 gtk_widget_set_name (label49, "label49");
1146 gtk_widget_show (label49);
1147 gtk_box_pack_start (GTK_BOX (hbox6), label49, FALSE, FALSE, 0);
1148 gtk_misc_set_padding (GTK_MISC (label49), 5, 0);
1149
1150 optionmenu2 = gtk_option_menu_new ();
1151 gtk_widget_set_name (optionmenu2, "optionmenu2");
1152 gtk_widget_show (optionmenu2);
1153 gtk_box_pack_start (GTK_BOX (hbox6), optionmenu2, FALSE, FALSE, 0);
1154
1155 convertwidget30 = gtk_menu_new ();
1156 gtk_widget_set_name (convertwidget30, "convertwidget30");
1157
1158 convertwidget31 = gtk_menu_item_new_with_mnemonic (_("unknown"));
1159 gtk_widget_set_name (convertwidget31, "convertwidget31");
1160 gtk_widget_show (convertwidget31);
1161 gtk_container_add (GTK_CONTAINER (convertwidget30), convertwidget31);
1162
1163 gtk_option_menu_set_menu (GTK_OPTION_MENU (optionmenu2), convertwidget30);
1164
1165 label50 = gtk_label_new_with_mnemonic (_("_Value:"));
1166 gtk_widget_set_name (label50, "label50");
1167 gtk_widget_show (label50);
1168 gtk_box_pack_start (GTK_BOX (hbox6), label50, FALSE, FALSE, 0);
1169 gtk_label_set_justify (GTK_LABEL (label50), GTK_JUSTIFY_CENTER);
1170 gtk_misc_set_padding (GTK_MISC (label50), 5, 0);
1171
1172 metaDataDialogValueEntry = gtk_entry_new ();
1173 gtk_widget_set_name (metaDataDialogValueEntry, "metaDataDialogValueEntry");
1174 gtk_widget_show (metaDataDialogValueEntry);
1175 gtk_box_pack_start (GTK_BOX (hbox6), metaDataDialogValueEntry, TRUE, TRUE, 0);
1176 gtk_widget_add_accelerator (metaDataDialogValueEntry, "activate", accel_group,
1177 GDK_Return, 0,
1178 GTK_ACCEL_VISIBLE);
1179
1180 frame12 = gtk_frame_new (NULL);
1181 gtk_widget_set_name (frame12, "frame12");
1182 gtk_widget_show (frame12);
1183 gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame12, TRUE, TRUE, 0);
1184
1185 scrolledwindow10 = gtk_scrolled_window_new (NULL, NULL);
1186 gtk_widget_set_name (scrolledwindow10, "scrolledwindow10");
1187 gtk_widget_show (scrolledwindow10);
1188 gtk_container_add (GTK_CONTAINER (frame12), scrolledwindow10);
1189 GTK_WIDGET_UNSET_FLAGS (scrolledwindow10, GTK_CAN_FOCUS);
1190 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow10), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1191 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow10), GTK_SHADOW_IN);
1192
1193 metaDataDialogMetaDataList = gtk_tree_view_new ();
1194 gtk_widget_set_name (metaDataDialogMetaDataList, "metaDataDialogMetaDataList");
1195 gtk_widget_show (metaDataDialogMetaDataList);
1196 gtk_container_add (GTK_CONTAINER (scrolledwindow10), metaDataDialogMetaDataList);
1197 gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (metaDataDialogMetaDataList), TRUE);
1198
1199 label56 = gtk_label_new (_("Meta-data"));
1200 gtk_widget_set_name (label56, "label56");
1201 gtk_widget_show (label56);
1202 gtk_frame_set_label_widget (GTK_FRAME (frame12), label56);
1203
1204 hbox7 = gtk_hbox_new (FALSE, 0);
1205 gtk_widget_set_name (hbox7, "hbox7");
1206 gtk_widget_show (hbox7);
1207 gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox7, TRUE, TRUE, 0);
1208
1209 label47 = gtk_label_new_with_mnemonic (_("_Keyword:"));
1210 gtk_widget_set_name (label47, "label47");
1211 gtk_widget_show (label47);
1212 gtk_box_pack_start (GTK_BOX (hbox7), label47, FALSE, FALSE, 0);
1213 gtk_label_set_justify (GTK_LABEL (label47), GTK_JUSTIFY_CENTER);
1214 gtk_misc_set_padding (GTK_MISC (label47), 5, 0);
1215
1216 fileInformationKeywordEntry = gtk_entry_new ();
1217 gtk_widget_set_name (fileInformationKeywordEntry, "fileInformationKeywordEntry");
1218 gtk_widget_show (fileInformationKeywordEntry);
1219 gtk_box_pack_start (GTK_BOX (hbox7), fileInformationKeywordEntry, TRUE, TRUE, 0);
1220 gtk_widget_add_accelerator (fileInformationKeywordEntry, "activate", accel_group,
1221 GDK_Return, 0,
1222 GTK_ACCEL_VISIBLE);
1223
1224 metaDataDialogKeywordFrame = gtk_frame_new (NULL);
1225 gtk_widget_set_name (metaDataDialogKeywordFrame, "metaDataDialogKeywordFrame");
1226 gtk_widget_show (metaDataDialogKeywordFrame);
1227 gtk_box_pack_start (GTK_BOX (dialog_vbox1), metaDataDialogKeywordFrame, TRUE, TRUE, 0);
1228
1229 metaDataDialogKeywordScrolledWindow = gtk_scrolled_window_new (NULL, NULL);
1230 gtk_widget_set_name (metaDataDialogKeywordScrolledWindow, "metaDataDialogKeywordScrolledWindow");
1231 gtk_widget_show (metaDataDialogKeywordScrolledWindow);
1232 gtk_container_add (GTK_CONTAINER (metaDataDialogKeywordFrame), metaDataDialogKeywordScrolledWindow);
1233 GTK_WIDGET_UNSET_FLAGS (metaDataDialogKeywordScrolledWindow, GTK_CAN_FOCUS);
1234 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (metaDataDialogKeywordScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1235 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (metaDataDialogKeywordScrolledWindow), GTK_SHADOW_IN);
1236
1237 metaDataDialogKeywordList = gtk_tree_view_new ();
1238 gtk_widget_set_name (metaDataDialogKeywordList, "metaDataDialogKeywordList");
1239 gtk_widget_show (metaDataDialogKeywordList);
1240 gtk_container_add (GTK_CONTAINER (metaDataDialogKeywordScrolledWindow), metaDataDialogKeywordList);
1241 gtk_tooltips_set_tip (tooltips, metaDataDialogKeywordList, _("Select entries and use Delete button in order to delete keywords."), NULL);
1242 gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (metaDataDialogKeywordList), FALSE);
1243 gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (metaDataDialogKeywordList), TRUE);
1244
1245 label57 = gtk_label_new (_("Keywords"));
1246 gtk_widget_set_name (label57, "label57");
1247 gtk_widget_show (label57);
1248 gtk_frame_set_label_widget (GTK_FRAME (metaDataDialogKeywordFrame), label57);
1249
1250 dialog_action_area1 = GTK_DIALOG (metaDataDialog)->action_area;
1251 gtk_widget_set_name (dialog_action_area1, "dialog_action_area1");
1252 gtk_widget_show (dialog_action_area1);
1253 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_SPREAD);
1254
1255 metaDataDialogDeleteButton = gtk_button_new_from_stock ("gtk-delete");
1256 gtk_widget_set_name (metaDataDialogDeleteButton, "metaDataDialogDeleteButton");
1257 gtk_widget_show (metaDataDialogDeleteButton);
1258 gtk_dialog_add_action_widget (GTK_DIALOG (metaDataDialog), metaDataDialogDeleteButton, 0);
1259 gtk_widget_set_sensitive (metaDataDialogDeleteButton, FALSE);
1260 GTK_WIDGET_SET_FLAGS (metaDataDialogDeleteButton, GTK_CAN_DEFAULT);
1261 gtk_tooltips_set_tip (tooltips, metaDataDialogDeleteButton, _("Use this button to delete meta-data or keywords."), NULL);
1262 gtk_widget_add_accelerator (metaDataDialogDeleteButton, "activate", accel_group,
1263 GDK_Delete, 0,
1264 GTK_ACCEL_VISIBLE);
1265
1266 metaDataDialogCancelButton = gtk_button_new_from_stock ("gtk-cancel");
1267 gtk_widget_set_name (metaDataDialogCancelButton, "metaDataDialogCancelButton");
1268 gtk_widget_show (metaDataDialogCancelButton);
1269 gtk_dialog_add_action_widget (GTK_DIALOG (metaDataDialog), metaDataDialogCancelButton, GTK_RESPONSE_CANCEL);
1270 GTK_WIDGET_SET_FLAGS (metaDataDialogCancelButton, GTK_CAN_DEFAULT);
1271 gtk_widget_add_accelerator (metaDataDialogCancelButton, "activate", accel_group,
1272 GDK_Escape, 0,
1273 GTK_ACCEL_VISIBLE);
1274
1275 metaDataDialogApplyButton = gtk_button_new_from_stock ("gtk-apply");
1276 gtk_widget_set_name (metaDataDialogApplyButton, "metaDataDialogApplyButton");
1277 gtk_widget_show (metaDataDialogApplyButton);
1278 gtk_dialog_add_action_widget (GTK_DIALOG (metaDataDialog), metaDataDialogApplyButton, GTK_RESPONSE_APPLY);
1279 GTK_WIDGET_SET_FLAGS (metaDataDialogApplyButton, GTK_CAN_DEFAULT);
1280 gtk_widget_add_accelerator (metaDataDialogApplyButton, "activate", accel_group,
1281 GDK_A, GDK_MOD1_MASK,
1282 GTK_ACCEL_VISIBLE);
1283
1284 g_signal_connect ((gpointer) metaDataDialog, "close",
1285 G_CALLBACK (on_metaDataDialog_close),
1286 NULL);
1287 g_signal_connect_swapped ((gpointer) metaDataDialogValueEntry, "editing_done",
1288 G_CALLBACK (on_metaDataDialogValueEntry_editing_done),
1289 GTK_OBJECT (metaDataDialog));
1290 g_signal_connect_swapped ((gpointer) metaDataDialogValueEntry, "activate",
1291 G_CALLBACK (on_metaDataDialogValueEntry_editing_done),
1292 GTK_OBJECT (metaDataDialog));
1293 g_signal_connect_swapped ((gpointer) metaDataDialogMetaDataList, "select_cursor_row",
1294 G_CALLBACK (on_metaDataDialogMetaDataList_select_cursor_row),
1295 GTK_OBJECT (metaDataDialog));
1296 g_signal_connect_swapped ((gpointer) fileInformationKeywordEntry, "activate",
1297 G_CALLBACK (fileInformationKeywordEntry_activate),
1298 GTK_OBJECT (metaDataDialog));
1299 g_signal_connect_swapped ((gpointer) fileInformationKeywordEntry, "editing_done",
1300 G_CALLBACK (fileInformationKeywordEntry_activate),
1301 GTK_OBJECT (metaDataDialog));
1302 g_signal_connect_swapped ((gpointer) metaDataDialogKeywordList, "select_cursor_row",
1303 G_CALLBACK (on_metaDataDialogKeywordList_select_cursor_row),
1304 GTK_OBJECT (metaDataDialog));
1305 g_signal_connect ((gpointer) metaDataDialogDeleteButton, "activate",
1306 G_CALLBACK (on_metaDataDialogDeleteButton_activate),
1307 NULL);
1308 g_signal_connect_swapped ((gpointer) metaDataDialogCancelButton, "clicked",
1309 G_CALLBACK (gtk_widget_destroy),
1310 GTK_OBJECT (metaDataDialog));
1311 g_signal_connect_swapped ((gpointer) metaDataDialogCancelButton, "activate",
1312 G_CALLBACK (gtk_widget_destroy),
1313 GTK_OBJECT (metaDataDialog));
1314 g_signal_connect_swapped ((gpointer) metaDataDialogApplyButton, "clicked",
1315 G_CALLBACK (on_metaDataDialogApplyButton_clicked),
1316 GTK_OBJECT (metaDataDialog));
1317
1318 gtk_label_set_mnemonic_widget (GTK_LABEL (label49), optionmenu2);
1319 gtk_label_set_mnemonic_widget (GTK_LABEL (label50), metaDataDialogValueEntry);
1320 gtk_label_set_mnemonic_widget (GTK_LABEL (label47), fileInformationKeywordEntry);
1321
1322 atko = gtk_widget_get_accessible (metaDataDialog);
1323 atk_object_set_name (atko, _("Edit File Information"));
1324 atk_object_set_description (atko, _("This dialog is used to edit information about shared files."));
1325
1326 atko = gtk_widget_get_accessible (metaDataDialogValueEntry);
1327 atk_object_set_name (atko, _("Value Entry"));
1328 atk_object_set_description (atko, _("Enter the value for the meta-data of the specified type here.\nPress ENTER to add the data."));
1329
1330 atko = gtk_widget_get_accessible (metaDataDialogKeywordFrame);
1331 atk_object_set_description (atko, _("Lists all of the keywords that will be used."));
1332
1333 atko = gtk_widget_get_accessible (metaDataDialogDeleteButton);
1334 atk_object_set_name (atko, _("Delete button"));
1335
1336 atko = gtk_widget_get_accessible (metaDataDialogCancelButton);
1337 atk_object_set_name (atko, _("metaDataDialogCancelButton"));
1338 atk_object_set_description (atko, _("Abort the upload operation."));
1339
1340
1341 /* Store pointers to all widgets, for use by lookup_widget(). */
1342 GLADE_HOOKUP_OBJECT_NO_REF (metaDataDialog, metaDataDialog, "metaDataDialog");
1343 GLADE_HOOKUP_OBJECT_NO_REF (metaDataDialog, dialog_vbox1, "dialog_vbox1");
1344 GLADE_HOOKUP_OBJECT (metaDataDialog, label51, "label51");
1345 GLADE_HOOKUP_OBJECT (metaDataDialog, hbox6, "hbox6");
1346 GLADE_HOOKUP_OBJECT (metaDataDialog, label49, "label49");
1347 GLADE_HOOKUP_OBJECT (metaDataDialog, optionmenu2, "optionmenu2");
1348 GLADE_HOOKUP_OBJECT (metaDataDialog, convertwidget30, "convertwidget30");
1349 GLADE_HOOKUP_OBJECT (metaDataDialog, convertwidget31, "convertwidget31");
1350 GLADE_HOOKUP_OBJECT (metaDataDialog, label50, "label50");
1351 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogValueEntry, "metaDataDialogValueEntry");
1352 GLADE_HOOKUP_OBJECT (metaDataDialog, frame12, "frame12");
1353 GLADE_HOOKUP_OBJECT (metaDataDialog, scrolledwindow10, "scrolledwindow10");
1354 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogMetaDataList, "metaDataDialogMetaDataList");
1355 GLADE_HOOKUP_OBJECT (metaDataDialog, label56, "label56");
1356 GLADE_HOOKUP_OBJECT (metaDataDialog, hbox7, "hbox7");
1357 GLADE_HOOKUP_OBJECT (metaDataDialog, label47, "label47");
1358 GLADE_HOOKUP_OBJECT (metaDataDialog, fileInformationKeywordEntry, "fileInformationKeywordEntry");
1359 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogKeywordFrame, "metaDataDialogKeywordFrame");
1360 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogKeywordScrolledWindow, "metaDataDialogKeywordScrolledWindow");
1361 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogKeywordList, "metaDataDialogKeywordList");
1362 GLADE_HOOKUP_OBJECT (metaDataDialog, label57, "label57");
1363 GLADE_HOOKUP_OBJECT_NO_REF (metaDataDialog, dialog_action_area1, "dialog_action_area1");
1364 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogDeleteButton, "metaDataDialogDeleteButton");
1365 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogCancelButton, "metaDataDialogCancelButton");
1366 GLADE_HOOKUP_OBJECT (metaDataDialog, metaDataDialogApplyButton, "metaDataDialogApplyButton");
1367 GLADE_HOOKUP_OBJECT_NO_REF (metaDataDialog, tooltips, "tooltips");
1368
1369 gtk_window_add_accel_group (GTK_WINDOW (metaDataDialog), accel_group);
1370
1371 return metaDataDialog;
1372}
1373
1374GtkWidget*
1375create_metaDisplayDialog (void)
1376{
1377 GtkWidget *metaDisplayDialog;
1378 GdkPixbuf *metaDisplayDialog_icon_pixbuf;
1379 GtkWidget *dialog_vbox2;
1380 GtkWidget *frame14;
1381 GtkWidget *scrolledwindow12;
1382 GtkWidget *clist10;
1383 GtkWidget *label58;
1384 GtkWidget *dialog_action_area2;
1385 GtkWidget *fileInformationDoneButton;
1386 GtkAccelGroup *accel_group;
1387
1388 accel_group = gtk_accel_group_new ();
1389
1390 metaDisplayDialog = gtk_dialog_new ();
1391 gtk_widget_set_name (metaDisplayDialog, "metaDisplayDialog");
1392 gtk_window_set_title (GTK_WINDOW (metaDisplayDialog), _("File Information"));
1393 gtk_window_set_modal (GTK_WINDOW (metaDisplayDialog), TRUE);
1394 metaDisplayDialog_icon_pixbuf = create_pixbuf ("info.png");
1395 if (metaDisplayDialog_icon_pixbuf)
1396 {
1397 gtk_window_set_icon (GTK_WINDOW (metaDisplayDialog), metaDisplayDialog_icon_pixbuf);
1398 gdk_pixbuf_unref (metaDisplayDialog_icon_pixbuf);
1399 }
1400 gtk_window_set_type_hint (GTK_WINDOW (metaDisplayDialog), GDK_WINDOW_TYPE_HINT_DIALOG);
1401
1402 dialog_vbox2 = GTK_DIALOG (metaDisplayDialog)->vbox;
1403 gtk_widget_set_name (dialog_vbox2, "dialog_vbox2");
1404 gtk_widget_show (dialog_vbox2);
1405
1406 frame14 = gtk_frame_new (NULL);
1407 gtk_widget_set_name (frame14, "frame14");
1408 gtk_widget_show (frame14);
1409 gtk_box_pack_start (GTK_BOX (dialog_vbox2), frame14, TRUE, TRUE, 0);
1410
1411 scrolledwindow12 = gtk_scrolled_window_new (NULL, NULL);
1412 gtk_widget_set_name (scrolledwindow12, "scrolledwindow12");
1413 gtk_widget_show (scrolledwindow12);
1414 gtk_container_add (GTK_CONTAINER (frame14), scrolledwindow12);
1415 GTK_WIDGET_UNSET_FLAGS (scrolledwindow12, GTK_CAN_FOCUS);
1416 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1417 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_SHADOW_IN);
1418
1419 clist10 = gtk_tree_view_new ();
1420 gtk_widget_set_name (clist10, "clist10");
1421 gtk_widget_show (clist10);
1422 gtk_container_add (GTK_CONTAINER (scrolledwindow12), clist10);
1423
1424 label58 = gtk_label_new (_("Meta-data"));
1425 gtk_widget_set_name (label58, "label58");
1426 gtk_widget_show (label58);
1427 gtk_frame_set_label_widget (GTK_FRAME (frame14), label58);
1428
1429 dialog_action_area2 = GTK_DIALOG (metaDisplayDialog)->action_area;
1430 gtk_widget_set_name (dialog_action_area2, "dialog_action_area2");
1431 gtk_widget_show (dialog_action_area2);
1432 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
1433
1434 fileInformationDoneButton = gtk_button_new_from_stock ("gtk-ok");
1435 gtk_widget_set_name (fileInformationDoneButton, "fileInformationDoneButton");
1436 gtk_widget_show (fileInformationDoneButton);
1437 gtk_dialog_add_action_widget (GTK_DIALOG (metaDisplayDialog), fileInformationDoneButton, GTK_RESPONSE_OK);
1438 gtk_widget_add_accelerator (fileInformationDoneButton, "activate", accel_group,
1439 GDK_Escape, 0,
1440 GTK_ACCEL_VISIBLE);
1441 gtk_widget_add_accelerator (fileInformationDoneButton, "activate", accel_group,
1442 GDK_Return, 0,
1443 GTK_ACCEL_VISIBLE);
1444
1445 g_signal_connect_swapped ((gpointer) fileInformationDoneButton, "clicked",
1446 G_CALLBACK (gtk_widget_destroy),
1447 GTK_OBJECT (metaDisplayDialog));
1448 g_signal_connect_swapped ((gpointer) fileInformationDoneButton, "activate",
1449 G_CALLBACK (gtk_widget_destroy),
1450 GTK_OBJECT (metaDisplayDialog));
1451
1452 /* Store pointers to all widgets, for use by lookup_widget(). */
1453 GLADE_HOOKUP_OBJECT_NO_REF (metaDisplayDialog, metaDisplayDialog, "metaDisplayDialog");
1454 GLADE_HOOKUP_OBJECT_NO_REF (metaDisplayDialog, dialog_vbox2, "dialog_vbox2");
1455 GLADE_HOOKUP_OBJECT (metaDisplayDialog, frame14, "frame14");
1456 GLADE_HOOKUP_OBJECT (metaDisplayDialog, scrolledwindow12, "scrolledwindow12");
1457 GLADE_HOOKUP_OBJECT (metaDisplayDialog, clist10, "clist10");
1458 GLADE_HOOKUP_OBJECT (metaDisplayDialog, label58, "label58");
1459 GLADE_HOOKUP_OBJECT_NO_REF (metaDisplayDialog, dialog_action_area2, "dialog_action_area2");
1460 GLADE_HOOKUP_OBJECT (metaDisplayDialog, fileInformationDoneButton, "fileInformationDoneButton");
1461
1462 gtk_window_add_accel_group (GTK_WINDOW (metaDisplayDialog), accel_group);
1463
1464 return metaDisplayDialog;
1465}
1466
1467GtkWidget*
1468create_searchResultsFrame (void)
1469{
1470 GtkWidget *searchResultsFrame;
1471 GtkWidget *scrolledwindow14;
1472 GtkWidget *viewport5;
1473 GtkWidget *vbox11;
1474 GtkWidget *scrolledwindow15;
1475 GtkWidget *searchResults;
1476 GtkWidget *downloadButton;
1477 GtkWidget *alignment3;
1478 GtkWidget *hbox13;
1479 GtkWidget *image3;
1480 GtkWidget *label65;
1481 GtkAccelGroup *accel_group;
1482
1483 accel_group = gtk_accel_group_new ();
1484
1485 searchResultsFrame = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1486 gtk_widget_set_name (searchResultsFrame, "searchResultsFrame");
1487 gtk_window_set_title (GTK_WINDOW (searchResultsFrame), _("Search Results"));
1488
1489 scrolledwindow14 = gtk_scrolled_window_new (NULL, NULL);
1490 gtk_widget_set_name (scrolledwindow14, "scrolledwindow14");
1491 gtk_widget_show (scrolledwindow14);
1492 gtk_container_add (GTK_CONTAINER (searchResultsFrame), scrolledwindow14);
1493 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow14), GTK_POLICY_NEVER, GTK_POLICY_NEVER);
1494
1495 viewport5 = gtk_viewport_new (NULL, NULL);
1496 gtk_widget_set_name (viewport5, "viewport5");
1497 gtk_widget_show (viewport5);
1498 gtk_container_add (GTK_CONTAINER (scrolledwindow14), viewport5);
1499
1500 vbox11 = gtk_vbox_new (FALSE, 0);
1501 gtk_widget_set_name (vbox11, "vbox11");
1502 gtk_widget_show (vbox11);
1503 gtk_container_add (GTK_CONTAINER (viewport5), vbox11);
1504
1505 scrolledwindow15 = gtk_scrolled_window_new (NULL, NULL);
1506 gtk_widget_set_name (scrolledwindow15, "scrolledwindow15");
1507 gtk_widget_show (scrolledwindow15);
1508 gtk_box_pack_start (GTK_BOX (vbox11), scrolledwindow15, TRUE, TRUE, 0);
1509 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow15), GTK_SHADOW_IN);
1510
1511 searchResults = gtk_tree_view_new ();
1512 gtk_widget_set_name (searchResults, "searchResults");
1513 gtk_widget_show (searchResults);
1514 gtk_container_add (GTK_CONTAINER (scrolledwindow15), searchResults);
1515
1516 downloadButton = gtk_button_new ();
1517 gtk_widget_set_name (downloadButton, "downloadButton");
1518 gtk_widget_show (downloadButton);
1519 gtk_box_pack_start (GTK_BOX (vbox11), downloadButton, FALSE, FALSE, 0);
1520 gtk_widget_add_accelerator (downloadButton, "activate", accel_group,
1521 GDK_Return, GDK_CONTROL_MASK,
1522 GTK_ACCEL_VISIBLE);
1523
1524 alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
1525 gtk_widget_set_name (alignment3, "alignment3");
1526 gtk_widget_show (alignment3);
1527 gtk_container_add (GTK_CONTAINER (downloadButton), alignment3);
1528
1529 hbox13 = gtk_hbox_new (FALSE, 2);
1530 gtk_widget_set_name (hbox13, "hbox13");
1531 gtk_widget_show (hbox13);
1532 gtk_container_add (GTK_CONTAINER (alignment3), hbox13);
1533
1534 image3 = gtk_image_new_from_stock ("gtk-copy", GTK_ICON_SIZE_BUTTON);
1535 gtk_widget_set_name (image3, "image3");
1536 gtk_widget_show (image3);
1537 gtk_box_pack_start (GTK_BOX (hbox13), image3, FALSE, FALSE, 0);
1538
1539 label65 = gtk_label_new_with_mnemonic (_("_Download"));
1540 gtk_widget_set_name (label65, "label65");
1541 gtk_widget_show (label65);
1542 gtk_box_pack_start (GTK_BOX (hbox13), label65, FALSE, FALSE, 0);
1543
1544 g_signal_connect_swapped ((gpointer) downloadButton, "clicked",
1545 G_CALLBACK (on_downloadButton_clicked),
1546 GTK_OBJECT (searchResults));
1547
1548 /* Store pointers to all widgets, for use by lookup_widget(). */
1549 GLADE_HOOKUP_OBJECT_NO_REF (searchResultsFrame, searchResultsFrame, "searchResultsFrame");
1550 GLADE_HOOKUP_OBJECT (searchResultsFrame, scrolledwindow14, "scrolledwindow14");
1551 GLADE_HOOKUP_OBJECT (searchResultsFrame, viewport5, "viewport5");
1552 GLADE_HOOKUP_OBJECT (searchResultsFrame, vbox11, "vbox11");
1553 GLADE_HOOKUP_OBJECT (searchResultsFrame, scrolledwindow15, "scrolledwindow15");
1554 GLADE_HOOKUP_OBJECT (searchResultsFrame, searchResults, "searchResults");
1555 GLADE_HOOKUP_OBJECT (searchResultsFrame, downloadButton, "downloadButton");
1556 GLADE_HOOKUP_OBJECT (searchResultsFrame, alignment3, "alignment3");
1557 GLADE_HOOKUP_OBJECT (searchResultsFrame, hbox13, "hbox13");
1558 GLADE_HOOKUP_OBJECT (searchResultsFrame, image3, "image3");
1559 GLADE_HOOKUP_OBJECT (searchResultsFrame, label65, "label65");
1560
1561 gtk_window_add_accel_group (GTK_WINDOW (searchResultsFrame), accel_group);
1562
1563 return searchResultsFrame;
1564}
1565
1566GtkWidget*
1567create_namespaceContentFrame (void)
1568{
1569 GtkWidget *namespaceContentFrame;
1570 GtkWidget *vbox12;
1571 GtkWidget *scrolledwindow16;
1572 GtkWidget *namespaceContentFrameTreeView;
1573 GtkWidget *hbox14;
1574 GtkWidget *namespaceInsertButton;
1575 GtkWidget *alignment4;
1576 GtkWidget *hbox15;
1577 GtkWidget *image4;
1578 GtkWidget *label66;
1579 GtkWidget *namespaceUpdateButton;
1580 GtkWidget *alignment5;
1581 GtkWidget *hbox16;
1582 GtkWidget *image5;
1583 GtkWidget *label67;
1584
1585 namespaceContentFrame = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1586 gtk_widget_set_name (namespaceContentFrame, "namespaceContentFrame");
1587 gtk_window_set_title (GTK_WINDOW (namespaceContentFrame), _("Namespace Contents"));
1588
1589 vbox12 = gtk_vbox_new (FALSE, 0);
1590 gtk_widget_set_name (vbox12, "vbox12");
1591 gtk_widget_show (vbox12);
1592 gtk_container_add (GTK_CONTAINER (namespaceContentFrame), vbox12);
1593
1594 scrolledwindow16 = gtk_scrolled_window_new (NULL, NULL);
1595 gtk_widget_set_name (scrolledwindow16, "scrolledwindow16");
1596 gtk_widget_show (scrolledwindow16);
1597 gtk_box_pack_start (GTK_BOX (vbox12), scrolledwindow16, TRUE, TRUE, 0);
1598 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_SHADOW_IN);
1599
1600 namespaceContentFrameTreeView = gtk_tree_view_new ();
1601 gtk_widget_set_name (namespaceContentFrameTreeView, "namespaceContentFrameTreeView");
1602 gtk_widget_show (namespaceContentFrameTreeView);
1603 gtk_container_add (GTK_CONTAINER (scrolledwindow16), namespaceContentFrameTreeView);
1604
1605 hbox14 = gtk_hbox_new (FALSE, 0);
1606 gtk_widget_set_name (hbox14, "hbox14");
1607 gtk_widget_show (hbox14);
1608 gtk_box_pack_start (GTK_BOX (vbox12), hbox14, TRUE, TRUE, 0);
1609
1610 namespaceInsertButton = gtk_button_new ();
1611 gtk_widget_set_name (namespaceInsertButton, "namespaceInsertButton");
1612 gtk_widget_show (namespaceInsertButton);
1613 gtk_box_pack_start (GTK_BOX (hbox14), namespaceInsertButton, TRUE, TRUE, 0);
1614
1615 alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
1616 gtk_widget_set_name (alignment4, "alignment4");
1617 gtk_widget_show (alignment4);
1618 gtk_container_add (GTK_CONTAINER (namespaceInsertButton), alignment4);
1619
1620 hbox15 = gtk_hbox_new (FALSE, 2);
1621 gtk_widget_set_name (hbox15, "hbox15");
1622 gtk_widget_show (hbox15);
1623 gtk_container_add (GTK_CONTAINER (alignment4), hbox15);
1624
1625 image4 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_BUTTON);
1626 gtk_widget_set_name (image4, "image4");
1627 gtk_widget_show (image4);
1628 gtk_box_pack_start (GTK_BOX (hbox15), image4, FALSE, FALSE, 0);
1629
1630 label66 = gtk_label_new_with_mnemonic (_("_Insert"));
1631 gtk_widget_set_name (label66, "label66");
1632 gtk_widget_show (label66);
1633 gtk_box_pack_start (GTK_BOX (hbox15), label66, FALSE, FALSE, 0);
1634
1635 namespaceUpdateButton = gtk_button_new ();
1636 gtk_widget_set_name (namespaceUpdateButton, "namespaceUpdateButton");
1637 gtk_widget_show (namespaceUpdateButton);
1638 gtk_box_pack_start (GTK_BOX (hbox14), namespaceUpdateButton, TRUE, TRUE, 0);
1639 gtk_widget_set_sensitive (namespaceUpdateButton, FALSE);
1640 gtk_button_set_focus_on_click (GTK_BUTTON (namespaceUpdateButton), FALSE);
1641
1642 alignment5 = gtk_alignment_new (0.5, 0.5, 0, 0);
1643 gtk_widget_set_name (alignment5, "alignment5");
1644 gtk_widget_show (alignment5);
1645 gtk_container_add (GTK_CONTAINER (namespaceUpdateButton), alignment5);
1646 gtk_widget_set_sensitive (alignment5, FALSE);
1647
1648 hbox16 = gtk_hbox_new (FALSE, 2);
1649 gtk_widget_set_name (hbox16, "hbox16");
1650 gtk_widget_show (hbox16);
1651 gtk_container_add (GTK_CONTAINER (alignment5), hbox16);
1652
1653 image5 = gtk_image_new_from_stock ("gtk-redo", GTK_ICON_SIZE_BUTTON);
1654 gtk_widget_set_name (image5, "image5");
1655 gtk_widget_show (image5);
1656 gtk_box_pack_start (GTK_BOX (hbox16), image5, FALSE, FALSE, 0);
1657
1658 label67 = gtk_label_new_with_mnemonic (_("_Update"));
1659 gtk_widget_set_name (label67, "label67");
1660 gtk_widget_show (label67);
1661 gtk_box_pack_start (GTK_BOX (hbox16), label67, FALSE, FALSE, 0);
1662
1663 g_signal_connect_swapped ((gpointer) namespaceContentFrameTreeView, "select_cursor_row",
1664 G_CALLBACK (on_namespaceContentFrameTreeView_select_cursor_row),
1665 GTK_OBJECT (namespaceContentFrame));
1666 g_signal_connect_swapped ((gpointer) namespaceInsertButton, "clicked",
1667 G_CALLBACK (on_namespaceInsertButton_activate),
1668 GTK_OBJECT (namespaceContentFrame));
1669 g_signal_connect_swapped ((gpointer) namespaceUpdateButton, "clicked",
1670 G_CALLBACK (on_namespaceUpdateButton_clicked),
1671 GTK_OBJECT (namespaceContentFrameTreeView));
1672
1673 /* Store pointers to all widgets, for use by lookup_widget(). */
1674 GLADE_HOOKUP_OBJECT_NO_REF (namespaceContentFrame, namespaceContentFrame, "namespaceContentFrame");
1675 GLADE_HOOKUP_OBJECT (namespaceContentFrame, vbox12, "vbox12");
1676 GLADE_HOOKUP_OBJECT (namespaceContentFrame, scrolledwindow16, "scrolledwindow16");
1677 GLADE_HOOKUP_OBJECT (namespaceContentFrame, namespaceContentFrameTreeView, "namespaceContentFrameTreeView");
1678 GLADE_HOOKUP_OBJECT (namespaceContentFrame, hbox14, "hbox14");
1679 GLADE_HOOKUP_OBJECT (namespaceContentFrame, namespaceInsertButton, "namespaceInsertButton");
1680 GLADE_HOOKUP_OBJECT (namespaceContentFrame, alignment4, "alignment4");
1681 GLADE_HOOKUP_OBJECT (namespaceContentFrame, hbox15, "hbox15");
1682 GLADE_HOOKUP_OBJECT (namespaceContentFrame, image4, "image4");
1683 GLADE_HOOKUP_OBJECT (namespaceContentFrame, label66, "label66");
1684 GLADE_HOOKUP_OBJECT (namespaceContentFrame, namespaceUpdateButton, "namespaceUpdateButton");
1685 GLADE_HOOKUP_OBJECT (namespaceContentFrame, alignment5, "alignment5");
1686 GLADE_HOOKUP_OBJECT (namespaceContentFrame, hbox16, "hbox16");
1687 GLADE_HOOKUP_OBJECT (namespaceContentFrame, image5, "image5");
1688 GLADE_HOOKUP_OBJECT (namespaceContentFrame, label67, "label67");
1689
1690 return namespaceContentFrame;
1691}
1692
1693GtkWidget*
1694create_chatFrame (void)
1695{
1696 GtkWidget *chatFrame;
1697 GtkWidget *hbox17;
1698 GtkWidget *vbox13;
1699 GtkWidget *scrolledwindow18;
1700 GtkWidget *chatLogViewer;
1701 GtkWidget *hbox18;
1702 GtkWidget *chatLineTextEntry;
1703 GtkWidget *chatSendButton;
1704 GtkWidget *alignment6;
1705 GtkWidget *hbox19;
1706 GtkWidget *image6;
1707 GtkWidget *label69;
1708 GtkWidget *scrolledwindow17;
1709 GtkWidget *treeview3;
1710 GtkAccelGroup *accel_group;
1711
1712 accel_group = gtk_accel_group_new ();
1713
1714 chatFrame = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1715 gtk_widget_set_name (chatFrame, "chatFrame");
1716 gtk_window_set_title (GTK_WINDOW (chatFrame), _("Chat"));
1717
1718 hbox17 = gtk_hbox_new (FALSE, 0);
1719 gtk_widget_set_name (hbox17, "hbox17");
1720 gtk_widget_show (hbox17);
1721 gtk_container_add (GTK_CONTAINER (chatFrame), hbox17);
1722
1723 vbox13 = gtk_vbox_new (FALSE, 0);
1724 gtk_widget_set_name (vbox13, "vbox13");
1725 gtk_widget_show (vbox13);
1726 gtk_box_pack_start (GTK_BOX (hbox17), vbox13, TRUE, TRUE, 0);
1727
1728 scrolledwindow18 = gtk_scrolled_window_new (NULL, NULL);
1729 gtk_widget_set_name (scrolledwindow18, "scrolledwindow18");
1730 gtk_widget_show (scrolledwindow18);
1731 gtk_box_pack_start (GTK_BOX (vbox13), scrolledwindow18, TRUE, TRUE, 0);
1732 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow18), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1733 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow18), GTK_SHADOW_IN);
1734
1735 chatLogViewer = gtk_text_view_new ();
1736 gtk_widget_set_name (chatLogViewer, "chatLogViewer");
1737 gtk_widget_show (chatLogViewer);
1738 gtk_container_add (GTK_CONTAINER (scrolledwindow18), chatLogViewer);
1739
1740 hbox18 = gtk_hbox_new (FALSE, 0);
1741 gtk_widget_set_name (hbox18, "hbox18");
1742 gtk_widget_show (hbox18);
1743 gtk_box_pack_start (GTK_BOX (vbox13), hbox18, FALSE, FALSE, 0);
1744
1745 chatLineTextEntry = gtk_combo_box_entry_new_text ();
1746 gtk_widget_set_name (chatLineTextEntry, "chatLineTextEntry");
1747 gtk_widget_show (chatLineTextEntry);
1748 gtk_box_pack_start (GTK_BOX (hbox18), chatLineTextEntry, TRUE, TRUE, 0);
1749 gtk_combo_box_append_text (GTK_COMBO_BOX (chatLineTextEntry), _("/join #gnunet"));
1750
1751 chatSendButton = gtk_button_new ();
1752 gtk_widget_set_name (chatSendButton, "chatSendButton");
1753 gtk_widget_show (chatSendButton);
1754 gtk_box_pack_start (GTK_BOX (hbox18), chatSendButton, FALSE, FALSE, 0);
1755 gtk_widget_add_accelerator (chatSendButton, "activate", accel_group,
1756 GDK_Return, GDK_CONTROL_MASK,
1757 GTK_ACCEL_VISIBLE);
1758
1759 alignment6 = gtk_alignment_new (0.5, 0.5, 0, 0);
1760 gtk_widget_set_name (alignment6, "alignment6");
1761 gtk_widget_show (alignment6);
1762 gtk_container_add (GTK_CONTAINER (chatSendButton), alignment6);
1763
1764 hbox19 = gtk_hbox_new (FALSE, 2);
1765 gtk_widget_set_name (hbox19, "hbox19");
1766 gtk_widget_show (hbox19);
1767 gtk_container_add (GTK_CONTAINER (alignment6), hbox19);
1768
1769 image6 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON);
1770 gtk_widget_set_name (image6, "image6");
1771 gtk_widget_show (image6);
1772 gtk_box_pack_start (GTK_BOX (hbox19), image6, FALSE, FALSE, 0);
1773
1774 label69 = gtk_label_new_with_mnemonic (_("Senden"));
1775 gtk_widget_set_name (label69, "label69");
1776 gtk_widget_show (label69);
1777 gtk_box_pack_start (GTK_BOX (hbox19), label69, FALSE, FALSE, 0);
1778
1779 scrolledwindow17 = gtk_scrolled_window_new (NULL, NULL);
1780 gtk_widget_set_name (scrolledwindow17, "scrolledwindow17");
1781 gtk_widget_show (scrolledwindow17);
1782 gtk_box_pack_start (GTK_BOX (hbox17), scrolledwindow17, TRUE, TRUE, 0);
1783 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow17), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1784 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow17), GTK_SHADOW_IN);
1785
1786 treeview3 = gtk_tree_view_new ();
1787 gtk_widget_set_name (treeview3, "treeview3");
1788 gtk_widget_show (treeview3);
1789 gtk_container_add (GTK_CONTAINER (scrolledwindow17), treeview3);
1790
1791 g_signal_connect ((gpointer) chatLineTextEntry, "editing_done",
1792 G_CALLBACK (on_chatLineTextEntry_editing_done),
1793 NULL);
1794 g_signal_connect_swapped ((gpointer) chatSendButton, "activate",
1795 G_CALLBACK (on_chatSendButton_clicked),
1796 GTK_OBJECT (chatFrame));
1797 g_signal_connect_swapped ((gpointer) chatSendButton, "clicked",
1798 G_CALLBACK (on_chatSendButton_clicked),
1799 GTK_OBJECT (chatFrame));
1800
1801 /* Store pointers to all widgets, for use by lookup_widget(). */
1802 GLADE_HOOKUP_OBJECT_NO_REF (chatFrame, chatFrame, "chatFrame");
1803 GLADE_HOOKUP_OBJECT (chatFrame, hbox17, "hbox17");
1804 GLADE_HOOKUP_OBJECT (chatFrame, vbox13, "vbox13");
1805 GLADE_HOOKUP_OBJECT (chatFrame, scrolledwindow18, "scrolledwindow18");
1806 GLADE_HOOKUP_OBJECT (chatFrame, chatLogViewer, "chatLogViewer");
1807 GLADE_HOOKUP_OBJECT (chatFrame, hbox18, "hbox18");
1808 GLADE_HOOKUP_OBJECT (chatFrame, chatLineTextEntry, "chatLineTextEntry");
1809 GLADE_HOOKUP_OBJECT (chatFrame, chatSendButton, "chatSendButton");
1810 GLADE_HOOKUP_OBJECT (chatFrame, alignment6, "alignment6");
1811 GLADE_HOOKUP_OBJECT (chatFrame, hbox19, "hbox19");
1812 GLADE_HOOKUP_OBJECT (chatFrame, image6, "image6");
1813 GLADE_HOOKUP_OBJECT (chatFrame, label69, "label69");
1814 GLADE_HOOKUP_OBJECT (chatFrame, scrolledwindow17, "scrolledwindow17");
1815 GLADE_HOOKUP_OBJECT (chatFrame, treeview3, "treeview3");
1816
1817 gtk_window_add_accel_group (GTK_WINDOW (chatFrame), accel_group);
1818
1819 return chatFrame;
1820}
1821
diff --git a/src/interface.h b/src/interface.h
deleted file mode 100644
index ef9d92a1..00000000
--- a/src/interface.h
+++ /dev/null
@@ -1,10 +0,0 @@
1/*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5GtkWidget* create_mainWindow (void);
6GtkWidget* create_metaDataDialog (void);
7GtkWidget* create_metaDisplayDialog (void);
8GtkWidget* create_searchResultsFrame (void);
9GtkWidget* create_namespaceContentFrame (void);
10GtkWidget* create_chatFrame (void);
diff --git a/src/support.c b/src/support.c
deleted file mode 100644
index 00aff298..00000000
--- a/src/support.c
+++ /dev/null
@@ -1,144 +0,0 @@
1/*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5#ifdef HAVE_CONFIG_H
6# include <config.h>
7#endif
8
9#include <sys/types.h>
10#include <sys/stat.h>
11#include <unistd.h>
12#include <string.h>
13#include <stdio.h>
14
15#include <gtk/gtk.h>
16
17#include "support.h"
18
19GtkWidget*
20lookup_widget (GtkWidget *widget,
21 const gchar *widget_name)
22{
23 GtkWidget *parent, *found_widget;
24
25 for (;;)
26 {
27 if (GTK_IS_MENU (widget))
28 parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
29 else
30 parent = widget->parent;
31 if (!parent)
32 parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
33 if (parent == NULL)
34 break;
35 widget = parent;
36 }
37
38 found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
39 widget_name);
40 if (!found_widget)
41 g_warning ("Widget not found: %s", widget_name);
42 return found_widget;
43}
44
45static GList *pixmaps_directories = NULL;
46
47/* Use this function to set the directory containing installed pixmaps. */
48void
49add_pixmap_directory (const gchar *directory)
50{
51 pixmaps_directories = g_list_prepend (pixmaps_directories,
52 g_strdup (directory));
53}
54
55/* This is an internally used function to find pixmap files. */
56static gchar*
57find_pixmap_file (const gchar *filename)
58{
59 GList *elem;
60
61 /* We step through each of the pixmaps directory to find it. */
62 elem = pixmaps_directories;
63 while (elem)
64 {
65 gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data,
66 G_DIR_SEPARATOR_S, filename);
67 if (g_file_test (pathname, G_FILE_TEST_EXISTS))
68 return pathname;
69 g_free (pathname);
70 elem = elem->next;
71 }
72 return NULL;
73}
74
75/* This is an internally used function to create pixmaps. */
76GtkWidget*
77create_pixmap (GtkWidget *widget,
78 const gchar *filename)
79{
80 gchar *pathname = NULL;
81 GtkWidget *pixmap;
82
83 if (!filename || !filename[0])
84 return gtk_image_new ();
85
86 pathname = find_pixmap_file (filename);
87
88 if (!pathname)
89 {
90 g_warning (_("Couldn't find pixmap file: %s"), filename);
91 return gtk_image_new ();
92 }
93
94 pixmap = gtk_image_new_from_file (pathname);
95 g_free (pathname);
96 return pixmap;
97}
98
99/* This is an internally used function to create pixmaps. */
100GdkPixbuf*
101create_pixbuf (const gchar *filename)
102{
103 gchar *pathname = NULL;
104 GdkPixbuf *pixbuf;
105 GError *error = NULL;
106
107 if (!filename || !filename[0])
108 return NULL;
109
110 pathname = find_pixmap_file (filename);
111
112 if (!pathname)
113 {
114 g_warning (_("Couldn't find pixmap file: %s"), filename);
115 return NULL;
116 }
117
118 pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
119 if (!pixbuf)
120 {
121 fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
122 pathname, error->message);
123 g_error_free (error);
124 }
125 g_free (pathname);
126 return pixbuf;
127}
128
129/* This is used to set ATK action descriptions. */
130void
131glade_set_atk_action_description (AtkAction *action,
132 const gchar *action_name,
133 const gchar *description)
134{
135 gint n_actions, i;
136
137 n_actions = atk_action_get_n_actions (action);
138 for (i = 0; i < n_actions; i++)
139 {
140 if (!strcmp (atk_action_get_name (action, i), action_name))
141 atk_action_set_description (action, i, description);
142 }
143}
144
diff --git a/src/support.h b/src/support.h
deleted file mode 100644
index a32649e5..00000000
--- a/src/support.h
+++ /dev/null
@@ -1,69 +0,0 @@
1/*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5#ifdef HAVE_CONFIG_H
6# include <config.h>
7#endif
8
9#include <gtk/gtk.h>
10
11/*
12 * Standard gettext macros.
13 */
14#ifdef ENABLE_NLS
15# include <libintl.h>
16# undef _
17# define _(String) dgettext (PACKAGE, String)
18# define Q_(String) g_strip_context ((String), gettext (String))
19# ifdef gettext_noop
20# define N_(String) gettext_noop (String)
21# else
22# define N_(String) (String)
23# endif
24#else
25# define textdomain(String) (String)
26# define gettext(String) (String)
27# define dgettext(Domain,Message) (Message)
28# define dcgettext(Domain,Message,Type) (Message)
29# define bindtextdomain(Domain,Directory) (Domain)
30# define _(String) (String)
31# define Q_(String) g_strip_context ((String), (String))
32# define N_(String) (String)
33#endif
34
35
36/*
37 * Public Functions.
38 */
39
40/*
41 * This function returns a widget in a component created by Glade.
42 * Call it with the toplevel widget in the component (i.e. a window/dialog),
43 * or alternatively any widget in the component, and the name of the widget
44 * you want returned.
45 */
46GtkWidget* lookup_widget (GtkWidget *widget,
47 const gchar *widget_name);
48
49
50/* Use this function to set the directory containing installed pixmaps. */
51void add_pixmap_directory (const gchar *directory);
52
53
54/*
55 * Private Functions.
56 */
57
58/* This is used to create the pixmaps used in the interface. */
59GtkWidget* create_pixmap (GtkWidget *widget,
60 const gchar *filename);
61
62/* This is used to create the pixbufs used in the interface. */
63GdkPixbuf* create_pixbuf (const gchar *filename);
64
65/* This is used to set ATK action descriptions. */
66void glade_set_atk_action_description (AtkAction *action,
67 const gchar *action_name,
68 const gchar *description);
69