[valencia] Remove Gtk.Window.close symbol warning



commit c8569127ee13e756545c34537974fe62cbd2b1b0
Author: Jim Nelson <jim yorba org>
Date:   Tue Feb 11 11:07:40 2014 -0800

    Remove Gtk.Window.close symbol warning
    
    This also fixes how the toplevel window is removed, by destroying it
    rather than hiding it and dropping the ref.

 gtk_util.vala |    4 ----
 valencia.vala |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk_util.vala b/gtk_util.vala
index ba7b22a..e006fd4 100644
--- a/gtk_util.vala
+++ b/gtk_util.vala
@@ -212,10 +212,6 @@ class ProgressBarDialog : Gtk.Window {
     public void set_percentage(double percent) {
         bar.set_fraction(percent);
     }
-    
-    public void close() {
-        hide();
-    }
 }
 
 class SignalConnection : Object {
diff --git a/valencia.vala b/valencia.vala
index 2ed18af..151c9ea 100644
--- a/valencia.vala
+++ b/valencia.vala
@@ -1292,7 +1292,7 @@ public class Instance : Peas.ExtensionBase, Gedit.WindowActivatable {
     void update_parse_dialog(double percentage) {
         if (percentage == 1.0) {
             if (parsing_dialog != null) {
-                parsing_dialog.close();
+                parsing_dialog.destroy();
                 parsing_dialog = null;
             }
             return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]