#include <string.h>
#include <stdlib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include "ev-page-action.h"
#include "ev-page-action-widget.h"
Go to the source code of this file.
|
static void | ev_page_action_init (EvPageAction *action) |
|
static void | ev_page_action_class_init (EvPageActionClass *class) |
|
static GtkWidget * | create_tool_item (GtkAction *action) |
|
static void | update_model (EvPageAction *page, GParamSpec *pspec, EvPageActionWidget *proxy) |
|
static void | activate_link_cb (EvPageActionWidget *proxy, EvLink *link, EvPageAction *action) |
|
static void | connect_proxy (GtkAction *action, GtkWidget *proxy) |
|
static void | ev_page_action_dispose (GObject *object) |
|
static void | ev_page_action_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
|
static void | ev_page_action_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
|
void | ev_page_action_set_model (EvPageAction *page, EvDocumentModel *model) |
|
void | ev_page_action_set_links_model (EvPageAction *page, GtkTreeModel *links_model) |
|
void | ev_page_action_grab_focus (EvPageAction *page_action) |
|
static void connect_proxy |
( |
GtkAction * |
action, |
|
|
GtkWidget * |
proxy |
|
) |
| |
|
static |
Definition at line 84 of file ev-page-action.c.
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);
static GtkWidget* create_tool_item |
( |
GtkAction * |
action) | |
|
|
static |
Definition at line 208 of file ev-page-action.c.
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));
static void ev_page_action_dispose |
( |
GObject * |
object) | |
|
|
static |
Definition at line 103 of file ev-page-action.c.
114 G_OBJECT_CLASS (ev_page_action_parent_class)->dispose (
object);
static void ev_page_action_get_property |
( |
GObject * |
object, |
|
|
guint |
prop_id, |
|
|
GValue * |
value, |
|
|
GParamSpec * |
pspec |
|
) |
| |
|
static |
Definition at line 137 of file ev-page-action.c.
147 g_value_set_object (value, page->
priv->
model);
150 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);
void ev_page_action_grab_focus |
( |
EvPageAction * |
page_action) | |
|
Definition at line 186 of file ev-page-action.c.
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)))
void ev_page_action_set_links_model |
( |
EvPageAction * |
page, |
|
|
GtkTreeModel * |
links_model |
|
) |
| |
Definition at line 169 of file ev-page-action.c.
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");
static void ev_page_action_set_property |
( |
GObject * |
object, |
|
|
guint |
prop_id, |
|
|
const GValue * |
value, |
|
|
GParamSpec * |
pspec |
|
) |
| |
|
static |
Definition at line 118 of file ev-page-action.c.
131 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);