aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk_win.c5
-rw-r--r--window_main.glade3
2 files changed, 8 insertions, 0 deletions
diff --git a/gtk_win.c b/gtk_win.c
index 97fe27ae2487..4dd6ccf93634 100644
--- a/gtk_win.c
+++ b/gtk_win.c
@@ -100,6 +100,11 @@ void on_load_button_clicked(GtkButton* button) {
}
}
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(app.builder, "add_button")), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(app.builder, "remove_button")),
+ TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(app.builder, "set_button")), TRUE);
+
// On new portfolio, create empty JSON array and return
if (app.portfolio_string->len == 0) {
Json* jobj = json_object_new_array();
diff --git a/window_main.glade b/window_main.glade
index 1c71fddca254..551bfb8216af 100644
--- a/window_main.glade
+++ b/window_main.glade
@@ -116,6 +116,7 @@ https://github.com/aokellermann/
<object class="GtkButton" id="add_button">
<property name="label" translatable="yes">Add</property>
<property name="visible">True</property>
+ <property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="on_modify_button_clicked" swapped="no"/>
@@ -130,6 +131,7 @@ https://github.com/aokellermann/
<object class="GtkButton" id="remove_button">
<property name="label" translatable="yes">Remove</property>
<property name="visible">True</property>
+ <property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="on_modify_button_clicked" swapped="no"/>
@@ -144,6 +146,7 @@ https://github.com/aokellermann/
<object class="GtkButton" id="set_button">
<property name="label" translatable="yes">Set</property>
<property name="visible">True</property>
+ <property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="on_modify_button_clicked" swapped="no"/>