~elementary-pantheon/wingpanel/freya

« back to all changes in this revision

Viewing changes to src/Indicator/IndicatorObjectEntry.vala

  • Committer: RabbitBot
  • Author(s): Victor Martinez
  • Date: 2015-03-07 23:01:05 UTC
  • mfrom: (208.1.1 wingpanel)
  • Revision ID: rabbitbot-20150307230105-vpltiszhs6xl38ly
Support middle click on indicator. Fixes lp:1032629

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
            return false;
248
248
        }
249
249
 
 
250
        public override bool button_press_event (Gdk.EventButton event) {
 
251
            if (event.button == Gdk.BUTTON_MIDDLE) {
 
252
                parent_object.secondary_activate (entry, event.time);
 
253
                return true;
 
254
            }
 
255
 
 
256
            return base.button_press_event (event);
 
257
        }
 
258
 
250
259
        private void ensure_max_size (Gtk.Image image) {
251
260
            var pixbuf = image.pixbuf;
252
261