[libgd/wip/ernestask/gtk4: 9/10] Remove GdNotification



commit a4ec2a7c57692dcedf0257446d0af202e41b29f8
Author: Ernestas Kulik <ernestask gnome org>
Date:   Sun Mar 11 16:16:40 2018 +0200

    Remove GdNotification
    
    People are implementing their own solutions using GtkRevealer and we
    don’t need competing wheel designs.

 Makefile.am               |   10 -
 README                    |    2 -
 libgd.m4                  |    6 -
 libgd/gd-notification.c   |  700 ---------------------------------------------
 libgd/gd-notification.h   |   67 -----
 libgd/gd-types-catalog.c  |    8 -
 libgd/gd.h                |    4 -
 libgd/meson.build         |    8 -
 meson_options.txt         |    3 +-
 tests/meson.build         |    6 -
 tests/test-notification.c |   83 ------
 11 files changed, 1 insertions(+), 896 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 881f4cb..18ae501 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -139,16 +139,6 @@ nodist_libgd_la_SOURCES += $(margin_container_sources)
 EXTRA_DIST += $(margin_container_sources)
 endif
 
-if LIBGD_NOTIFICATION
-notification_sources =                         \
-       libgd/gd-notification.c                 \
-       libgd/gd-notification.h                 \
-       $(NULL)
-
-nodist_libgd_la_SOURCES += $(notification_sources)
-EXTRA_DIST += $(notification_sources)
-endif
-
 if LIBGD_TAGGED_ENTRY
 tagged_entry_sources =                         \
        libgd/gd-tagged-entry.c                 \
diff --git a/README b/README
index fb8c88d..c1107ac 100644
--- a/README
+++ b/README
@@ -97,8 +97,6 @@ LIBGD_INIT options
 
 - margin-container
 
-- notification
-
 - static
 
 - tagged-entry
diff --git a/libgd.m4 b/libgd.m4
index bca27a9..180012c 100644
--- a/libgd.m4
+++ b/libgd.m4
@@ -88,12 +88,6 @@ AC_DEFUN([LIBGD_INIT], [
         AC_DEFINE([LIBGD_MARGIN_CONTAINER], [1], [Description])
     ])
 
-    # notification:
-    AM_CONDITIONAL([LIBGD_NOTIFICATION],[_LIBGD_IF_OPTION_SET([notification],[true],[false])])
-    _LIBGD_IF_OPTION_SET([notification],[
-        AC_DEFINE([LIBGD_NOTIFICATION], [1], [Description])
-    ])
-
     # tagged-entry: Gtk+ widget
     AM_CONDITIONAL([LIBGD_TAGGED_ENTRY],[_LIBGD_IF_OPTION_SET([tagged-entry],[true],[false])])
     _LIBGD_IF_OPTION_SET([tagged-entry],[
diff --git a/libgd/gd-types-catalog.c b/libgd/gd-types-catalog.c
index 75f7d57..42f4ce9 100644
--- a/libgd/gd-types-catalog.c
+++ b/libgd/gd-types-catalog.c
@@ -61,10 +61,6 @@
 # include "gd-tagged-entry.h"
 #endif
 
-#ifdef LIBGD_NOTIFICATION
-# include "gd-notification.h"
-#endif
-
 /**
  * gd_ensure_types:
  *
@@ -115,9 +111,5 @@ gd_ensure_types (void)
 #ifdef LIBGD_TAGGED_ENTRY
   g_type_ensure (GD_TYPE_TAGGED_ENTRY);
 #endif
-
-#ifdef LIBGD_NOTIFICATION
-  g_type_ensure (GD_TYPE_NOTIFICATION);
-#endif
 }
 
diff --git a/libgd/gd.h b/libgd/gd.h
index 69685c9..30f5445 100644
--- a/libgd/gd.h
+++ b/libgd/gd.h
@@ -72,10 +72,6 @@ G_BEGIN_DECLS
 # include <libgd/gd-tagged-entry.h>
 #endif
 
-#ifdef LIBGD_NOTIFICATION
-# include <libgd/gd-notification.h>
-#endif
-
 G_END_DECLS
 
 #endif /* __GD_H__ */
diff --git a/libgd/meson.build b/libgd/meson.build
index 6288854..791f03f 100644
--- a/libgd/meson.build
+++ b/libgd/meson.build
@@ -114,14 +114,6 @@ if get_option('with-tagged-entry')
   c_args += '-DLIBGD_TAGGED_ENTRY=1'
 endif
 
-if get_option('with-notification')
-  sources += [
-    'gd-notification.c',
-    'gd-notification.h',
-  ]
-  c_args += '-DLIBGD_NOTIFICATION=1'
-endif
-
 if sources.length() == 2
   error('You must include a feature to be built!')
 endif
diff --git a/meson_options.txt b/meson_options.txt
index fcab3a0..71576c7 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -20,6 +20,5 @@ option('with-main-icon-view', type: 'boolean', value: false)
 option('with-main-list-view', type: 'boolean', value: false)
 option('with-margin-container', type: 'boolean', value: false)
 option('with-tagged-entry', type: 'boolean', value: false)
-option('with-notification', type: 'boolean', value: false)
 option('with-main-box', type: 'boolean', value: false)
-option('with-main-icon-box', type: 'boolean', value: false)
\ No newline at end of file
+option('with-main-icon-box', type: 'boolean', value: false)
diff --git a/tests/meson.build b/tests/meson.build
index e875b7d..4ba780d 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -30,9 +30,3 @@ if get_option('with-main-view')
     'test-main-view.c',
     dependencies: libgd_dep)
 endif
-
-if get_option('with-notification')
-  executable('test-notification',
-    'test-notification.c',
-    dependencies: libgd_dep)
-endif


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