Switch the layout when the screen geometry changes
[beifahrer] / src / lift-detail-window.vala
index 346b1fc..e519fda 100644 (file)
@@ -150,7 +150,7 @@ public class LiftDetailWindow : StackableWindow {
                button_email.hide ();
                add (alignment);
 
-               BeifahrerProgram.orientation.changed.connect (on_orientation_changed);
+               Gdk.Screen.get_default ().size_changed.connect (on_orientation_changed);
                add_contact.clicked.connect (on_add_contact_clicked);
                goto_website.clicked.connect (on_goto_website_clicked);
                image_eventbox.button_press_event.connect (on_image_eventbox_button_pressed);
@@ -371,7 +371,7 @@ public class LiftDetailWindow : StackableWindow {
                return false;
        }
 
-       void on_orientation_changed () {
+       void on_orientation_changed (Gdk.Screen screen) {
                // Maybe this will be fixed directly in Maemo-GTK, see
                // http://lists.maemo.org/pipermail/maemo-developers/2010-May/026332.html
                vbox.queue_resize ();