[moserial] Disambiguate Gtk.ListStore usage
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] Disambiguate Gtk.ListStore usage
- Date: Mon, 9 Nov 2015 14:37:26 +0000 (UTC)
commit 301fe3b23ff0d9433c4bcb7e1361a174fd36e2d8
Author: Bastien Nocera <hadess hadess net>
Date: Sat Nov 7 14:27:30 2015 +0100
Disambiguate Gtk.ListStore usage
Now that there's a liststore in both GTK+ and GLib.
https://bugzilla.gnome.org/show_bug.cgi?id=757733
src/MoUtils.vala | 2 +-
src/SettingsDialog.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/MoUtils.vala b/src/MoUtils.vala
index fcf3b9e..2277c82 100644
--- a/src/MoUtils.vala
+++ b/src/MoUtils.vala
@@ -104,7 +104,7 @@ public class MoUtils : GLib.Object
}
public static void populateComboBox (ComboBox Combo, string[] val_array) {
- ListStore Model = new ListStore(1, typeof( string ));
+ Gtk.ListStore Model = new Gtk.ListStore(1, typeof( string ));
foreach (string val_item in val_array) {
TreeIter iter;
Model.append(out iter);
diff --git a/src/SettingsDialog.vala b/src/SettingsDialog.vala
index b0ff3cd..31ccba1 100644
--- a/src/SettingsDialog.vala
+++ b/src/SettingsDialog.vala
@@ -40,7 +40,7 @@ public class moserial.SettingsDialog : GLib.Object
private CheckButton softwareHandshake;
private ComboBox accessModeCombo;
private CheckButton localEcho;
- private ListStore deviceModel;
+ private Gtk.ListStore deviceModel;
public signal void updateSettings(Settings settings);
public SettingsDialog(Builder builder) {
GLib.Object(builder: builder);
@@ -80,7 +80,7 @@ public class moserial.SettingsDialog : GLib.Object
okButton.clicked.connect(this.ok);
deviceCombo = (ComboBox)builder.get_object("settings_device");
- deviceModel = new ListStore(1, typeof( string ));
+ deviceModel = new Gtk.ListStore(1, typeof( string ));
deviceCombo.set_model(deviceModel);
CellRenderer deviceCell = new CellRendererText();
deviceCombo.pack_start( deviceCell, false );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]