From b76193f826e58720b7eb694e8206d0cfd23136ce Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Sun, 25 Nov 2012 18:05:51 +0000 Subject: More GTK3 enum and props corrections --- 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']) -- cgit v0.9.1