[cheese] Remove deprecated gtk_action_connect_proxy calls
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Subject: [cheese] Remove deprecated gtk_action_connect_proxy calls
- Date: Fri, 24 Apr 2009 15:17:19 -0400 (EDT)
commit 4de6c27010476c4cdf56081feb5a7112ab24b94d
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Tue Mar 3 19:06:56 2009 +0100
Remove deprecated gtk_action_connect_proxy calls
Replace gtk_action_connect_proxy, deprecated in gtk+ 2.16, with
gtk_activatable_set_related_action. Fixes bug #571383.
Bump gtk requirements to reflect this change.
---
configure.ac | 2 +-
src/cheese-window.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index adaf0db..69aa3af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,7 +59,7 @@ GNOME_DOC_INIT
GLIB_REQUIRED=2.16.0
GOBJECT_REQUIRED=2.12.0
GIO_REQUIRED=2.16.0
-GTK_REQUIRED=2.14.0
+GTK_REQUIRED=2.16.0
GDK_REQUIRED=2.14.0
LIBGNOMEDESKTOP_REQUIRED=2.25.1
GCONF_REQUIRED=2.16.0
diff --git a/src/cheese-window.c b/src/cheese-window.c
index e931488..7a465dd 100644
--- a/src/cheese-window.c
+++ b/src/cheese-window.c
@@ -1818,16 +1818,16 @@ cheese_window_create_window (CheeseWindow *cheese_window)
gtk_action_group_set_sensitive (cheese_window->actions_file, FALSE);
action = gtk_ui_manager_get_action (cheese_window->ui_manager, "/MainMenu/Edit/Effects");
- gtk_action_connect_proxy (GTK_ACTION (action), GTK_WIDGET (cheese_window->button_effects));
- gtk_action_connect_proxy (GTK_ACTION (action), GTK_WIDGET (cheese_window->button_effects_fullscreen));
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (cheese_window->button_effects), action);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (cheese_window->button_effects_fullscreen), action);
action = gtk_ui_manager_get_action (cheese_window->ui_manager, "/MainMenu/Cheese/Photo");
- gtk_action_connect_proxy (GTK_ACTION (action), GTK_WIDGET (cheese_window->button_photo));
- gtk_action_connect_proxy (GTK_ACTION (action), GTK_WIDGET (cheese_window->button_photo_fullscreen));
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (cheese_window->button_photo), action);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (cheese_window->button_photo_fullscreen), action);
action = gtk_ui_manager_get_action (cheese_window->ui_manager, "/MainMenu/Cheese/Video");
- gtk_action_connect_proxy (GTK_ACTION (action), GTK_WIDGET (cheese_window->button_video));
- gtk_action_connect_proxy (GTK_ACTION (action), GTK_WIDGET (cheese_window->button_video_fullscreen));
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (cheese_window->button_video), action);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (cheese_window->button_video_fullscreen), action);
/* Default handlers for closing the application */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]