diff --git a/data/ui/weather-settings.ui b/data/ui/weather-settings.ui index 086a5f73..6fd72a7e 100644 --- a/data/ui/weather-settings.ui +++ b/data/ui/weather-settings.ui @@ -10,7 +10,7 @@ _Weather - main-menu + main True True True diff --git a/data/ui/window.ui b/data/ui/window.ui index b3448c80..63612326 100644 --- a/data/ui/window.ui +++ b/data/ui/window.ui @@ -370,55 +370,44 @@ + - - + True - False - False - slide-left-right - True + 12 + vertical + + - - - - 12 + True - vertical - - - - - _Synchronize - app.sync - True - - - - - _Weather - weather-menu - True - - + app.sync + _Synchronize - - main-menu - - + True - False + weather + _Weather - - weather-menu - + + + + + True + False + + + weather + + + diff --git a/src/gcal-window.c b/src/gcal-window.c index 5f2830fc..ffe17473 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -126,7 +126,6 @@ struct _GcalWindow GtkWidget *today_button; GtkWidget *forward_button; GtkWidget *views_switcher; - GtkWidget *win_menu_stack; /* new event popover widgets */ GtkWidget *quick_add_popover; @@ -929,14 +928,6 @@ window_state_changed (GtkWidget *widget, return FALSE; } -static void -on_popover_menu_visible_cb (GtkWidget *widget, - GParamSpec *pspec, - GcalWindow *self) -{ - gtk_stack_set_visible_child_name (GTK_STACK (self->win_menu_stack), "main-menu"); -} - static void edit_event (GcalQuickAddPopover *popover, GcalEvent *event, @@ -1479,7 +1470,6 @@ gcal_window_class_init (GcalWindowClass *klass) gtk_widget_class_bind_template_child (widget_class, GcalWindow, views_overlay); gtk_widget_class_bind_template_child (widget_class, GcalWindow, views_stack); gtk_widget_class_bind_template_child (widget_class, GcalWindow, views_switcher); - gtk_widget_class_bind_template_child (widget_class, GcalWindow, win_menu_stack); gtk_widget_class_bind_template_child (widget_class, GcalWindow, weather_settings); gtk_widget_class_bind_template_child (widget_class, GcalWindow, week_view); gtk_widget_class_bind_template_child (widget_class, GcalWindow, year_view); @@ -1497,8 +1487,6 @@ gcal_window_class_init (GcalWindowClass *klass) gtk_widget_class_bind_template_callback (widget_class, view_changed); gtk_widget_class_bind_template_callback (widget_class, date_updated); - gtk_widget_class_bind_template_callback (widget_class, on_popover_menu_visible_cb); - /* Event removal related */ gtk_widget_class_bind_template_callback (widget_class, hide_notification); gtk_widget_class_bind_template_callback (widget_class, remove_event);