Changed toolbar button to Toggles.

Added behavior in GcalToolbar to manage the toogling mode of the view buttons
Added parameter in gcal_window_new to set the view-type initially.
This commit is contained in:
Erick Pérez Castellanos
2012-07-13 09:27:31 -04:00
parent f462712227
commit 08f5e46513
5 changed files with 89 additions and 30 deletions
+4 -1
View File
@@ -974,7 +974,8 @@ gcal_window_undo_remove_event (GtkButton *button,
/* Public API */
GtkWidget*
gcal_window_new (GcalApplication *app)
gcal_window_new_with_view (GcalApplication *app,
GcalWindowViewType view_type)
{
GcalWindow *win;
GcalManager *manager;
@@ -997,6 +998,8 @@ gcal_window_new (GcalApplication *app)
G_CALLBACK (gcal_window_events_removed),
win);
gcal_toolbar_set_active_view (GCAL_TOOLBAR (win->priv->main_toolbar),
view_type);
return GTK_WIDGET (win);
}