Skip to content
Snippets Groups Projects
Commit e1569c9c authored by guinux's avatar guinux
Browse files

fix cursor display at start

parent cb5d0715
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,9 @@ namespace Pamac { ...@@ -159,7 +159,9 @@ namespace Pamac {
bool populate_window () { bool populate_window () {
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH)); 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 (); right_click_menu = new Gtk.Menu ();
deselect_item = new Gtk.MenuItem.with_label (dgettext (null, "Deselect")); deselect_item = new Gtk.MenuItem.with_label (dgettext (null, "Deselect"));
deselect_item.activate.connect (on_deselect_item_activate); deselect_item.activate.connect (on_deselect_item_activate);
......
...@@ -81,7 +81,9 @@ namespace Pamac { ...@@ -81,7 +81,9 @@ namespace Pamac {
bool populate_window () { bool populate_window () {
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH)); 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_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); repos_updates_treeview.set_model (repos_updates_list);
aur_updates_list = new Gtk.ListStore (4, typeof (bool), typeof (string), typeof (string), typeof (string)); aur_updates_list = new Gtk.ListStore (4, typeof (bool), typeof (string), typeof (string), typeof (string));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment