aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-02 11:57:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-02 11:57:00 +0000
commit816a7c9b9e21dd51a151ee119784e7d28b340741 (patch)
tree26473a46200236c95da18906d837316120c848e1
parent28dd0a302e4c8d42dcf2b6f9d1c0053fb7e9d79f (diff)
downloadgnunet-gtk-816a7c9b9e21dd51a151ee119784e7d28b340741.tar.gz
gnunet-gtk-816a7c9b9e21dd51a151ee119784e7d28b340741.zip
-fixing compile errors on Gtk3
-rw-r--r--src/fs/gnunet-fs-gtk.c1
-rw-r--r--src/fs/gnunet-fs-gtk.h2
-rw-r--r--src/fs/gnunet-fs-gtk_main-window-namespace-dropdown.c5
-rw-r--r--src/fs/gnunet-fs-gtk_namespace_manager.c17
4 files changed, 13 insertions, 12 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index bbb94b13..6a39aa7a 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -26,7 +26,6 @@
26#include "gnunet-fs-gtk.h" 26#include "gnunet-fs-gtk.h"
27#include "gnunet-fs-gtk_common.h" 27#include "gnunet-fs-gtk_common.h"
28#include "gnunet-fs-gtk_event-handler.h" 28#include "gnunet-fs-gtk_event-handler.h"
29#include <gdk/gdkkeysyms.h>
30 29
31/** 30/**
32 * Should gnunet-fs-gtk start in tray mode? 31 * Should gnunet-fs-gtk start in tray mode?
diff --git a/src/fs/gnunet-fs-gtk.h b/src/fs/gnunet-fs-gtk.h
index 32b78d3d..5fe13213 100644
--- a/src/fs/gnunet-fs-gtk.h
+++ b/src/fs/gnunet-fs-gtk.h
@@ -56,7 +56,7 @@ struct GNUNET_GTK_MainWindowContext
56 GtkTreeRowReference *ns_selector_pushed_row; 56 GtkTreeRowReference *ns_selector_pushed_row;
57 GtkTreeRowReference *selected_ns_row; 57 GtkTreeRowReference *selected_ns_row;
58 int ns_callback_registered; 58 int ns_callback_registered;
59 GtkObject *ns_manager; 59 GtkWindow *ns_manager;
60 gulong ns_manager_delete_handler_id; 60 gulong ns_manager_delete_handler_id;
61}; 61};
62 62
diff --git a/src/fs/gnunet-fs-gtk_main-window-namespace-dropdown.c b/src/fs/gnunet-fs-gtk_main-window-namespace-dropdown.c
index 3f5da1cd..dc2a0470 100644
--- a/src/fs/gnunet-fs-gtk_main-window-namespace-dropdown.c
+++ b/src/fs/gnunet-fs-gtk_main-window-namespace-dropdown.c
@@ -436,10 +436,5 @@ GNUNET_GTK_main_window_refresh_ns_list (struct GNUNET_GTK_MainWindowContext *mai
436 GNUNET_free_non_null (selected_ns_id); 436 GNUNET_free_non_null (selected_ns_id);
437} 437}
438 438
439void
440namespace_selector_manage_namespaces_button_clicked_cb (GtkButton *button, gpointer user_data)
441{
442 GNUNET_GTK_open_ns_manager (user_data);
443}
444 439
445/* end of gnunet-fs-gtk_main-window-namespace-dropdown.c */ 440/* end of gnunet-fs-gtk_main-window-namespace-dropdown.c */
diff --git a/src/fs/gnunet-fs-gtk_namespace_manager.c b/src/fs/gnunet-fs-gtk_namespace_manager.c
index 69fe4969..d40fb629 100644
--- a/src/fs/gnunet-fs-gtk_namespace_manager.c
+++ b/src/fs/gnunet-fs-gtk_namespace_manager.c
@@ -888,7 +888,7 @@ known_ns_selection_changed (GtkTreeSelection *treeselection,
888 gtk_widget_set_sensitive (ctx->details_apply_button, FALSE); 888 gtk_widget_set_sensitive (ctx->details_apply_button, FALSE);
889} 889}
890 890
891GtkObject * 891GtkWindow *
892GNUNET_GTK_namespace_manager_open (struct GNUNET_GTK_MainWindowContext *main_ctx) 892GNUNET_GTK_namespace_manager_open (struct GNUNET_GTK_MainWindowContext *main_ctx)
893{ 893{
894 struct GNUNET_GTK_NamespaceManagerContext *ctx; 894 struct GNUNET_GTK_NamespaceManagerContext *ctx;
@@ -953,12 +953,12 @@ GNUNET_GTK_namespace_manager_open (struct GNUNET_GTK_MainWindowContext *main_ctx
953 gtk_widget_set_sensitive (ctx->details_apply_button, FALSE); 953 gtk_widget_set_sensitive (ctx->details_apply_button, FALSE);
954 954
955 /* show dialog */ 955 /* show dialog */
956 gtk_window_present (GTK_WINDOW (ctx->namespace_manager)); 956 gtk_window_present (ctx->namespace_manager);
957 return GTK_OBJECT (ctx->namespace_manager); 957 return ctx->namespace_manager;
958} 958}
959 959
960void 960void
961ns_manager_deleted (GtkObject *object, gpointer user_data) 961ns_manager_deleted (GtkWindow *object, gpointer user_data)
962{ 962{
963 struct GNUNET_GTK_MainWindowContext *ctx = user_data; 963 struct GNUNET_GTK_MainWindowContext *ctx = user_data;
964 g_signal_handler_disconnect (object, ctx->ns_manager_delete_handler_id); 964 g_signal_handler_disconnect (object, ctx->ns_manager_delete_handler_id);
@@ -973,7 +973,7 @@ GNUNET_GTK_open_ns_manager (struct GNUNET_GTK_MainWindowContext *ctx)
973{ 973{
974 if (ctx->ns_manager != NULL) 974 if (ctx->ns_manager != NULL)
975 { 975 {
976 gtk_window_present (GTK_WINDOW (ctx->ns_manager)); 976 gtk_window_present (ctx->ns_manager);
977 return; 977 return;
978 } 978 }
979 979
@@ -992,4 +992,11 @@ GNUNET_GTK_main_menu_file_manage_pseudonyms_activate_cb (GtkMenuItem *menuitem,
992 GNUNET_GTK_open_ns_manager (user_data); 992 GNUNET_GTK_open_ns_manager (user_data);
993} 993}
994 994
995void
996namespace_selector_manage_namespaces_button_clicked_cb (GtkButton *button, gpointer user_data)
997{
998 GNUNET_GTK_open_ns_manager (user_data);
999}
1000
1001
995/* end of gnunet-fs-gtk_namespace_manager.c */ 1002/* end of gnunet-fs-gtk_namespace_manager.c */