summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-11-23 14:44:01 +0100
committerraveit65 <[email protected]>2022-07-20 21:40:42 +0200
commit4bada395f33980cd9552a88ecec9a7c9dc48c7dc (patch)
treeb2fc38d313a9d688ee5309cca3f0182b40f902ff /eel
parent0bfb10a5e06b8b7d38fb9488dab344e2b7d48e4b (diff)
downloadcaja-4bada395f33980cd9552a88ecec9a7c9dc48c7dc.tar.bz2
caja-4bada395f33980cd9552a88ecec9a7c9dc48c7dc.tar.xz
avoid redundant redeclarations
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-canvas.c14
-rw-r--r--eel/eel-editable-label.c19
2 files changed, 15 insertions, 18 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 7efa67f8..e72cc7ce 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3977,13 +3977,6 @@ eel_canvas_item_accessible_factory_create_accessible (GObject *obj)
return accessible;
}
-static void
-eel_canvas_item_accessible_factory_class_init (AtkObjectFactoryClass *klass)
-{
- klass->create_accessible = eel_canvas_item_accessible_factory_create_accessible;
- klass->get_accessible_type = eel_canvas_item_accessible_factory_get_accessible_type;
-}
-
static GType eel_canvas_item_accessible_factory_get_type (void);
typedef AtkObjectFactory EelCanvasItemAccessibleFactory;
@@ -3992,6 +3985,13 @@ G_DEFINE_TYPE (EelCanvasItemAccessibleFactory, eel_canvas_item_accessible_factor
ATK_TYPE_OBJECT_FACTORY)
static void
+eel_canvas_item_accessible_factory_class_init (AtkObjectFactoryClass *klass)
+{
+ klass->create_accessible = eel_canvas_item_accessible_factory_create_accessible;
+ klass->get_accessible_type = eel_canvas_item_accessible_factory_get_accessible_type;
+}
+
+static void
eel_canvas_item_accessible_factory_init (EelCanvasItemAccessibleFactory *accessible)
{
}
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 800552e8..0b2cef59 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -67,8 +67,6 @@ enum
static guint signals[LAST_SIGNAL] = { 0 };
static void eel_editable_label_editable_init (GtkEditableInterface *iface);
-static void eel_editable_label_class_init (EelEditableLabelClass *klass);
-static void eel_editable_label_init (EelEditableLabel *label);
static void eel_editable_label_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -4229,6 +4227,14 @@ eel_editable_label_accessible_finalize (GObject *object)
G_OBJECT_CLASS (a11y_parent_class)->finalize (object);
}
+G_DEFINE_TYPE_WITH_CODE (EelEditableLabelAccessible,
+ eel_editable_label_accessible,
+ GTK_TYPE_WIDGET_ACCESSIBLE,
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_EDITABLE_TEXT,
+ atk_editable_text_interface_init)
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_TEXT,
+ atk_text_interface_init));
+
static void
eel_editable_label_accessible_class_init (EelEditableLabelAccessibleClass *klass)
{
@@ -4247,12 +4253,3 @@ static void
eel_editable_label_accessible_init (EelEditableLabelAccessible *accessible)
{
}
-
-G_DEFINE_TYPE_WITH_CODE (EelEditableLabelAccessible,
- eel_editable_label_accessible,
- GTK_TYPE_WIDGET_ACCESSIBLE,
- G_IMPLEMENT_INTERFACE (ATK_TYPE_EDITABLE_TEXT,
- atk_editable_text_interface_init)
- G_IMPLEMENT_INTERFACE (ATK_TYPE_TEXT,
- atk_text_interface_init));
-