diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-03 13:00:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-03 13:00:07 +0000 |
commit | e5c0b2f9dd3d466879d4609aece439f2e843445f (patch) | |
tree | 4e3a857f5311cf72de2432d0059f8095c580a2ec | |
parent | 15b40d9715f65f923c0bb4fd0762e61b1c007ce9 (diff) | |
download | gnunet-gtk-e5c0b2f9dd3d466879d4609aece439f2e843445f.tar.gz gnunet-gtk-e5c0b2f9dd3d466879d4609aece439f2e843445f.zip |
-adding build system basics for stream library
-rw-r--r-- | src/fs/gnunet-fs-gtk_event-handler.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c index 93e5c27a..bd2378e1 100644 --- a/src/fs/gnunet-fs-gtk_event-handler.c +++ b/src/fs/gnunet-fs-gtk_event-handler.c | |||
@@ -2262,8 +2262,9 @@ handle_publish_stop (struct PublishEntry *pe) | |||
2262 | * @param button the stop button | 2262 | * @param button the stop button |
2263 | * @param user_data the 'struct PublishTab' that is being closed | 2263 | * @param user_data the 'struct PublishTab' that is being closed |
2264 | */ | 2264 | */ |
2265 | static void | 2265 | void |
2266 | stop_publishing (GtkButton * button, gpointer user_data) | 2266 | GNUNET_FS_GTK_publish_label_close_button_clicked (GtkButton * button, |
2267 | gpointer user_data) | ||
2267 | { | 2268 | { |
2268 | struct PublishTab *tab = user_data; | 2269 | struct PublishTab *tab = user_data; |
2269 | struct PublishEntry *ent; | 2270 | struct PublishEntry *ent; |
@@ -2325,7 +2326,6 @@ setup_publish (struct GNUNET_FS_PublishContext *pc, const char *fn, | |||
2325 | GtkTreePath *path; | 2326 | GtkTreePath *path; |
2326 | GtkWindow *df; | 2327 | GtkWindow *df; |
2327 | GtkWidget *tab_label; | 2328 | GtkWidget *tab_label; |
2328 | GtkWidget *close_button; | ||
2329 | GtkNotebook *notebook; | 2329 | GtkNotebook *notebook; |
2330 | char *size_fancy; | 2330 | char *size_fancy; |
2331 | 2331 | ||
@@ -2351,13 +2351,6 @@ setup_publish (struct GNUNET_FS_PublishContext *pc, const char *fn, | |||
2351 | gtk_container_remove (GTK_CONTAINER (df), tab_label); | 2351 | gtk_container_remove (GTK_CONTAINER (df), tab_label); |
2352 | gtk_widget_destroy (GTK_WIDGET (df)); | 2352 | gtk_widget_destroy (GTK_WIDGET (df)); |
2353 | 2353 | ||
2354 | /* FIXME-UNCLEAN: connect these signals using GLADE!!! */ | ||
2355 | /* get refs to widgets */ | ||
2356 | close_button = | ||
2357 | GTK_WIDGET (gtk_builder_get_object | ||
2358 | (publish_tab->builder, "_publish_label_close_button")); | ||
2359 | g_signal_connect (G_OBJECT (close_button), "clicked", | ||
2360 | G_CALLBACK (stop_publishing), publish_tab); | ||
2361 | /* make visible */ | 2354 | /* make visible */ |
2362 | notebook = | 2355 | notebook = |
2363 | GTK_NOTEBOOK (GNUNET_FS_GTK_get_main_window_object | 2356 | GTK_NOTEBOOK (GNUNET_FS_GTK_get_main_window_object |