[gnome-notes/111-auto-reveal-of-formatting-bar-gets-annoying: 4/4] editor-toolbar: Remove cut/copy/paste buttons
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes/111-auto-reveal-of-formatting-bar-gets-annoying: 4/4] editor-toolbar: Remove cut/copy/paste buttons
- Date: Tue, 30 Oct 2018 15:37:51 +0000 (UTC)
commit 4c2fa6ce43742f1da0344c8bf59b8bd4bb6b131d
Author: Isaque Galdino <igaldino gmail com>
Date: Fri Oct 26 23:42:16 2018 -0300
editor-toolbar: Remove cut/copy/paste buttons
data/resources/editor-toolbar.ui | 66 +++++-----------------------------------
src/bjb-editor-toolbar.c | 24 ---------------
2 files changed, 7 insertions(+), 83 deletions(-)
---
diff --git a/data/resources/editor-toolbar.ui b/data/resources/editor-toolbar.ui
index 238207d..1275b8f 100644
--- a/data/resources/editor-toolbar.ui
+++ b/data/resources/editor-toolbar.ui
@@ -28,66 +28,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkButtonBox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">expand</property>
- <child>
- <object class="GtkButton" id="cut_button">
- <property name="label" translatable="yes">Cut</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_underline">True</property>
- <signal name="clicked" handler="on_cut_clicked" object="BjbEditorToolbar" swapped="no" />
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="copy_button">
- <property name="label" translatable="yes">Copy</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_underline">True</property>
- <signal name="clicked" handler="on_copy_clicked" object="BjbEditorToolbar" swapped="no" />
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="paste_button">
- <property name="label" translatable="yes">Paste</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_underline">True</property>
- <signal name="clicked" handler="on_paste_clicked" object="BjbEditorToolbar" swapped="no" />
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="pack_type">start</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child type="center">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">6</property>
+ <property name="spacing">6</property>
<child>
<object class="GtkButtonBox">
<property name="visible">True</property>
@@ -189,10 +133,14 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">1</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
+ <packing>
+ <property name="pack_type">start</property>
+ <property name="position">0</property>
+ </packing>
</child>
<child>
<object class="GtkButton" id="link_button">
@@ -206,7 +154,7 @@
</object>
<packing>
<property name="pack_type">end</property>
- <property name="position">2</property>
+ <property name="position">1</property>
</packing>
</child>
</template>
diff --git a/src/bjb-editor-toolbar.c b/src/bjb-editor-toolbar.c
index ffe524b..945b3e6 100644
--- a/src/bjb-editor-toolbar.c
+++ b/src/bjb-editor-toolbar.c
@@ -56,27 +56,6 @@ struct _BjbEditorToolbar
G_DEFINE_TYPE (BjbEditorToolbar, bjb_editor_toolbar, GTK_TYPE_ACTION_BAR)
-static void
-on_cut_clicked (GtkButton *button,
- BjbEditorToolbar *self)
-{
- biji_note_obj_editor_cut (self->note);
-}
-
-static void
-on_copy_clicked (GtkButton *button,
- BjbEditorToolbar *self)
-{
- biji_note_obj_editor_copy (self->note);
-}
-
-static void
-on_paste_clicked (GtkButton *button,
- BjbEditorToolbar *self)
-{
- biji_note_obj_editor_paste (self->note);
-}
-
static void
on_bold_clicked (GtkButton *button,
BjbEditorToolbar *self)
@@ -266,9 +245,6 @@ bjb_editor_toolbar_class_init (BjbEditorToolbarClass *klass)
gtk_widget_class_bind_template_child (widget_class, BjbEditorToolbar, bullets_button);
gtk_widget_class_bind_template_child (widget_class, BjbEditorToolbar, list_button);
- gtk_widget_class_bind_template_callback (widget_class, on_cut_clicked);
- gtk_widget_class_bind_template_callback (widget_class, on_copy_clicked);
- gtk_widget_class_bind_template_callback (widget_class, on_paste_clicked);
gtk_widget_class_bind_template_callback (widget_class, on_bold_clicked);
gtk_widget_class_bind_template_callback (widget_class, on_italic_clicked);
gtk_widget_class_bind_template_callback (widget_class, on_strike_clicked);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]