gcal-window: added new application flow

gcal-window changes:
  1. Added #GtkStackSwitcher for view-switching handling
  2. Reworked view switching behavior
  3. Added window states: search-mode, new-event-mode
  4. Implemented search using #GtkSearchBar, allowing to handle [Esc] keys closing the search
  5. Removed temporally SourcesView

gcal-application changes:
  1. Added actions for [Search] and [New Event] with its keyboard-shorcut

A lot of ground work is set here, the code is fill with FIXMEs and comment
for stuff-TODO
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:24 -05:00
parent 32cd17c8e8
commit 9b828b39be
3 changed files with 248 additions and 280 deletions
+10 -5
View File
@@ -52,14 +52,19 @@ struct _GcalWindowClass
};
GType gcal_window_get_type (void);
GType gcal_window_get_type (void);
GtkWidget* gcal_window_new_with_view (GcalApplication *app,
GcalWindowViewType view_type);
GtkWidget* gcal_window_new_with_view (GcalApplication *app,
GcalWindowViewType view_type);
void gcal_window_show_notification (GcalWindow *window);
void gcal_window_new_event (GcalWindow *window);
void gcal_window_hide_notification (GcalWindow *window);
void gcal_window_set_search_mode (GcalWindow *window,
gboolean enabled);
void gcal_window_show_notification (GcalWindow *window);
void gcal_window_hide_notification (GcalWindow *window);
G_END_DECLS