Gray out find in conversation button
This commit is contained in:
parent
a1f227dd1b
commit
e9f3ac5276
2 changed files with 7 additions and 1 deletions
|
|
@ -1816,9 +1816,11 @@ public class Application.MainWindow :
|
|||
bool sensitive = (count != NONE);
|
||||
bool multiple = (count == MULTIPLE);
|
||||
|
||||
get_window_action(ACTION_FIND_IN_CONVERSATION).set_enabled(
|
||||
bool find_in_enabled = (
|
||||
sensitive && !multiple && this.is_conversation_viewer_shown
|
||||
);
|
||||
get_window_action(ACTION_FIND_IN_CONVERSATION).set_enabled(find_in_enabled);
|
||||
this.conversation_headerbar.set_find_sensitive(find_in_enabled);
|
||||
|
||||
bool reply_sensitive = (
|
||||
sensitive &&
|
||||
|
|
|
|||
|
|
@ -56,4 +56,8 @@ public class Components.ConversationHeaderBar : Gtk.Bin {
|
|||
remove(header);
|
||||
add(this.conversation_header);
|
||||
}
|
||||
|
||||
public void set_find_sensitive(bool is_sensitive) {
|
||||
this.find_button.sensitive = is_sensitive;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue