[anjuta] anjuta: Do not use GDL members deprecated in version 3.6



commit 1e76a12618da9fd1e8d52d1f596505513cbf3f00
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Sun Oct 28 17:08:06 2012 +0100

    anjuta: Do not use GDL members deprecated in version 3.6

 configure.ac           |    2 +-
 src/action-callbacks.c |    2 +-
 src/anjuta-window.c    |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7a74578..cf28f05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ GDA4_REQUIRED=4.2.0
 GDA5_REQUIRED=5.0.0
 VTE_REQUIRED=0.27.6
 LIBXML_REQUIRED=2.4.23
-GDL_REQUIRED=3.5.4
+GDL_REQUIRED=3.5.5
 LIBWNCK_REQUIRED=2.12
 
 dnl GtkSourceView
diff --git a/src/action-callbacks.c b/src/action-callbacks.c
index b91dfef..9583d0a 100644
--- a/src/action-callbacks.c
+++ b/src/action-callbacks.c
@@ -65,7 +65,7 @@ void
 on_layout_lock_toggle (GtkAction *action, AnjutaWindow *win)
 {
 	if (win->layout_manager)
-		g_object_set (win->layout_manager->master, "locked",
+		g_object_set (gdl_dock_layout_get_master (win->layout_manager), "locked",
 					  gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)),
 					  NULL);
 }
diff --git a/src/anjuta-window.c b/src/anjuta-window.c
index b9cd14d..898b7a2 100644
--- a/src/anjuta-window.c
+++ b/src/anjuta-window.c
@@ -307,7 +307,7 @@ on_gdl_style_changed (GSettings* settings,
 	else if (strcasecmp (pr_style, "Tabs") == 0)
 		style = GDL_SWITCHER_STYLE_TABS;
 
-	g_object_set (G_OBJECT(win->layout_manager->master), "switcher-style",
+	g_object_set (gdl_dock_layout_get_master (win->layout_manager), "switcher-style",
 				  style, NULL);
 	g_free (pr_style);
 }
@@ -590,7 +590,7 @@ anjuta_window_instance_init (AnjutaWindow *win)
 	win->layout_manager = gdl_dock_layout_new (GDL_DOCK (win->dock));
 	g_signal_connect (win->layout_manager, "notify::dirty",
 					  G_CALLBACK (on_layout_dirty_notify), win);
-	g_signal_connect (win->layout_manager->master, "notify::locked",
+	g_signal_connect (gdl_dock_layout_get_master (win->layout_manager), "notify::locked",
 					  G_CALLBACK (on_layout_locked_notify), win);
 
 	/* UI engine */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]