+
+ bool on_image_eventbox_button_pressed (Gdk.EventButton event) {
+ if (event.button != 1)
+ return true;
+ if (LiftFlags.SMOKER in lift.flags)
+ Banner.show_information (this, null, _("Smoker"));
+ if (LiftFlags.NON_SMOKER in lift.flags)
+ Banner.show_information (this, null, _("Non-smoker"));
+ return false;
+ }
+
+ void on_orientation_changed () {
+ // Maybe this will be fixed directly in Maemo-GTK, see
+ // http://lists.maemo.org/pipermail/maemo-developers/2010-May/026332.html
+ vbox.queue_resize ();
+
+ table.remove (button_calendar);
+ table.remove (label_driver);
+ table.remove (button_phone);
+ table.remove (button_sms);
+ if (BeifahrerProgram.orientation.portrait) {
+ table.attach (button_calendar, 0, 2, 0, 1, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, 0, 0);
+ table.attach (label_driver, 0, 2, 1, 2, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, MARGIN_DEFAULT, 0);
+ table.attach (button_phone, 0, 2, 2, 3, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, 0, 0);
+ table.attach (button_sms, 0, 2, 3, 4, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, 0, 0);
+ } else {
+ table.attach (button_calendar, 1, 2, 0, 1, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, 0, 0);
+ table.attach (label_driver, 0, 1, 1, 2, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, MARGIN_DEFAULT, 0);
+ table.attach (button_phone, 1, 2, 1, 2, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, 0, 0);
+ table.attach (button_sms, 1, 2, 2, 3, AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.FILL, 0, 0);
+ }
+ }