[gimp/gtk3-port: 378/386] pygimp: some speculative Table->Grid changes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 378/386] pygimp: some speculative Table->Grid changes
- Date: Wed, 9 May 2018 09:54:06 +0000 (UTC)
commit 7f1b2210a8672ebc4c35a0e219f67c407fb76c77
Author: Simon Budig <simon budig de>
Date: Tue May 8 17:00:28 2018 +0200
pygimp: some speculative Table->Grid changes
plug-ins/pygimp/gimpfu.py | 14 +++++++-------
plug-ins/pygimp/gimpui.defs | 4 ++--
plug-ins/pygimp/gimpui.override | 2 +-
3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py
index 5149f3b..f517fec 100644
--- a/plug-ins/pygimp/gimpfu.py
+++ b/plug-ins/pygimp/gimpfu.py
@@ -717,11 +717,11 @@ def _interact(proc_name, start_params):
vbox.pack_start(box, expand=False)
box.show()
- table = gtk.Table(len(params), 2, False)
- table.set_row_spacings(6)
- table.set_col_spacings(6)
- vbox.pack_start(table, expand=False)
- table.show()
+ grid = gtk.Grid ()
+ grid.set_row_spacing(6)
+ grid.set_column_spacing(6)
+ vbox.pack_start(grid, expand=False)
+ grid.show()
def response(dlg, id):
if id == gtk.RESPONSE_OK:
@@ -759,7 +759,7 @@ def _interact(proc_name, start_params):
label = gtk.Label(desc)
label.set_use_underline(True)
label.set_alignment(0.0, 0.5)
- table.attach(label, 1, 2, i, i+1, xoptions=gtk.FILL)
+ grid.attach(label, 1, i, 1, 1)
label.show()
# Remove accelerator markers from tooltips
@@ -776,7 +776,7 @@ def _interact(proc_name, start_params):
label.set_mnemonic_widget(wid)
- table.attach(wid, 2,3, i,i+1, yoptions=0)
+ grid.attach(wid, 2, i, 1, 1)
if pf_type != PF_TEXT:
wid.set_tooltip_text(tooltip_text)
diff --git a/plug-ins/pygimp/gimpui.defs b/plug-ins/pygimp/gimpui.defs
index 1540534..6fa49f8 100644
--- a/plug-ins/pygimp/gimpui.defs
+++ b/plug-ins/pygimp/gimpui.defs
@@ -30,7 +30,7 @@
(define-object ChainButton
(in-module "Gimp")
- (parent "GtkTable")
+ (parent "GtkGrid")
(c-name "GimpChainButton")
(gtype-id "GIMP_TYPE_CHAIN_BUTTON")
)
@@ -352,7 +352,7 @@
(define-object SizeEntry
(in-module "Gimp")
- (parent "GtkTable")
+ (parent "GtkGrid")
(c-name "GimpSizeEntry")
(gtype-id "GIMP_TYPE_SIZE_ENTRY")
)
diff --git a/plug-ins/pygimp/gimpui.override b/plug-ins/pygimp/gimpui.override
index 5851989..39829de 100644
--- a/plug-ins/pygimp/gimpui.override
+++ b/plug-ins/pygimp/gimpui.override
@@ -54,7 +54,7 @@ import gtk.RadioButton as PyGtkRadioButton_Type
import gtk.SpinButton as PyGtkSpinButton_Type
import gtk.Entry as PyGtkEntry_Type
import gtk.DrawingArea as PyGtkDrawingArea_Type
-import gtk.Table as PyGtkTable_Type
+import gtk.Grid as PyGtkGrid_Type
import gtk.Frame as PyGtkFrame_Type
import gtk.HBox as PyGtkHBox_Type
import gtk.VBox as PyGtkVBox_Type
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]