46
static void thunar_shortcuts_pane_class_init (ThunarShortcutsPaneClass *klass);
47
46
static void thunar_shortcuts_pane_component_init (ThunarComponentIface *iface);
48
47
static void thunar_shortcuts_pane_navigator_init (ThunarNavigatorIface *iface);
49
48
static void thunar_shortcuts_pane_side_pane_init (ThunarSidePaneIface *iface);
50
static void thunar_shortcuts_pane_init (ThunarShortcutsPane *shortcuts_pane);
51
49
static void thunar_shortcuts_pane_dispose (GObject *object);
52
50
static void thunar_shortcuts_pane_finalize (GObject *object);
53
51
static void thunar_shortcuts_pane_get_property (GObject *object,
98
96
{ "sendto-shortcuts", THUNAR_STOCK_SHORTCUTS, "", NULL, NULL, G_CALLBACK (thunar_shortcuts_pane_action_shortcuts_add), },
101
static GObjectClass *thunar_shortcuts_pane_parent_class;
106
thunar_shortcuts_pane_get_type (void)
108
static GType type = G_TYPE_INVALID;
110
if (G_UNLIKELY (type == G_TYPE_INVALID))
112
static const GTypeInfo info =
114
sizeof (ThunarShortcutsPaneClass),
117
(GClassInitFunc) thunar_shortcuts_pane_class_init,
120
sizeof (ThunarShortcutsPane),
122
(GInstanceInitFunc) thunar_shortcuts_pane_init,
126
static const GInterfaceInfo component_info =
128
(GInterfaceInitFunc) thunar_shortcuts_pane_component_init,
133
static const GInterfaceInfo navigator_info =
135
(GInterfaceInitFunc) thunar_shortcuts_pane_navigator_init,
140
static const GInterfaceInfo side_pane_info =
142
(GInterfaceInitFunc) thunar_shortcuts_pane_side_pane_init,
147
type = g_type_register_static (GTK_TYPE_SCROLLED_WINDOW, I_("ThunarShortcutsPane"), &info, 0);
148
g_type_add_interface_static (type, THUNAR_TYPE_NAVIGATOR, &navigator_info);
149
g_type_add_interface_static (type, THUNAR_TYPE_COMPONENT, &component_info);
150
g_type_add_interface_static (type, THUNAR_TYPE_SIDE_PANE, &side_pane_info);
101
G_DEFINE_TYPE_WITH_CODE (ThunarShortcutsPane, thunar_shortcuts_pane, GTK_TYPE_SCROLLED_WINDOW,
102
G_IMPLEMENT_INTERFACE (THUNAR_TYPE_NAVIGATOR, thunar_shortcuts_pane_navigator_init)
103
G_IMPLEMENT_INTERFACE (THUNAR_TYPE_COMPONENT, thunar_shortcuts_pane_component_init)
104
G_IMPLEMENT_INTERFACE (THUNAR_TYPE_SIDE_PANE, thunar_shortcuts_pane_side_pane_init))
161
111
GObjectClass *gobject_class;
163
/* determine the parent type class */
164
thunar_shortcuts_pane_parent_class = g_type_class_peek_parent (klass);
166
113
gobject_class = G_OBJECT_CLASS (klass);
167
114
gobject_class->dispose = thunar_shortcuts_pane_dispose;
168
115
gobject_class->finalize = thunar_shortcuts_pane_finalize;