fixes for very large conversation lists
This commit is contained in:
@@ -38,21 +38,22 @@ public class ConversationListView : Adw.Bin
|
||||
header_bar.set_title_widget (new Label ("Kordophone"));
|
||||
container.add_top_bar (header_bar);
|
||||
|
||||
// Set up refresh button
|
||||
var refresh_button = new Button.from_icon_name ("view-refresh-symbolic");
|
||||
refresh_button.tooltip_text = "Refresh Conversations";
|
||||
refresh_button.clicked.connect (() => {
|
||||
// Setup application menu
|
||||
var app_menu = new Menu ();
|
||||
app_menu.append ("Refresh", "list.refresh");
|
||||
app_menu.append ("Settings...", "win.settings");
|
||||
app_menu.append ("Quit", "app.quit");
|
||||
|
||||
var refresh_action = new SimpleAction("refresh", null);
|
||||
refresh_action.activate.connect (() => {
|
||||
if (conversation_model != null) {
|
||||
conversation_model.load_conversations ();
|
||||
}
|
||||
});
|
||||
header_bar.pack_end (refresh_button);
|
||||
|
||||
// Setup application menu
|
||||
var app_menu = new Menu ();
|
||||
app_menu.append ("Refresh", "refresh");
|
||||
app_menu.append ("Settings...", "win.settings");
|
||||
app_menu.append ("Quit", "app.quit");
|
||||
var action_group = new SimpleActionGroup ();
|
||||
action_group.add_action(refresh_action);
|
||||
insert_action_group ("list", action_group);
|
||||
|
||||
var menu_button = new Gtk.MenuButton ();
|
||||
menu_button.menu_model = app_menu;
|
||||
|
||||
Reference in New Issue
Block a user