Improved update of toolbar when changing view.
Whenever we change the view through the AppMenu the code for changing the view in GcalWindow was executed twice. Fixed to execute it only once.
This commit is contained in:
committed by
Rene A. Viant Moran
parent
9b4e13f1fc
commit
fe22adc977
+2
-3
@@ -518,8 +518,8 @@ gcal_window_set_property (GObject *object,
|
||||
switch (property_id)
|
||||
{
|
||||
case PROP_ACTIVE_VIEW:
|
||||
gcal_window_set_active_view (GCAL_WINDOW (object),
|
||||
g_value_get_enum (value));
|
||||
gcal_toolbar_set_active_view (GCAL_TOOLBAR (priv->toolbar_actor),
|
||||
g_value_get_enum (value));
|
||||
return;
|
||||
case PROP_ACTIVE_DATE:
|
||||
priv->active_date = g_value_dup_boxed (value);
|
||||
@@ -593,7 +593,6 @@ gcal_window_set_active_view (GcalWindow *window,
|
||||
g_return_if_fail (GCAL_IS_WINDOW (window));
|
||||
priv = window->priv;
|
||||
|
||||
gcal_toolbar_set_active_view (GCAL_TOOLBAR (priv->toolbar_actor), view_type);
|
||||
if ((activated_page = gtk_notebook_page_num (GTK_NOTEBOOK (priv->notebook),
|
||||
priv->views[view_type]))
|
||||
!= -1)
|
||||
|
||||
Reference in New Issue
Block a user