[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] 02/05: worked on policy frame
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] 02/05: worked on policy frame |
Date: |
Tue, 06 Oct 2020 09:57:38 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis-gtk.
commit cd351fd404d2a357f9f707ef64781029f9006bf6
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Sun Oct 4 19:36:51 2020 +0200
worked on policy frame
---
contrib/anastasis_gtk_main_window.glade | 29 ++++++++++++++++++++++-------
src/anastasis/anastasis-gtk_backup.c | 19 +++++++++++++++----
2 files changed, 37 insertions(+), 11 deletions(-)
diff --git a/contrib/anastasis_gtk_main_window.glade
b/contrib/anastasis_gtk_main_window.glade
index c22aec5..2af5e9a 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -1745,14 +1745,17 @@ Provider</property>
<object class="GtkFrame">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
+ <property
name="hexpand">True</property>
<property
name="label_xalign">0</property>
- <property
name="shadow_type">none</property>
+ <property
name="shadow_type">in</property>
<child>
<object class="GtkLabel">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
- <property name="label"
translatable="yes">Method
-</property>
+ <property name="label"
translatable="yes">Method</property>
+ <attributes>
+ <attribute name="weight"
value="ultrabold"/>
+ </attributes>
</object>
</child>
<child type="label_item">
@@ -1768,13 +1771,17 @@ Provider</property>
<object class="GtkFrame">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
+ <property
name="hexpand">True</property>
<property
name="label_xalign">0</property>
- <property
name="shadow_type">none</property>
+ <property
name="shadow_type">in</property>
<child>
<object class="GtkLabel">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
<property name="label"
translatable="yes">Recovery Cost</property>
+ <attributes>
+ <attribute name="weight"
value="bold"/>
+ </attributes>
</object>
</child>
<child type="label_item">
@@ -1790,13 +1797,17 @@ Provider</property>
<object class="GtkFrame">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
+ <property
name="hexpand">True</property>
<property
name="label_xalign">0</property>
- <property
name="shadow_type">none</property>
+ <property
name="shadow_type">in</property>
<child>
<object class="GtkLabel">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
<property name="label"
translatable="yes">Backup cost</property>
+ <attributes>
+ <attribute name="weight"
value="bold"/>
+ </attributes>
</object>
</child>
<child type="label_item">
@@ -1812,13 +1823,17 @@ Provider</property>
<object class="GtkFrame">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
+ <property
name="hexpand">True</property>
<property
name="label_xalign">0</property>
- <property
name="shadow_type">none</property>
+ <property
name="shadow_type">in</property>
<child>
<object class="GtkLabel">
<property
name="visible">True</property>
<property
name="can_focus">False</property>
<property name="label"
translatable="yes">Recovery policies</property>
+ <attributes>
+ <attribute name="weight"
value="bold"/>
+ </attributes>
</object>
</child>
<child type="label_item">
@@ -1839,7 +1854,7 @@ Provider</property>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label"
translatable="yes">Policies</property>
+ <property name="label"
translatable="yes">Review Recovery Policy</property>
</object>
</child>
</object>
diff --git a/src/anastasis/anastasis-gtk_backup.c
b/src/anastasis/anastasis-gtk_backup.c
index bede891..a6aa354 100644
--- a/src/anastasis/anastasis-gtk_backup.c
+++ b/src/anastasis/anastasis-gtk_backup.c
@@ -1043,6 +1043,7 @@ init_b_policy (json_t *state)
{
GList *grandchildren, *inner_iter;
grandchildren = gtk_container_get_children (GTK_CONTAINER
(iter->data));
+ GtkFrame *method_frame = (GtkFrame *) gtk_frame_new (NULL);
GtkHBox *method_hbox = (GtkHBox *) gtk_box_new
(GTK_ORIENTATION_HORIZONTAL, 2);
json_t *argument = json_object ();
json_t *provider_arr = json_array ();
@@ -1153,19 +1154,29 @@ init_b_policy (json_t *state)
}
}
}
+ gtk_frame_set_shadow_type (GTK_FRAME (method_frame), GTK_SHADOW_IN);
+ gtk_container_add (GTK_CONTAINER (method_frame),
+ GTK_WIDGET (method_hbox));
gtk_grid_attach (grid,
- GTK_WIDGET (method_hbox),
- 0, row, 1, 1);
+ GTK_WIDGET (method_frame),
+ 0, row, 1, 1);
gtk_widget_show (GTK_WIDGET (method_hbox));
+ gtk_widget_show (GTK_WIDGET (method_frame));
for (unsigned int i = 0; i < policies_col; i++)
{
+ GtkFrame *frame = (GtkFrame *) gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
GtkCheckButton *chk_btn = (GtkCheckButton *)
gtk_check_button_new ();
+ gtk_container_add (GTK_CONTAINER (frame),
+ GTK_WIDGET (chk_btn));
gtk_grid_attach (grid,
- GTK_WIDGET (chk_btn),
- i + 1, row, 1, 1);
+ GTK_WIDGET (frame),
+ i + 1, row, 1, 1);
gtk_widget_set_halign (GTK_WIDGET (chk_btn), GTK_ALIGN_CENTER);
gtk_widget_set_valign (GTK_WIDGET (chk_btn), GTK_ALIGN_CENTER);
+ gtk_widget_set_halign (GTK_WIDGET (frame), GTK_ALIGN_FILL);
gtk_widget_show (GTK_WIDGET (chk_btn));
+ gtk_widget_show (GTK_WIDGET (frame));
}
json_object_set_new (argument, "providers", provider_arr);
json_array_append_new (argument_arr, argument);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.