week-header: turn into a GtkGrid
If the header is a GtkScrolledWindow, all the content (including the top labels and week names) are scrolled. This is a wrong behavior, since only the events should be scrollable. Fix that by making GcalWeekHeader a GtkGrid, and adding the scrolled window in the correct position.
This commit is contained in:
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GCAL_TYPE_WEEK_HEADER (gcal_week_header_get_type())
|
||||
|
||||
G_DECLARE_FINAL_TYPE (GcalWeekHeader, gcal_week_header, GCAL, WEEK_HEADER, GtkScrolledWindow)
|
||||
G_DECLARE_FINAL_TYPE (GcalWeekHeader, gcal_week_header, GCAL, WEEK_HEADER, GtkGrid)
|
||||
|
||||
void gcal_week_header_set_manager (GcalWeekHeader *self,
|
||||
GcalManager *manager);
|
||||
|
||||
Reference in New Issue
Block a user