[epiphany/wip/modern_gobject: 8/14] EphyDownload: Remove unneeded virtual signals



commit 09917914f5c703ddfee7d96b309c3d1ce751b5a4
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Sep 13 19:21:20 2015 -0500

    EphyDownload: Remove unneeded virtual signals
    
    So we can use G_DECLARE_FINAL_TYPE

 embed/ephy-download.c |    9 +++------
 embed/ephy-download.h |    8 --------
 2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index b3364e9..cf470a4 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -753,8 +753,7 @@ ephy_download_class_init (EphyDownloadClass *klass)
   g_signal_new ("filename-suggested",
                 G_OBJECT_CLASS_TYPE (object_class),
                 G_SIGNAL_RUN_LAST,
-                G_STRUCT_OFFSET (EphyDownloadClass, filename_suggested),
-                NULL, NULL,
+                NULL, NULL, NULL,
                 g_cclosure_marshal_generic,
                 G_TYPE_NONE,
                 1,
@@ -768,8 +767,7 @@ ephy_download_class_init (EphyDownloadClass *klass)
   g_signal_new ("completed",
                 G_OBJECT_CLASS_TYPE (object_class),
                 G_SIGNAL_RUN_LAST,
-                G_STRUCT_OFFSET (EphyDownloadClass, completed),
-                NULL, NULL,
+                NULL, NULL, NULL,
                 g_cclosure_marshal_VOID__VOID,
                 G_TYPE_NONE,
                 0);
@@ -781,8 +779,7 @@ ephy_download_class_init (EphyDownloadClass *klass)
   g_signal_new ("error",
                 G_OBJECT_CLASS_TYPE (object_class),
                 G_SIGNAL_RUN_LAST,
-                G_STRUCT_OFFSET (EphyDownloadClass, error),
-                NULL, NULL,
+                NULL, NULL, NULL,
                 g_cclosure_marshal_generic,
                 G_TYPE_NONE,
                 0);
diff --git a/embed/ephy-download.h b/embed/ephy-download.h
index ae2a1b0..4593684 100644
--- a/embed/ephy-download.h
+++ b/embed/ephy-download.h
@@ -55,14 +55,6 @@ struct _EphyDownload
 struct _EphyDownloadClass
 {
   GObjectClass parent_class;
-
-  void (* filename_suggested) (EphyDownload *download,
-                               char *suggested_filename);
-  void (* completed)  (EphyDownload *download);
-  void (* error)      (EphyDownload *download,
-                       gint error_code,
-                       gint error_detail,
-                       char *reason);
 };
 
 typedef enum


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