Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-11-25 18:05:51 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-11-25 18:05:51 (GMT)
commitb76193f826e58720b7eb694e8206d0cfd23136ce (patch)
treebb9b5a940150cc7e23fb5ead3e0574416d0feaa3
parent9c3c7a8eb8dc0a4a05a2092a135da342e41f2c8d (diff)
More GTK3 enum and props corrections
-rw-r--r--layout.py4
-rw-r--r--toolbars.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/layout.py b/layout.py
index 95f67a0..ec25ffb 100644
--- a/layout.py
+++ b/layout.py
@@ -363,7 +363,7 @@ class CalcLayout:
def _textview_realize_cb(self, widget):
'''Change textview properties once window is created.'''
- win = widget.get_window(Gtk.TEXT_WINDOW_TEXT)
- win.set_cursor(Gdk.Cursor(Gdk.HAND1))
+ win = widget.get_window(Gtk.TextWindowType.TEXT)
+ win.set_cursor(Gdk.Cursor(Gdk.CursorType.HAND1))
return False
diff --git a/toolbars.py b/toolbars.py
index bb9358f..4fed000 100644
--- a/toolbars.py
+++ b/toolbars.py
@@ -79,7 +79,8 @@ class IconToggleToolButton(ToggleToolButton):
self.selected = (self.selected + 1) % len(self.items)
but = self.items[self.selected]
if 'icon' in but and _icon_exists(but['icon']):
- self.set_named_icon(but['icon'])
+ #self.set_named_icon(but['icon'])
+ self.props.icon_name = but['icon']
elif 'html' in but:
_logger.info('Setting html: %s', but['html'])
self.set_label(but['html'])