build: remove unneeded code
GObject type system zeroing instance private data, so initialization to NULL and FALSE is not needed. Misc code styles fixes.
This commit is contained in:
@@ -207,12 +207,6 @@ gcal_event_widget_class_init(GcalEventWidgetClass *klass)
|
||||
static void
|
||||
gcal_event_widget_init(GcalEventWidget *self)
|
||||
{
|
||||
GcalEventWidgetPrivate *priv;
|
||||
|
||||
priv = gcal_event_widget_get_instance_private (self);
|
||||
priv->button_pressed = FALSE;
|
||||
priv->color = NULL;
|
||||
|
||||
gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
|
||||
gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user