[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18894 - in gnunet-gtk: contrib src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18894 - in gnunet-gtk: contrib src/fs |
Date: |
Sun, 1 Jan 2012 22:34:52 +0100 |
Author: grothoff
Date: 2012-01-01 22:34:52 +0100 (Sun, 01 Jan 2012)
New Revision: 18894
Modified:
gnunet-gtk/contrib/gnunet_fs_gtk_publish_file_dialog.glade
gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_file_publish.c
Log:
-add replication spin button for publishing files -- 2030
Modified: gnunet-gtk/contrib/gnunet_fs_gtk_publish_file_dialog.glade
===================================================================
--- gnunet-gtk/contrib/gnunet_fs_gtk_publish_file_dialog.glade 2012-01-01
21:32:04 UTC (rev 18893)
+++ gnunet-gtk/contrib/gnunet_fs_gtk_publish_file_dialog.glade 2012-01-01
21:34:52 UTC (rev 18894)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.20"/>
<!-- interface-naming-policy project-wide -->
@@ -13,10 +13,12 @@
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
<property name="spacing">2</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
<child>
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
@@ -26,7 +28,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
@@ -56,7 +57,7 @@
<object class="GtkSpinButton"
id="GNUNET_GTK_publish_file_dialog_priority_spin_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="invisible_char">•</property>
+ <property name="invisible_char">•</property>
<property name="adjustment">priority_adjustment</property>
<property name="numeric">True</property>
</object>
@@ -92,7 +93,7 @@
<object class="GtkSpinButton"
id="GNUNET_GTK_publish_file_dialog_expiration_year_spin_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="invisible_char">•</property>
+ <property name="invisible_char">•</property>
<property
name="adjustment">expiration_year_adjustment</property>
<property name="numeric">True</property>
</object>
@@ -117,10 +118,10 @@
<object class="GtkSpinButton"
id="GNUNET_GTK_publish_file_dialog_anonymity_spin_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="invisible_char">•</property>
+ <property name="invisible_char">•</property>
<property name="adjustment">anonymity_adjustment</property>
<property name="numeric">True</property>
- <signal name="value-changed"
handler="GNUNET_GTK_anonymity_spin_button_value_changed_cb" swapped="no"/>
+ <signal name="value_changed"
handler="GNUNET_GTK_anonymity_spin_button_value_changed_cb"/>
</object>
<packing>
<property name="expand">False</property>
@@ -134,6 +135,47 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkHBox" id="hbox3">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkLabel"
id="GNUNET_GTK_publish_file_dialog_replication_label">
+ <property name="visible">True</property>
+ <property name="label"
translatable="yes">_Replication:</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="padding">20</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton"
id="GNUNET_GTK_publish_file_dialog_replication_spin_button">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property
name="adjustment">replication_adjustment</property>
+ <property name="numeric">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="padding">1</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="position">2</property>
@@ -149,7 +191,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
@@ -165,7 +206,6 @@
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
@@ -189,8 +229,8 @@
</action-widgets>
</object>
<object class="GtkAdjustment" id="priority_adjustment">
+ <property name="value">1000</property>
<property name="upper">100000000</property>
- <property name="value">1000</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
@@ -203,8 +243,8 @@
</columns>
</object>
<object class="GtkAdjustment" id="anonymity_adjustment">
+ <property name="value">1</property>
<property name="upper">10000000</property>
- <property name="value">1</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
@@ -213,4 +253,9 @@
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
+ <object class="GtkAdjustment" id="replication_adjustment">
+ <property name="upper">99999</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
</interface>
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-01-01
21:32:04 UTC (rev 18893)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_file_publish.c 2012-01-01
21:34:52 UTC (rev 18894)
@@ -1814,7 +1814,11 @@
(builder,
"GNUNET_GTK_publish_file_dialog_priority_spin_button")));
bo.expiration_time = GNUNET_FS_GTK_get_expiration_time (sb);
- bo.replication_level = 1; /* FIXME... */
+ bo.replication_level =
+ gtk_spin_button_get_value (GTK_SPIN_BUTTON
+ (gtk_builder_get_object
+ (builder,
+
"GNUNET_GTK_publish_file_dialog_replication_spin_button")));
do_index =
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
(gtk_builder_get_object
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18894 - in gnunet-gtk: contrib src/fs,
gnunet <=