[gnome-builder] rustup: fix various PyGObject deprecations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] rustup: fix various PyGObject deprecations
- Date: Wed, 29 Mar 2017 19:38:52 +0000 (UTC)
commit bbd776085f2afb542b5f7e73e15131cd6e3b02c2
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 29 13:38:25 2017 -0600
rustup: fix various PyGObject deprecations
plugins/rustup/rustup_plugin/__init__.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/rustup/rustup_plugin/__init__.py b/plugins/rustup/rustup_plugin/__init__.py
index c2580c6..63dae41 100644
--- a/plugins/rustup/rustup_plugin/__init__.py
+++ b/plugins/rustup/rustup_plugin/__init__.py
@@ -94,7 +94,7 @@ class RustupApplicationAddin(GObject.Object, Ide.ApplicationAddin):
__gsignals__ = {
# emitted when a rustup installation is detected
- 'rustup_changed': (GObject.SIGNAL_RUN_FIRST, None, ())
+ 'rustup_changed': (GObject.SignalFlags.RUN_FIRST, None, ())
}
@GObject.Property(type=bool, default=False)
@@ -527,7 +527,7 @@ class RustupPreferencesAddin(GObject.Object, Ide.PreferencesAddin):
self.toolchain_listbox.set_selection_mode(Gtk.SelectionMode.SINGLE)
def _create_list_item(item, data):
- return Gtk.Label(item.title, halign='start', valign='center', expand=True, visible=True)
+ return Gtk.Label(label=item.title, halign='start', valign='center', expand=True, visible=True)
self.store = Gio.ListStore.new(ModelItem)
self.toolchain_listbox.bind_model(self.store, _create_list_item, None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]