Ignore:
Timestamp:
07/04/19 17:29:58 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Removed conditions on pygobject (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/statusbar.py

    r919 r994  
    3030        self._connected = False
    3131       
    32         self.set_shadow_type(gtk.ShadowType.NONE if pygobject
    33                              else gtk.SHADOW_NONE)
     32        self.set_shadow_type(gtk.ShadowType.NONE)
    3433
    3534        frameAlignment = gtk.Alignment(xscale = 1.0, yscale = 1.0)
     
    5554        self._connStateArea.set_tooltip_markup(xstr("statusbar_conn_tooltip"))
    5655
    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)
    6157
    6258        alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5)
     
    130126            icon = self._connGreyIcon
    131127
    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()
    139130
    140131    def _updateFlightStatus(self):
Note: See TracChangeset for help on using the changeset viewer.