diff --git a/src/manager_window.vala b/src/manager_window.vala index e8001c4..8d4cf27 100644 --- a/src/manager_window.vala +++ b/src/manager_window.vala @@ -159,7 +159,9 @@ namespace Pamac { bool populate_window () { this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH)); - + while (Gtk.events_pending ()) { + Gtk.main_iteration (); + } right_click_menu = new Gtk.Menu (); deselect_item = new Gtk.MenuItem.with_label (dgettext (null, "Deselect")); deselect_item.activate.connect (on_deselect_item_activate); diff --git a/src/updater_window.vala b/src/updater_window.vala index 3177c3c..e9c68de 100644 --- a/src/updater_window.vala +++ b/src/updater_window.vala @@ -81,7 +81,9 @@ namespace Pamac { bool populate_window () { this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH)); - + while (Gtk.events_pending ()) { + Gtk.main_iteration (); + } repos_updates_list = new Gtk.ListStore (7, typeof (bool), typeof (string), typeof (string), typeof (string),typeof (string), typeof (string), typeof (uint64)); repos_updates_treeview.set_model (repos_updates_list); aur_updates_list = new Gtk.ListStore (4, typeof (bool), typeof (string), typeof (string), typeof (string));