Commit 4ab0c343 authored by Isaque Galdino de Araujo's avatar Isaque Galdino de Araujo

editor-toolbar: Remove cut/copy/paste buttons

parent 3c8426c0
Pipeline #39461 passed with stage
in 4 minutes and 29 seconds
......@@ -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>
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment