Commit 14e3a15e authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su

Rename "Action" button

This renames the "Action" button to "Randomize" button.
parent 7a49d507
......@@ -27,8 +27,8 @@
<property name="subtitle">A cellular automata application for GNOME</property>
<property name="show_close_button">True</property>
<object class="GtkButton" id="action_button">
<property name="label">Action</property>
<object class="GtkButton" id="randomize_button">
<property name="label">Randomize</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
......@@ -23,10 +23,10 @@ pub fn new_window(
let grid_da: gtk::Image = builder.get_object("grid_da").expect("grid_da not found");
let btn_action: gtk::Button = builder
.expect("action_button not found");
btn_action.connect_clicked(clone!(cmd_chan, update_chan => move |_| {
let btn_rand: gtk::Button = builder
.expect("randomize_button not found");
btn_rand.connect_clicked(clone!(cmd_chan, update_chan => move |_| {"Button clicked!")).unwrap();
let mut path = String::new();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment