event-editor/dialog: Use action in the Save / Done button
This commit is contained in:
@@ -455,13 +455,6 @@ on_ask_recurrence_response_save_cb (GcalEvent *event,
|
|||||||
GCAL_EXIT;
|
GCAL_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
on_done_button_clicked_cb (GtkButton *button,
|
|
||||||
GcalEventEditorDialog *self)
|
|
||||||
{
|
|
||||||
save_event_and_close_dialog (self);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Gobject overrides
|
* Gobject overrides
|
||||||
@@ -616,7 +609,6 @@ gcal_event_editor_dialog_class_init (GcalEventEditorDialogClass *klass)
|
|||||||
/* callbacks */
|
/* callbacks */
|
||||||
gtk_widget_class_bind_template_callback (widget_class, on_cancel_button_clicked_cb);
|
gtk_widget_class_bind_template_callback (widget_class, on_cancel_button_clicked_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, on_delete_row_activated_cb);
|
gtk_widget_class_bind_template_callback (widget_class, on_delete_row_activated_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, on_done_button_clicked_cb);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<object class="GtkButton" id="done_button">
|
<object class="GtkButton" id="done_button">
|
||||||
<property name="use-underline">True</property>
|
<property name="use-underline">True</property>
|
||||||
<property name="label" translatable="yes">_Done</property>
|
<property name="label" translatable="yes">_Done</property>
|
||||||
<signal name="clicked" handler="on_done_button_clicked_cb" object="GcalEventEditorDialog" swapped="no"/>
|
<property name="action-name">event-editor.save</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="suggested-action"/>
|
<class name="suggested-action"/>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user