main-toolbar: Add add_to_size_groups()
This will be used to sync requests of the panes.
This commit is contained in:
parent
94ab7e5ac6
commit
7d4a61d431
1 changed files with 18 additions and 0 deletions
|
|
@ -30,12 +30,18 @@ public class MainToolbar : Gtk.Box {
|
|||
[GtkChild]
|
||||
private Gtk.MenuButton main_menu_button;
|
||||
|
||||
[GtkChild]
|
||||
private Gtk.Separator folder_separator;
|
||||
|
||||
// Conversations header elements
|
||||
[GtkChild]
|
||||
private Gtk.HeaderBar conversations_header;
|
||||
[GtkChild]
|
||||
private Gtk.ToggleButton search_conversations_button;
|
||||
|
||||
[GtkChild]
|
||||
private Gtk.Separator conversations_separator;
|
||||
|
||||
// Conversation header elements
|
||||
[GtkChild]
|
||||
private Gtk.HeaderBar conversation_header;
|
||||
|
|
@ -105,6 +111,18 @@ public class MainToolbar : Gtk.Box {
|
|||
update_conversation_buttons();
|
||||
}
|
||||
|
||||
public void add_to_size_groups(Gtk.SizeGroup folder_group,
|
||||
Gtk.SizeGroup folder_separator_group,
|
||||
Gtk.SizeGroup conversations_group,
|
||||
Gtk.SizeGroup conversations_separator_group,
|
||||
Gtk.SizeGroup conversation_group) {
|
||||
folder_group.add_widget(folder_header);
|
||||
folder_separator_group.add_widget(folder_separator);
|
||||
conversations_group.add_widget(conversations_header);
|
||||
conversations_separator_group.add_widget(conversations_separator);
|
||||
conversation_group.add_widget(conversation_header);
|
||||
}
|
||||
|
||||
// Updates tooltip text depending on number of conversations selected.
|
||||
private void update_conversation_buttons() {
|
||||
this.mark_message_button.tooltip_text = ngettext(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue