mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-22 00:50:59 +00:00
gps.ui: Use a stock icon for clear
Clear graph on button clicked.
This commit is contained in:
parent
e8259f3773
commit
a6a5d796ca
2 changed files with 5 additions and 4 deletions
|
@ -592,10 +592,11 @@ impl GPSApp {
|
|||
let _ = pipeline.set_state(PipelineState::Stopped);
|
||||
});
|
||||
let app_weak = self.downgrade();
|
||||
add_button.connect_clicked(glib::clone!(@weak window => move |_| {
|
||||
self.connect_button_action("button-clear", move |_| {
|
||||
let app = upgrade_weak!(app_weak);
|
||||
app.load_graph("graphs/compositor.xml").expect("Unable to open file");
|
||||
}));
|
||||
app.clear_graph();
|
||||
//app.load_graph("graphs/compositor.xml").expect("Unable to open file");
|
||||
});
|
||||
|
||||
// When user clicks on port with right button
|
||||
let app_weak = self.downgrade();
|
||||
|
|
|
@ -211,7 +211,7 @@
|
|||
<object class="GtkButton" id="button-clear">
|
||||
<property name="hexpand">1</property>
|
||||
<property name="receives-default">1</property>
|
||||
<property name="label" translatable="yes">_clear</property>
|
||||
<property name="icon-name">edit-clear</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
Loading…
Reference in a new issue