commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 66/101: grc: gtk3: remove deprecated add_wi


From: git
Subject: [Commit-gnuradio] [gnuradio] 66/101: grc: gtk3: remove deprecated add_with_viewport()
Date: Thu, 16 Mar 2017 14:58:08 +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 4542d4b94887db741a5db21cfc80f7690bac0add
Author: Sebastian Koslowski <address@hidden>
Date:   Mon Aug 8 20:35:11 2016 +0200

    grc: gtk3: remove deprecated add_with_viewport()
---
 grc/gui/ParamWidgets.py       | 2 +-
 grc/gui/ParserErrorsDialog.py | 2 +-
 grc/gui/PropsDialog.py        | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py
index 4e6ba27..4ab7da6 100644
--- a/grc/gui/ParamWidgets.py
+++ b/grc/gui/ParamWidgets.py
@@ -147,7 +147,7 @@ class MultiLineEntryParam(InputParam):
 
         self._sw = Gtk.ScrolledWindow()
         self._sw.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
-        self._sw.add_with_viewport(self._view)
+        self._sw.add(self._view)
 
         self.pack_start(self._sw, True, True, True)
 
diff --git a/grc/gui/ParserErrorsDialog.py b/grc/gui/ParserErrorsDialog.py
index 28cc8ec..93a0928 100644
--- a/grc/gui/ParserErrorsDialog.py
+++ b/grc/gui/ParserErrorsDialog.py
@@ -66,7 +66,7 @@ class ParserErrorsDialog(Gtk.Dialog):
 
         scrolled_window = Gtk.ScrolledWindow()
         scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, 
Gtk.PolicyType.AUTOMATIC)
-        scrolled_window.add_with_viewport(tree_view)
+        scrolled_window.add(tree_view)
 
         self.vbox.pack_start(scrolled_window, True)
         self.set_size_request(2*MIN_DIALOG_WIDTH, MIN_DIALOG_HEIGHT)
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py
index f2ba641..9543a62 100644
--- a/grc/gui/PropsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -74,7 +74,7 @@ class PropsDialog(Gtk.Dialog):
         doc_view.get_buffer().create_tag('b', weight=Pango.Weight.BOLD)
         self._docs_box = Gtk.ScrolledWindow()
         self._docs_box.set_policy(Gtk.PolicyType.AUTOMATIC, 
Gtk.PolicyType.AUTOMATIC)
-        self._docs_box.add_with_viewport(self._docs_text_display)
+        self._docs_box.add(self._docs_text_display)
         notebook.append_page(self._docs_box, Gtk.Label(label="Documentation"))
 
         # Generated code for the block
@@ -87,7 +87,7 @@ class PropsDialog(Gtk.Dialog):
             # code_view.override_font(Pango.FontDescription('monospace %d' % 
Constants.FONT_SIZE))
             code_box = Gtk.ScrolledWindow()
             code_box.set_policy(Gtk.PolicyType.AUTOMATIC, 
Gtk.PolicyType.AUTOMATIC)
-            code_box.add_with_viewport(self._code_text_display)
+            code_box.add(self._code_text_display)
             notebook.append_page(code_box, Gtk.Label(label="Generated Code"))
         else:
             self._code_text_display = None
@@ -96,7 +96,7 @@ class PropsDialog(Gtk.Dialog):
         self._error_messages_text_display = SimpleTextDisplay()
         self._error_box = Gtk.ScrolledWindow()
         self._error_box.set_policy(Gtk.PolicyType.AUTOMATIC, 
Gtk.PolicyType.AUTOMATIC)
-        self._error_box.add_with_viewport(self._error_messages_text_display)
+        self._error_box.add(self._error_messages_text_display)
         vpaned.pack2(self._error_box)
         vpaned.set_position(int(0.65 * Constants.MIN_DIALOG_HEIGHT))
 
@@ -123,7 +123,7 @@ class PropsDialog(Gtk.Dialog):
             vbox = Gtk.VBox()
             scroll_box = Gtk.ScrolledWindow()
             scroll_box.set_policy(Gtk.PolicyType.AUTOMATIC, 
Gtk.PolicyType.AUTOMATIC)
-            scroll_box.add_with_viewport(vbox)
+            scroll_box.add(vbox)
             self.notebook.append_page(scroll_box, label)
             self._params_boxes.append((tab, label, vbox))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]