[moserial] Fix compilation with newer versions of GLib



commit 7ecc773efefff3a401d0ed3b471b998703842047
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 13 12:13:39 2012 +0100

    Fix compilation with newer versions of GLib
    
    GIO now contains a GMenuItem object type.
    
    src/MainWindow.vala:300.17-300.24: error: `MenuItem' is an ambiguous reference between `GLib.MenuItem' and `Gtk.MenuItem'
    MenuItem recentFileItem = (Gtk.MenuItem)builder.get_object("menubar_open_recent");
    ^^^^^^^^
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678003

 src/MainWindow.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/MainWindow.vala b/src/MainWindow.vala
index 48432e7..05ce4f5 100644
--- a/src/MainWindow.vala
+++ b/src/MainWindow.vala
@@ -297,7 +297,7 @@ public class moserial.MainWindow : Gtk.Window //Have to extend Gtk.Winow to get
                 recentChooserMenu.add_filter(filter);
                 recentChooserMenu.set_show_numbers(true);
 		recentChooserMenu.show_not_found = false;
-                MenuItem recentFileItem = (Gtk.MenuItem)builder.get_object("menubar_open_recent");
+                Gtk.MenuItem recentFileItem = (Gtk.MenuItem)builder.get_object("menubar_open_recent");
                	recentFileItem.set_submenu(recentChooserMenu);
 
                 //load and apply preferences



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