[gtksourceview/wip/minimap] fix test widget
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/minimap] fix test widget
- Date: Sat, 2 May 2015 20:44:45 +0000 (UTC)
commit 43ccd7cb57ec7ba8998123d6bf14759b0440615f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 2 22:41:49 2015 +0200
fix test widget
tests/test-widget.c | 6 +++---
tests/test-widget.ui | 12 ++----------
2 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/tests/test-widget.c b/tests/test-widget.c
index ac8e7e9..e5a6f66 100644
--- a/tests/test-widget.c
+++ b/tests/test-widget.c
@@ -52,7 +52,7 @@ struct _TestWidgetPrivate
GtkSourceView *view;
GtkSourceBuffer *buffer;
GtkSourceFile *file;
- GtkWidget *map_scrolledwindow;
+ GtkSourceMap *map;
GtkCheckButton *show_map_checkbutton;
GtkCheckButton *indent_width_checkbutton;
GtkSpinButton *indent_width_spinbutton;
@@ -982,7 +982,7 @@ test_widget_class_init (TestWidgetClass *klass)
gtk_widget_class_bind_template_callback (widget_class, smart_home_end_changed_cb);
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, view);
- gtk_widget_class_bind_template_child_private (widget_class, TestWidget, map_scrolledwindow);
+ gtk_widget_class_bind_template_child_private (widget_class, TestWidget, map);
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, show_map_checkbutton);
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, indent_width_checkbutton);
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, indent_width_spinbutton);
@@ -1043,7 +1043,7 @@ test_widget_init (TestWidget *self)
g_object_bind_property (self->priv->show_map_checkbutton,
"active",
- self->priv->map_scrolledwindow,
+ self->priv->map,
"visible",
G_BINDING_SYNC_CREATE);
diff --git a/tests/test-widget.ui b/tests/test-widget.ui
index b34c7cb..82c4f40 100644
--- a/tests/test-widget.ui
+++ b/tests/test-widget.ui
@@ -542,18 +542,10 @@
</packing>
</child>
<child>
- <object class="GtkScrolledWindow" id="map_scrolledwindow">
+ <object class="GtkSourceMap" id="map">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <child>
- <object class="GtkSourceMap" id="map">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- <property name="view">view</property>
- </object>
- </child>
+ <property name="view">view</property>
</object>
<packing>
<property name="left_attach">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]