event-widget: Properly overflow
This explicitely allows the hour widget and the content as a whole to overflow horizontally, and hides what overflows, keeping the data within the boundaries of the widget while still allowing it to reach very narrow sizes without error messages. This purposefully leaves the indentation broken to help reviewing the actual changes.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
ca0a5de0f9
commit
2baa96d29f
@@ -28,6 +28,7 @@
|
||||
#include "gcal-debug.h"
|
||||
#include "gcal-event-popover.h"
|
||||
#include "gcal-event-widget.h"
|
||||
#include "gcal-overflow-bin.h"
|
||||
#include "gcal-utils.h"
|
||||
|
||||
#define DESC_MAX_CHAR 200
|
||||
@@ -759,6 +760,8 @@ gcal_event_widget_init (GcalEventWidget *self)
|
||||
widget = GTK_WIDGET (self);
|
||||
self->clock_format_24h = is_clock_format_24h ();
|
||||
|
||||
g_type_ensure (GCAL_TYPE_OVERFLOW_BIN);
|
||||
|
||||
gtk_widget_init_template (widget);
|
||||
|
||||
gtk_widget_set_cursor_from_name (GTK_WIDGET (self), "pointer");
|
||||
|
||||
Reference in New Issue
Block a user