[epiphany/wip/modern_gobject] EphyEmbedDialog: Remove unnecessary declarations



commit c5f74a685c8a3d5e570b68e4a089e6dedba2e1c6
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue Sep 15 16:40:58 2015 -0500

    EphyEmbedDialog: Remove unnecessary declarations

 embed/ephy-embed-dialog.c |   63 ++++++++++++++++----------------------------
 1 files changed, 23 insertions(+), 40 deletions(-)
---
diff --git a/embed/ephy-embed-dialog.c b/embed/ephy-embed-dialog.c
index 3d3c053..de096a5 100644
--- a/embed/ephy-embed-dialog.c
+++ b/embed/ephy-embed-dialog.c
@@ -21,23 +21,6 @@
 
 #include "ephy-embed-dialog.h"
 
-static void
-ephy_embed_dialog_class_init (EphyEmbedDialogClass *klass);
-static void
-ephy_embed_dialog_init (EphyEmbedDialog *window);
-static void
-ephy_embed_dialog_finalize (GObject *object);
-static void
-ephy_embed_dialog_get_property (GObject *object,
-                               guint prop_id,
-                               GValue *value,
-                               GParamSpec *pspec);
-static void
-ephy_embed_dialog_set_property (GObject *object,
-                               guint prop_id,
-                               const GValue *value,
-                               GParamSpec *pspec);
-
 enum
 {
        PROP_0,
@@ -52,29 +35,6 @@ typedef struct
 G_DEFINE_TYPE_WITH_PRIVATE (EphyEmbedDialog, ephy_embed_dialog, EPHY_TYPE_DIALOG)
 
 static void
-ephy_embed_dialog_class_init (EphyEmbedDialogClass *klass)
-{
-        GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
-        object_class->finalize = ephy_embed_dialog_finalize;
-       object_class->set_property = ephy_embed_dialog_set_property;
-       object_class->get_property = ephy_embed_dialog_get_property;
-
-       g_object_class_install_property (object_class,
-                                        PROP_EPHY_EMBED,
-                                         g_param_spec_object ("embed",
-                                                              "Embed",
-                                                              "The dialog's embed",
-                                                              G_TYPE_OBJECT,
-                                                              G_PARAM_READWRITE | G_PARAM_STATIC_NAME | 
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
-}
-
-static void
-ephy_embed_dialog_init (EphyEmbedDialog *dialog)
-{
-}
-
-static void
 unset_embed (EphyEmbedDialog *dialog)
 {
        EphyEmbedDialogPrivate *priv = ephy_embed_dialog_get_instance_private (dialog);
@@ -131,6 +91,29 @@ ephy_embed_dialog_get_property (GObject *object,
         }
 }
 
+static void
+ephy_embed_dialog_class_init (EphyEmbedDialogClass *klass)
+{
+        GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+        object_class->finalize = ephy_embed_dialog_finalize;
+       object_class->set_property = ephy_embed_dialog_set_property;
+       object_class->get_property = ephy_embed_dialog_get_property;
+
+       g_object_class_install_property (object_class,
+                                        PROP_EPHY_EMBED,
+                                         g_param_spec_object ("embed",
+                                                              "Embed",
+                                                              "The dialog's embed",
+                                                              G_TYPE_OBJECT,
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_NAME | 
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+}
+
+static void
+ephy_embed_dialog_init (EphyEmbedDialog *dialog)
+{
+}
+
 EphyEmbedDialog *
 ephy_embed_dialog_new (EphyEmbed *embed)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]