Changeset 994:e71fbf2ee978 for src/mlx/gui/statusbar.py
- Timestamp:
- 07/04/19 17:29:58 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/statusbar.py
r919 r994 30 30 self._connected = False 31 31 32 self.set_shadow_type(gtk.ShadowType.NONE if pygobject 33 else gtk.SHADOW_NONE) 32 self.set_shadow_type(gtk.ShadowType.NONE) 34 33 35 34 frameAlignment = gtk.Alignment(xscale = 1.0, yscale = 1.0) … … 55 54 self._connStateArea.set_tooltip_markup(xstr("statusbar_conn_tooltip")) 56 55 57 if pygobject: 58 self._connStateArea.connect("draw", self._drawConnState) 59 else: 60 self._connStateArea.connect("expose_event", self._drawConnState) 56 self._connStateArea.connect("draw", self._drawConnState) 61 57 62 58 alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5) … … 130 126 icon = self._connGreyIcon 131 127 132 if pygobject: 133 gdk.cairo_set_source_pixbuf(eventOrContext, icon, 0, 0) 134 eventOrContext.paint() 135 else: 136 gc = connStateArea.get_style().fg_gc[gtk.STATE_NORMAL] 137 drawable = connStateArea.get_window() 138 drawable.draw_pixbuf(gc, icon, 0, 0, 0, 0) 128 gdk.cairo_set_source_pixbuf(eventOrContext, icon, 0, 0) 129 eventOrContext.paint() 139 130 140 131 def _updateFlightStatus(self):
Note:
See TracChangeset
for help on using the changeset viewer.