summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-06-03 23:20:12 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-06-24 21:32:58 -0300
commit5e9f7bf01ee91e85b39b0dbf9e8fc6f4e969c468 (patch)
tree4f0b4b9639dcd6bd7c49ec22302da9244af499c7 /data
parent804479ebcc5e3ba2123e90e6c943ab84da83bb1a (diff)
downloadgnome-calendar-5e9f7bf01ee91e85b39b0dbf9e8fc6f4e969c468.tar.gz
new-calendar-page: Add "Cancel" and "Add" header buttons
Diffstat (limited to 'data')
-rw-r--r--data/ui/calendar-management-dialog.ui27
-rw-r--r--data/ui/new-calendar-page.ui19
2 files changed, 19 insertions, 27 deletions
diff --git a/data/ui/calendar-management-dialog.ui b/data/ui/calendar-management-dialog.ui
index 4955e1a2..8b75a303 100644
--- a/data/ui/calendar-management-dialog.ui
+++ b/data/ui/calendar-management-dialog.ui
@@ -55,33 +55,6 @@
</child>
</object>
</child>
- <child>
- <object class="GtkButton" id="cancel_button">
- <property name="label" translatable="yes">Cancel</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="cancel_button_clicked" object="GcalCalendarManagementDialog" swapped="no"/>
- </object>
- <packing>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="add_button">
- <property name="label" translatable="yes">Add</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="add_button_clicked" object="GcalCalendarManagementDialog" swapped="no"/>
- <style>
- <class name="suggested-action"/>
- </style>
- </object>
- <packing>
- <property name="pack_type">end</property>
- <property name="position">1</property>
- </packing>
- </child>
</object>
</child>
</template>
diff --git a/data/ui/new-calendar-page.ui b/data/ui/new-calendar-page.ui
index 0f307796..5c19659c 100644
--- a/data/ui/new-calendar-page.ui
+++ b/data/ui/new-calendar-page.ui
@@ -211,4 +211,23 @@
</child>
</object>
+ <!-- Headerbar buttons -->
+ <object class="GtkButton" id="cancel_button">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Cancel</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked" handler="on_cancel_button_clicked_cb" object="GcalNewCalendarPage" swapped="no" />
+ </object>
+ <object class="GtkButton" id="add_button">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Add</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked" handler="on_add_button_clicked_cb" object="GcalNewCalendarPage" swapped="no" />
+ <style>
+ <class name="suggested-action"/>
+ </style>
+ </object>
</interface>