Permalink
Browse files

fixed some newly introduced bugs

  • Loading branch information...
1 parent 9536b18 commit 98bb86ce39ba10a2a6e5ccb7f874d374fa6e28d7 @Simmesimme committed Mar 19, 2012
@@ -380,7 +380,7 @@ public class IconSelectWindow : GLib.Object {
this.load_all.begin();
// insert loaded icons every 200 ms
- Gdk.threads_add_timeout(200, () => {
+ Timeout.add(200, () => {
while (this.load_queue.length() > 0) {
var new_entry = this.load_queue.pop();
Gtk.TreeIter current;
View
@@ -230,7 +230,7 @@ class PieList : Gtk.TreeView {
// avoid too frequent selection...
this.last_hover = time;
- Gdk.threads_add_timeout(150, () => {
+ GLib.Timeout.add(150, () => {
if (this.last_hover == time)
this.get_selection().select_path(path);
return false;
@@ -130,7 +130,7 @@ public class PreferencesWindow : GLib.Object {
Config.global.save();
Pies.save();
- Gdk.threads_add_timeout(100, () => {
+ Timeout.add(100, () => {
IconSelectWindow.clear_icons();
return false;
});
@@ -82,7 +82,7 @@ public class SettingsWindow : GLib.Object {
scale_slider.value_changed.connect(() => {
if (!changing) {
changing = true;
- Gdk.threads_add_timeout(300, () => {
+ Timeout.add(300, () => {
if (changed_again) {
changed_again = false;
return true;
View
@@ -75,7 +75,7 @@ class ThemeList : Gtk.TreeView {
this.get_selection().changed.connect(() => {
Gtk.TreeIter active;
if (this.get_selection().get_selected(null, out active)) {
- Gdk.threads_add_timeout(10, () => {
+ Timeout.add(10, () => {
int index = int.parse(data.get_path(active).to_string());
Config.global.theme = Config.global.themes[index];
@@ -307,7 +307,7 @@ public class BindingManager : GLib.Object {
this.delayed_event = event;
this.delayed_binding = binding;
- Gdk.threads_add_timeout(300, () => {
+ Timeout.add(300, () => {
// if nothing has been pressed in the meantime
if (current_count == this.delayed_count) {
this.delayed_binding = null;

0 comments on commit 98bb86c

Please sign in to comment.