[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19625 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19625 - gnunet-gtk/src/fs |
Date: |
Thu, 2 Feb 2012 12:02:41 +0100 |
Author: grothoff
Date: 2012-02-02 12:02:41 +0100 (Thu, 02 Feb 2012)
New Revision: 19625
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.c
gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.h
gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_file_publish.c
Log:
-document
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.c 2012-02-02
00:07:29 UTC (rev 19624)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.c 2012-02-02
11:02:41 UTC (rev 19625)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet
- (C) 2005, 2006, 2010 Christian Grothoff (and other contributing authors)
+ (C) 2005, 2006, 2010, 2012 Christian Grothoff (and other contributing
authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -119,6 +119,14 @@
}
+/**
+ * Set the anonymity level displayed by a combo box.
+ *
+ * @param builder the builder of the combo box
+ * @param combo_name name of the combo box
+ * @param sel_level desired anonymity level
+ * @return TRUE on success, FALSE on failure
+ */
gboolean
GNUNET_GTK_select_anonymity_level (GtkBuilder * builder, gchar * combo_name,
guint sel_level)
@@ -132,6 +140,13 @@
}
+/**
+ * Set the anonymity level displayed by a combo box.
+ *
+ * @param combo the combo box
+ * @param sel_level desired anonymity level
+ * @return TRUE on success, FALSE on failure
+ */
gboolean
GNUNET_GTK_select_anonymity_combo_level (GtkComboBox *combo, guint sel_level)
{
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.h
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.h 2012-02-02
00:07:29 UTC (rev 19624)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-anonymity_spin_buttons.h 2012-02-02
11:02:41 UTC (rev 19625)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet
- (C) 2005, 2006, 2010 Christian Grothoff (and other contributing authors)
+ (C) 2005, 2006, 2010, 2012 Christian Grothoff (and other contributing
authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -54,11 +54,26 @@
GNUNET_GTK_get_selected_anonymity_combo_level (GtkComboBox *combo, guint
*p_level);
-
+/**
+ * Set the anonymity level displayed by a combo box.
+ *
+ * @param builder the builder of the combo box
+ * @param combo_name name of the combo box
+ * @param sel_level desired anonymity level
+ * @return TRUE on success, FALSE on failure
+ */
gboolean
GNUNET_GTK_select_anonymity_level (GtkBuilder * builder, gchar * combo_name,
guint sel_level);
+
+/**
+ * Set the anonymity level displayed by a combo box.
+ *
+ * @param combo the combo box
+ * @param sel_level desired anonymity level
+ * @return TRUE on success, FALSE on failure
+ */
gboolean
GNUNET_GTK_select_anonymity_combo_level (GtkComboBox *combo, guint sel_level);
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_file_publish.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_file_publish.c 2012-02-02
00:07:29 UTC (rev 19624)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_file_publish.c 2012-02-02
11:02:41 UTC (rev 19625)
@@ -1091,7 +1091,6 @@
struct GNUNET_FS_FileInformation *fip;
guint64 abs_etime;
guint replication_level;
- struct GNUNET_FS_BlockOptions bo;
GtkListStore *anon_liststore;
anon_liststore = GTK_LIST_STORE (gtk_builder_get_object
(ctx->main_window_builder, "main_window_search_anonymity_liststore"));
@@ -1114,10 +1113,6 @@
6, &abs_etime,
7, &replication_level,
-1);
- bo.anonymity_level = anonymity_level;
- bo.content_priority = priority;
- bo.expiration_time.abs_value = (uint64_t) abs_etime;
- bo.replication_level = replication_level;
/* FIXME: can we just give our anon_liststore out like this? What about
(unintended) sharing of state? */
GNUNET_FS_GTK_edit_publish_dialog (ctx->master_pubdialog,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19625 - gnunet-gtk/src/fs,
gnunet <=