[gnome-builder/wip/libide] libide: add IdeSourceView::clear-snippets action
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add IdeSourceView::clear-snippets action
- Date: Wed, 11 Mar 2015 00:25:40 +0000 (UTC)
commit 13398bebdb499414a19c068610e15597a04ecd75
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 10 17:24:48 2015 -0700
libide: add IdeSourceView::clear-snippets action
libide/ide-source-view.c | 12 ++++++++++++
libide/ide-source-view.h | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 139e575..302ed74 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -153,6 +153,7 @@ enum {
CHANGE_CASE,
CLEAR_COUNT,
CLEAR_SELECTION,
+ CLEAR_SNIPPETS,
CYCLE_COMPLETION,
DELETE_SELECTION,
INDENT_SELECTION,
@@ -2983,6 +2984,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
klass->auto_indent = ide_source_view_real_auto_indent;
klass->change_case = ide_source_view_real_change_case;
klass->clear_count = ide_source_view_real_clear_count;
+ klass->clear_snippets = ide_source_view_clear_snippets;
klass->clear_selection = ide_source_view_real_clear_selection;
klass->cycle_completion = ide_source_view_real_cycle_completion;
klass->delete_selection = ide_source_view_real_delete_selection;
@@ -3162,6 +3164,16 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
+ gSignals [CLEAR_SNIPPETS] =
+ g_signal_new ("clear-snippets",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (IdeSourceViewClass, clear_snippets),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE,
+ 0);
+
gSignals [CYCLE_COMPLETION] =
g_signal_new ("cycle-completion",
G_TYPE_FROM_CLASS (klass),
diff --git a/libide/ide-source-view.h b/libide/ide-source-view.h
index 9a20a63..d8fddfa 100644
--- a/libide/ide-source-view.h
+++ b/libide/ide-source-view.h
@@ -210,6 +210,7 @@ struct _IdeSourceViewClass
GtkSourceChangeCaseType type);
void (*clear_count) (IdeSourceView *self);
void (*clear_selection) (IdeSourceView *self);
+ void (*clear_snippets) (IdeSourceView *self);
void (*cycle_completion) (IdeSourceView *self,
GtkDirectionType direction);
void (*delete_selection) (IdeSourceView *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]