28 #include <glib/gi18n.h>
54 #define EV_PAGE_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_PAGE_ACTION, EvPageActionPrivate))
88 if (GTK_IS_TOOL_ITEM (proxy)) {
91 g_signal_connect (proxy,
"activate_link",
94 g_signal_connect_object (action,
"notify::model",
99 GTK_ACTION_CLASS (ev_page_action_parent_class)->connect_proxy (action, proxy);
114 G_OBJECT_CLASS (ev_page_action_parent_class)->dispose (
object);
131 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);
147 g_value_set_object (value, page->
priv->
model);
150 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);
170 GtkTreeModel *links_model)
173 g_return_if_fail (GTK_IS_TREE_MODEL (links_model));
180 page->
priv->
model = g_object_ref (links_model);
182 g_object_notify (G_OBJECT (page),
"model");
190 proxies = gtk_action_get_proxies (GTK_ACTION (page_action));
191 for (; proxies != NULL; proxies = proxies->next) {
196 if (gtk_widget_get_mapped (GTK_WIDGET (proxy)))
210 GObjectClass *object_class = G_OBJECT_CLASS (
class);
211 GtkActionClass *action_class = GTK_ACTION_CLASS (
class);
217 action_class->toolbar_item_type = GTK_TYPE_TOOL_ITEM;
222 G_OBJECT_CLASS_TYPE (object_class),
223 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
226 g_cclosure_marshal_VOID__OBJECT,
230 g_object_class_install_property (object_class,
232 g_param_spec_object (
"model",
234 "Current Links Model",
237 G_PARAM_STATIC_STRINGS));