[gtk+/gtk-2-90: 60/156] Remove deprecated GtkAction functions
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 60/156] Remove deprecated GtkAction functions
- Date: Sat, 23 Jan 2010 05:41:43 +0000 (UTC)
commit d76966b509ff59519465f48d7c156add2a8c01b6
Author: Javier Jardón <javierjc1982 gmail com>
Date: Thu Oct 8 17:44:21 2009 +0200
Remove deprecated GtkAction functions
gtk/gtk.symbols | 15 ------
gtk/gtkaction.c | 134 -------------------------------------------------------
gtk/gtkaction.h | 12 -----
3 files changed, 0 insertions(+), 161 deletions(-)
---
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 8b4337c..b92d940 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -141,21 +141,12 @@ gtk_accessible_get_type G_GNUC_CONST
#if IN_FILE(__GTK_ACTION_C__)
gtk_action_activate
gtk_action_block_activate
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_action_block_activate_from
-#endif
gtk_action_connect_accelerator
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_action_connect_proxy
-#endif
gtk_action_create_icon
gtk_action_create_menu_item
gtk_action_create_tool_item
gtk_action_create_menu
gtk_action_disconnect_accelerator
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_action_disconnect_proxy
-#endif
gtk_action_get_always_show_image
gtk_action_get_accel_closure
gtk_action_get_accel_path
@@ -163,9 +154,6 @@ gtk_action_get_gicon
gtk_action_get_label
gtk_action_get_name
gtk_action_get_proxies
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_widget_get_action
-#endif
gtk_action_get_icon_name
gtk_action_get_is_important
gtk_action_get_sensitive
@@ -194,9 +182,6 @@ gtk_action_set_visible
gtk_action_set_visible_horizontal
gtk_action_set_visible_vertical
gtk_action_unblock_activate
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_action_unblock_activate_from
-#endif
#endif
#endif
diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c
index 40cf10f..ef8615f 100644
--- a/gtk/gtkaction.c
+++ b/gtk/gtkaction.c
@@ -921,58 +921,6 @@ _gtk_action_remove_from_proxy_list (GtkAction *action,
}
/**
- * gtk_action_connect_proxy:
- * @action: the action object
- * @proxy: the proxy widget
- *
- * Connects a widget to an action object as a proxy. Synchronises
- * various properties of the action with the widget (such as label
- * text, icon, tooltip, etc), and attaches a callback so that the
- * action gets activated when the proxy widget does.
- *
- * If the widget is already connected to an action, it is disconnected
- * first.
- *
- * Since: 2.4
- *
- * Deprecated: 2.16: Use gtk_activatable_set_related_action() instead.
- */
-void
-gtk_action_connect_proxy (GtkAction *action,
- GtkWidget *proxy)
-{
- g_return_if_fail (GTK_IS_ACTION (action));
- g_return_if_fail (GTK_IS_WIDGET (proxy));
- g_return_if_fail (GTK_IS_ACTIVATABLE (proxy));
-
- gtk_activatable_set_use_action_appearance (GTK_ACTIVATABLE (proxy), TRUE);
-
- gtk_activatable_set_related_action (GTK_ACTIVATABLE (proxy), action);
-}
-
-/**
- * gtk_action_disconnect_proxy:
- * @action: the action object
- * @proxy: the proxy widget
- *
- * Disconnects a proxy widget from an action.
- * Does <emphasis>not</emphasis> destroy the widget, however.
- *
- * Since: 2.4
- *
- * Deprecated: 2.16: Use gtk_activatable_set_related_action() instead.
- */
-void
-gtk_action_disconnect_proxy (GtkAction *action,
- GtkWidget *proxy)
-{
- g_return_if_fail (GTK_IS_ACTION (action));
- g_return_if_fail (GTK_IS_WIDGET (proxy));
-
- gtk_activatable_set_related_action (GTK_ACTIVATABLE (proxy), NULL);
-}
-
-/**
* gtk_action_get_proxies:
* @action: the action object
*
@@ -992,32 +940,6 @@ gtk_action_get_proxies (GtkAction *action)
return action->private_data->proxies;
}
-
-/**
- * gtk_widget_get_action:
- * @widget: a #GtkWidget
- *
- * Returns the #GtkAction that @widget is a proxy for.
- * See also gtk_action_get_proxies().
- *
- * Returns: the action that a widget is a proxy for, or
- * %NULL, if it is not attached to an action.
- *
- * Since: 2.10
- *
- * Deprecated: 2.16: Use gtk_activatable_get_related_action() instead.
- */
-GtkAction*
-gtk_widget_get_action (GtkWidget *widget)
-{
- g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-
- if (GTK_IS_ACTIVATABLE (widget))
- return gtk_activatable_get_related_action (GTK_ACTIVATABLE (widget));
-
- return NULL;
-}
-
/**
* gtk_action_get_name:
* @action: the action object
@@ -1656,62 +1578,6 @@ gtk_action_get_gicon (GtkAction *action)
return action->private_data->gicon;
}
-/**
- * gtk_action_block_activate_from:
- * @action: the action object
- * @proxy: a proxy widget
- *
- * Disables calls to the gtk_action_activate()
- * function by signals on the given proxy widget. This is used to
- * break notification loops for things like check or radio actions.
- *
- * This function is intended for use by action implementations.
- *
- * Since: 2.4
- *
- * Deprecated: 2.16: activatables are now responsible for activating the
- * action directly so this doesnt apply anymore.
- */
-void
-gtk_action_block_activate_from (GtkAction *action,
- GtkWidget *proxy)
-{
- g_return_if_fail (GTK_IS_ACTION (action));
-
- g_signal_handlers_block_by_func (proxy, G_CALLBACK (gtk_action_activate),
- action);
-
- gtk_action_block_activate (action);
-}
-
-/**
- * gtk_action_unblock_activate_from:
- * @action: the action object
- * @proxy: a proxy widget
- *
- * Re-enables calls to the gtk_action_activate()
- * function by signals on the given proxy widget. This undoes the
- * blocking done by gtk_action_block_activate_from().
- *
- * This function is intended for use by action implementations.
- *
- * Since: 2.4
- *
- * Deprecated: 2.16: activatables are now responsible for activating the
- * action directly so this doesnt apply anymore.
- */
-void
-gtk_action_unblock_activate_from (GtkAction *action,
- GtkWidget *proxy)
-{
- g_return_if_fail (GTK_IS_ACTION (action));
-
- g_signal_handlers_unblock_by_func (proxy, G_CALLBACK (gtk_action_activate),
- action);
-
- gtk_action_unblock_activate (action);
-}
-
static void
closure_accel_activate (GClosure *closure,
GValue *return_value,
diff --git a/gtk/gtkaction.h b/gtk/gtkaction.h
index 08e051a..92ba1fe 100644
--- a/gtk/gtkaction.h
+++ b/gtk/gtkaction.h
@@ -110,18 +110,6 @@ void gtk_action_connect_accelerator (GtkAction *action);
void gtk_action_disconnect_accelerator (GtkAction *action);
G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction *action);
GClosure *gtk_action_get_accel_closure (GtkAction *action);
-
-#ifndef GTK_DISABLE_DEPRECATED
-GtkAction *gtk_widget_get_action (GtkWidget *widget);
-void gtk_action_connect_proxy (GtkAction *action,
- GtkWidget *proxy);
-void gtk_action_disconnect_proxy (GtkAction *action,
- GtkWidget *proxy);
-void gtk_action_block_activate_from (GtkAction *action,
- GtkWidget *proxy);
-void gtk_action_unblock_activate_from (GtkAction *action,
- GtkWidget *proxy);
-#endif /* GTK_DISABLE_DEPRECATED */
void gtk_action_block_activate (GtkAction *action);
void gtk_action_unblock_activate (GtkAction *action);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]