[gitg/gtk3] files panel: set the buffer in the ui file
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/gtk3] files panel: set the buffer in the ui file
- Date: Thu, 21 Jul 2011 21:48:28 +0000 (UTC)
commit 169968d92df8e5f6c4faf4a3229273b0e8cbc5c0
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Jul 21 23:48:53 2011 +0200
files panel: set the buffer in the ui file
gitg/gitg-revision-files-panel.c | 3 ---
gitg/gitg-revision-files-panel.ui | 2 ++
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gitg/gitg-revision-files-panel.c b/gitg/gitg-revision-files-panel.c
index 3caa690..8cee3fe 100644
--- a/gitg/gitg-revision-files-panel.c
+++ b/gitg/gitg-revision-files-panel.c
@@ -525,9 +525,6 @@ gitg_revision_files_view_parser_finished (GtkBuildable *buildable,
files_view->priv->contents = GTK_SOURCE_VIEW (gtk_builder_get_object (builder,
"revision_files_contents"));
- gtk_text_view_set_buffer (GTK_TEXT_VIEW(files_view->priv->contents),
- GTK_TEXT_BUFFER(gtk_source_buffer_new (NULL)));
-
gitg_utils_set_monospace_font (GTK_WIDGET(files_view->priv->contents));
gtk_tree_view_set_model (files_view->priv->tree_view,
GTK_TREE_MODEL(files_view->priv->store));
diff --git a/gitg/gitg-revision-files-panel.ui b/gitg/gitg-revision-files-panel.ui
index 4d490c8..acdbc8a 100644
--- a/gitg/gitg-revision-files-panel.ui
+++ b/gitg/gitg-revision-files-panel.ui
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<interface>
+ <object class="GtkSourceBuffer" id="source_buffer"></object>
<object class="GitgRevisionFilesView" id="revision_files_view">
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -50,6 +51,7 @@
<property name="shadow_type">etched-in</property>
<child>
<object class="GtkSourceView" id="revision_files_contents">
+ <property name="buffer">source_buffer</property>
<property name="editable">False</property>
<property name="show_line_numbers">True</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]