diff options
author | Gary Martin <gary@garycmartin.com> | 2012-11-25 18:05:51 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2012-11-25 18:05:51 (GMT) |
commit | b76193f826e58720b7eb694e8206d0cfd23136ce (patch) | |
tree | bb9b5a940150cc7e23fb5ead3e0574416d0feaa3 | |
parent | 9c3c7a8eb8dc0a4a05a2092a135da342e41f2c8d (diff) |
More GTK3 enum and props corrections
-rw-r--r-- | layout.py | 4 | ||||
-rw-r--r-- | toolbars.py | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -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']) |