event-editor/multi-choice: Comment code sections
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/603>
This commit is contained in:
@@ -69,6 +69,10 @@ static GParamSpec *properties[NUM_PROPERTIES] = { NULL, };
|
|||||||
|
|
||||||
G_DEFINE_TYPE (GcalMultiChoice, gcal_multi_choice, GTK_TYPE_BOX)
|
G_DEFINE_TYPE (GcalMultiChoice, gcal_multi_choice, GTK_TYPE_BOX)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Auxiliary methods
|
||||||
|
*/
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
get_value_string (GcalMultiChoice *self,
|
get_value_string (GcalMultiChoice *self,
|
||||||
gint value)
|
gint value)
|
||||||
@@ -246,13 +250,9 @@ popover_destroy_cb (GcalMultiChoice *menu_button)
|
|||||||
gcal_multi_choice_set_popover (menu_button, NULL);
|
gcal_multi_choice_set_popover (menu_button, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
/*
|
||||||
gcal_multi_choice_init (GcalMultiChoice *self)
|
* GObject overrides
|
||||||
{
|
*/
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
|
||||||
|
|
||||||
update_sensitivity (self);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_multi_choice_dispose (GObject *object)
|
gcal_multi_choice_dispose (GObject *object)
|
||||||
@@ -389,6 +389,10 @@ gcal_multi_choice_notify (GObject *object,
|
|||||||
G_OBJECT_CLASS (gcal_multi_choice_parent_class)->notify (object, pspec);
|
G_OBJECT_CLASS (gcal_multi_choice_parent_class)->notify (object, pspec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GtkWidget overrides
|
||||||
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_multi_choice_state_flags_changed (GtkWidget *widget,
|
gcal_multi_choice_state_flags_changed (GtkWidget *widget,
|
||||||
GtkStateFlags previous_state_flags)
|
GtkStateFlags previous_state_flags)
|
||||||
@@ -456,6 +460,10 @@ gcal_multi_choice_grab_focus (GtkWidget *widget)
|
|||||||
return gtk_widget_grab_focus (self->button);
|
return gtk_widget_grab_focus (self->button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Init
|
||||||
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_multi_choice_class_init (GcalMultiChoiceClass *class)
|
gcal_multi_choice_class_init (GcalMultiChoiceClass *class)
|
||||||
{
|
{
|
||||||
@@ -538,6 +546,18 @@ gcal_multi_choice_class_init (GcalMultiChoiceClass *class)
|
|||||||
gtk_widget_class_set_css_name (widget_class, "navigator");
|
gtk_widget_class_set_css_name (widget_class, "navigator");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gcal_multi_choice_init (GcalMultiChoice *self)
|
||||||
|
{
|
||||||
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
||||||
|
update_sensitivity (self);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Public methods
|
||||||
|
*/
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gcal_multi_choice_new (void)
|
gcal_multi_choice_new (void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user