working favourite button
This commit is contained in:
parent
392cb52c71
commit
0a400cf53b
2 changed files with 9 additions and 0 deletions
|
@ -265,6 +265,9 @@ namespace Buypeeb {
|
|||
l.Text = row.Value;
|
||||
}
|
||||
|
||||
var f = (ToggleButton)this.builder.GetObject("ButtonSelectedFavourite");
|
||||
f.Active = item.favourite;
|
||||
|
||||
}
|
||||
private void OpenUrl(string url) {
|
||||
// https://github.com/dotnet/runtime/issues/17938
|
||||
|
@ -423,6 +426,11 @@ namespace Buypeeb {
|
|||
this.UpdateItem(this.selectedItem.id);
|
||||
}
|
||||
|
||||
private void ButtonSelectedFavouriteToggled(object sender, EventArgs args) {
|
||||
ToggleButton s = (ToggleButton)sender;
|
||||
this.selectedItem.favourite = s.Active;
|
||||
}
|
||||
|
||||
// timers
|
||||
|
||||
private bool UpdateSelectionEndTime() {
|
||||
|
|
|
@ -705,6 +705,7 @@
|
|||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="tooltip_text" translatable="yes">Favourite</property>
|
||||
<signal name="toggled" handler="ButtonSelectedFavouriteToggled" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkImage" id="image3">
|
||||
<property name="visible">True</property>
|
||||
|
|
Loading…
Reference in a new issue