[gtk+/wip/baedert/gtkimageview: 214/294] demo: Separate code and declarations
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 214/294] demo: Separate code and declarations
- Date: Sat, 30 Apr 2016 07:12:51 +0000 (UTC)
commit d430b6e855471024ee36884518a7443c3796d92a
Author: Timm Bäder <mail baedert org>
Date: Fri Jan 22 17:40:06 2016 +0100
demo: Separate code and declarations
demos/gtk-demo/image_view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/image_view.c b/demos/gtk-demo/image_view.c
index 73de799..176daef 100644
--- a/demos/gtk-demo/image_view.c
+++ b/demos/gtk-demo/image_view.c
@@ -229,8 +229,6 @@ do_image_view (GtkWidget *do_widget)
{
GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
GtkBuilder *builder = gtk_builder_new_from_resource ("/imageview/image_view.ui");
- image_view = GTK_WIDGET (gtk_builder_get_object (builder, "image_view"));
- uri_entry = GTK_WIDGET (gtk_builder_get_object (builder, "uri_entry"));
GtkWidget *box = GTK_WIDGET (gtk_builder_get_object (builder, "box"));
GtkWidget *snap_angle_button = GTK_WIDGET (gtk_builder_get_object (builder, "snap_angle_check_button"));
GtkWidget *fit_allocation_button = GTK_WIDGET (gtk_builder_get_object (builder,
"fit_allocation_check_button"));
@@ -239,6 +237,8 @@ do_image_view (GtkWidget *do_widget)
GtkAdjustment *scale_adjustment = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "scale_adjustment"));
GtkAdjustment *angle_adjustment = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "angle_adjustment"));
+ image_view = GTK_WIDGET (gtk_builder_get_object (builder, "image_view"));
+ uri_entry = GTK_WIDGET (gtk_builder_get_object (builder, "uri_entry"));
/*gtk_window_set_title (GTK_WINDOW (window), "blue: current, green: anchor");*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]