From e1569c9c802d923848b2ee83b51d3f882fe2196c Mon Sep 17 00:00:00 2001 From: guinux Date: Sat, 27 May 2017 09:51:15 +0200 Subject: [PATCH] fix cursor display at start --- src/manager_window.vala | 4 +++- src/updater_window.vala | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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));