[gnome-calendar] calendar-management-dialog: Trivial style cleanup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] calendar-management-dialog: Trivial style cleanup
- Date: Tue, 25 Jun 2019 00:34:45 +0000 (UTC)
commit 170347b016756e80338f431f0bb796e9ebbf68c6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jun 23 22:49:17 2019 -0300
calendar-management-dialog: Trivial style cleanup
.../gcal-calendar-management-dialog.c | 33 ++++++++++------------
1 file changed, 15 insertions(+), 18 deletions(-)
---
diff --git a/src/gui/calendar-management/gcal-calendar-management-dialog.c
b/src/gui/calendar-management/gcal-calendar-management-dialog.c
index 34b3fa59..047b7013 100644
--- a/src/gui/calendar-management/gcal-calendar-management-dialog.c
+++ b/src/gui/calendar-management/gcal-calendar-management-dialog.c
@@ -88,6 +88,11 @@ enum
static GParamSpec *properties[N_PROPS] = { NULL, };
+
+/*
+ * Auxiliary methods
+ */
+
static void
set_page (GcalCalendarManagementDialog *self,
const gchar *page_name,
@@ -211,9 +216,9 @@ gcal_calendar_management_dialog_constructed (GObject *object)
static void
gcal_calendar_management_dialog_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GcalCalendarManagementDialog *self = (GcalCalendarManagementDialog *) object;
@@ -227,11 +232,12 @@ gcal_calendar_management_dialog_get_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
}
+
static void
gcal_calendar_management_dialog_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GcalCalendarManagementDialog *self = (GcalCalendarManagementDialog *) object;
@@ -252,17 +258,11 @@ gcal_calendar_management_dialog_set_property (GObject *object,
static void
gcal_calendar_management_dialog_class_init (GcalCalendarManagementDialogClass *klass)
{
- GObjectClass *object_class;
- GtkWidgetClass *widget_class;
-
- /**
- * Since we cannot guarantee that the
- * type system registered ESourceLocal,
- * it must be ensured at least here.
- */
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
g_type_ensure (E_TYPE_SOURCE_LOCAL);
- object_class = G_OBJECT_CLASS (klass);
object_class->constructed = gcal_calendar_management_dialog_constructed;
object_class->get_property = gcal_calendar_management_dialog_get_property;
object_class->set_property = gcal_calendar_management_dialog_set_property;
@@ -275,9 +275,6 @@ gcal_calendar_management_dialog_class_init (GcalCalendarManagementDialogClass *k
g_object_class_install_properties (object_class, N_PROPS, properties);
- widget_class = GTK_WIDGET_CLASS (klass);
-
- /* bind things for/from the template class */
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
"/org/gnome/calendar/calendar-management-dialog.ui");
gtk_widget_class_bind_template_child (widget_class, GcalCalendarManagementDialog, headerbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]