[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 10/101: grc: gtk3: remove some deprecated w
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 10/101: grc: gtk3: remove some deprecated warnings |
Date: |
Thu, 16 Mar 2017 14:57:57 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch python3
in repository gnuradio.
commit 438dbd8839ad4c9079c5b8c2573bd9009b2b2e51
Author: Sebastian Koslowski <address@hidden>
Date: Wed Jun 1 17:48:12 2016 +0200
grc: gtk3: remove some deprecated warnings
---
grc/gui/Executor.py | 6 +++---
grc/gui/NotebookPage.py | 3 +--
grc/gui/VariableEditor.py | 8 ++------
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/grc/gui/Executor.py b/grc/gui/Executor.py
index c39f743..13a1cfd 100644
--- a/grc/gui/Executor.py
+++ b/grc/gui/Executor.py
@@ -23,7 +23,7 @@ import sys
import re
from distutils.spawn import find_executable
-from gi.repository import GObject
+from gi.repository import GLib
from ..core import Messages
@@ -91,10 +91,10 @@ class ExecFlowGraphThread(threading.Thread):
# handle completion
r = "\n"
while r:
- GObject.idle_add(Messages.send_verbose_exec, r)
+ GLib.idle_add(Messages.send_verbose_exec, r)
r = os.read(self.process.stdout.fileno(), 1024)
self.process.poll()
- GObject.idle_add(self.done)
+ GLib.idle_add(self.done)
def done(self):
"""Perform end of execution tasks."""
diff --git a/grc/gui/NotebookPage.py b/grc/gui/NotebookPage.py
index e7a024a..bcfb4d8 100644
--- a/grc/gui/NotebookPage.py
+++ b/grc/gui/NotebookPage.py
@@ -54,8 +54,7 @@ class NotebookPage(Gtk.HBox):
# tab box to hold label and close button
self.label = Gtk.Label()
- image = Gtk.Image()
- image.set_from_stock('gtk-close', Gtk.IconSize.MENU)
+ image = Gtk.Image.new_from_icon_name('window-close', Gtk.IconSize.MENU)
image_box = Gtk.HBox(homogeneous=False, spacing=0)
image_box.pack_start(image, True, False, 0)
button = Gtk.Button()
diff --git a/grc/gui/VariableEditor.py b/grc/gui/VariableEditor.py
index 299d3cd..d34903e 100644
--- a/grc/gui/VariableEditor.py
+++ b/grc/gui/VariableEditor.py
@@ -161,11 +161,7 @@ class VariableEditor(Gtk.VBox):
# Sets cell contents
def set_icon(self, col, cell, model, iter, data):
block = model.get_value(iter, BLOCK_INDEX)
- if block:
- pb = self.treeview.render_icon(Gtk.STOCK_CLOSE, 16, None)
- else:
- pb = self.treeview.render_icon(Gtk.STOCK_ADD, 16, None)
- cell.set_property('pixbuf', pb)
+ cell.set_property('icon-name', 'window-close' if block else 'list-add')
def set_value(self, col, cell, model, iter, data):
sp = cell.set_property
@@ -270,7 +266,7 @@ class VariableEditor(Gtk.VBox):
# Create a context menu to confirm the delete operation
confirmation_menu = Gtk.Menu()
block_id =
self._block.get_param('id').get_value().replace("_", "__")
- confirm = Gtk.MenuItem("Delete {}".format(block_id))
+ confirm = Gtk.MenuItem(label="Delete {}".format(block_id))
confirm.connect('activate', self.handle_action,
self.DELETE_BLOCK)
confirmation_menu.add(confirm)
confirmation_menu.show_all()
- [Commit-gnuradio] [gnuradio] branch python3 updated (50bfc3d -> 00e775f), git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 07/101: grc-refactor: move param input widgets to separate file, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 04/101: grc: remove all Cheetah templates from GUI, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 03/101: grc-refactor: start clean-up Block.py, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 05/101: grc-refactor: move param entry colors spec in gui package, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 10/101: grc: gtk3: remove some deprecated warnings,
git <=
- [Commit-gnuradio] [gnuradio] 19/101: grc-refactor: block documentation prop, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 18/101: grc-refactor: block state handling, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 20/101: grc-refactor: Block: remove name getter, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 15/101: grc: gtk3: fix paste and domain color settings, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 08/101: grc: gtk3: remove canvas size and enable zooming, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 06/101: grc: gtk3: update props dialog, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 17/101: grc-refactor: move more port type color stuff to gui, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 09/101: grc-refactor: replace some unnecessary getters, git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 24/101: grc-refactor: the hopeless cause of bus ports..., git, 2017/03/16
- [Commit-gnuradio] [gnuradio] 25/101: Merge branch 'next_grcwg' into gtk3 (v3.7.10 release), git, 2017/03/16