[gnome-builder/wip/libide] libide: bind title to test window title
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: bind title to test window title
- Date: Tue, 3 Mar 2015 08:30:05 +0000 (UTC)
commit f8e482ba63faaea72f2c8864ef843ccdfaff4c48
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 3 00:29:41 2015 -0800
libide: bind title to test window title
tests/test-ide-source-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-ide-source-view.c b/tests/test-ide-source-view.c
index bb9ed72..e2bdde8 100644
--- a/tests/test-ide-source-view.c
+++ b/tests/test-ide-source-view.c
@@ -22,6 +22,7 @@
static IdeContext *gContext;
static const gchar *gFileName = "test.c";
+static GtkWindow *window;
static void
load_cb (GObject *object,
@@ -49,6 +50,8 @@ load_cb (GObject *object,
return;
}
+ g_object_bind_property (buffer, "title", window, "title", G_BINDING_SYNC_CREATE);
+
ide_buffer_set_highlight_diagnostics (buffer, TRUE);
gtk_source_buffer_set_style_scheme (GTK_SOURCE_BUFFER (buffer), style);
gtk_text_view_set_buffer (GTK_TEXT_VIEW (source_view), GTK_TEXT_BUFFER (buffer));
@@ -116,7 +119,6 @@ main (gint argc,
GFile *project_file;
GtkScrolledWindow *scroller;
IdeSourceView *source_view;
- GtkWindow *window;
GCancellable *cancellable;
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]