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
+6 -4
View File
@@ -21,6 +21,7 @@
#define __GCAL_WINDOW_H__
#include "gcal-application.h"
#include "gcal-utils.h"
#include <gtk/gtk.h>
@@ -53,12 +54,13 @@ struct _GcalWindowClass
GType gcal_window_get_type (void);
GtkWidget* gcal_window_new (GcalApplication *app);
GtkWidget* gcal_window_new_with_view (GcalApplication *app,
GcalWindowViewType view_type);
void gcal_window_show_notification (GcalWindow *window,
GtkWidget *notification);
void gcal_window_show_notification (GcalWindow *window,
GtkWidget *notification);
void gcal_window_hide_notification (GcalWindow *window);
void gcal_window_hide_notification (GcalWindow *window);
G_END_DECLS