[gnome-builder] GbEditorView: proxy grab_focus to frame
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbEditorView: proxy grab_focus to frame
- Date: Thu, 11 Dec 2014 00:09:48 +0000 (UTC)
commit c1f142e494386f26eb643cdc579ee2dae3e7b16e
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 8 00:43:14 2014 -0800
GbEditorView: proxy grab_focus to frame
src/editor/gb-editor-view.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-view.c b/src/editor/gb-editor-view.c
index 36ae0fd..5772acb 100644
--- a/src/editor/gb-editor-view.c
+++ b/src/editor/gb-editor-view.c
@@ -110,6 +110,14 @@ gb_editor_view_set_document (GbEditorView *view,
}
static void
+gb_editor_view_grab_focus (GtkWidget *widget)
+{
+ GbEditorView *view = (GbEditorView *)widget;
+
+ gtk_widget_grab_focus (GTK_WIDGET (view->priv->frame));
+}
+
+static void
gb_editor_view_finalize (GObject *object)
{
GbEditorView *view = (GbEditorView *)object;
@@ -168,6 +176,8 @@ gb_editor_view_class_init (GbEditorViewClass *klass)
object_class->get_property = gb_editor_view_get_property;
object_class->set_property = gb_editor_view_set_property;
+ widget_class->grab_focus = gb_editor_view_grab_focus;
+
view_class->get_document = gb_editor_view_get_document;
gParamSpecs [PROP_DOCUMENT] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]