[gnome-flashback] power-applet: remove



commit 1040f5b84fa66fb7109dc67336449503d57f0cf1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Dec 25 01:21:08 2019 +0200

    power-applet: remove

 configure.ac                                       |   7 -
 data/schemas/org.gnome.gnome-flashback.gschema.xml |   6 -
 gnome-flashback/Makefile.am                        |   2 -
 gnome-flashback/gf-application.c                   |   4 -
 gnome-flashback/libpower-applet/Makefile.am        |  35 --
 gnome-flashback/libpower-applet/gf-power-applet.c  | 380 ---------------------
 gnome-flashback/libpower-applet/gf-power-applet.h  |  32 --
 po/POTFILES.in                                     |   1 -
 8 files changed, 467 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ec9934e..6b39c67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,12 +208,6 @@ PKG_CHECK_MODULES([POLKIT], [
   polkit-gobject-1 >= $POLKIT_GOBJECT_REQUIRED
 ])
 
-PKG_CHECK_MODULES([POWER_APPLET], [
-  gio-unix-2.0 >= $GLIB_REQUIRED
-  gtk+-3.0 >= $GTK_REQUIRED
-  upower-glib
-])
-
 PKG_CHECK_MODULES([ROOT_BACKGROUND], [
   gtk+-3.0 >= $GTK_REQUIRED
   gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
@@ -413,7 +407,6 @@ AC_CONFIG_FILES([
   gnome-flashback/libinput-sources/Makefile
   gnome-flashback/libnotifications/Makefile
   gnome-flashback/libpolkit/Makefile
-  gnome-flashback/libpower-applet/Makefile
   gnome-flashback/libroot-background/Makefile
   gnome-flashback/libscreencast/Makefile
   gnome-flashback/libscreensaver/Makefile
diff --git a/data/schemas/org.gnome.gnome-flashback.gschema.xml 
b/data/schemas/org.gnome.gnome-flashback.gschema.xml
index 28dac3a..7d76ea7 100644
--- a/data/schemas/org.gnome.gnome-flashback.gschema.xml
+++ b/data/schemas/org.gnome.gnome-flashback.gschema.xml
@@ -62,12 +62,6 @@
       <description>This is the same authentication agent that was provided by PolicyKit-gnome.</description>
     </key>
 
-    <key name="power-applet" type="b">
-      <default>true</default>
-      <summary>Power applet</summary>
-      <description>If set to true, then GNOME Flashback application will be used to show a power 
applet.</description>
-    </key>
-
     <key name="root-background" type="b">
       <default>false</default>
       <summary>Root background</summary>
diff --git a/gnome-flashback/Makefile.am b/gnome-flashback/Makefile.am
index 8c89140..ef17c90 100644
--- a/gnome-flashback/Makefile.am
+++ b/gnome-flashback/Makefile.am
@@ -13,7 +13,6 @@ SUBDIRS = \
        libinput-sources \
        libnotifications \
        libpolkit \
-       libpower-applet \
        libroot-background \
        libscreencast \
        libscreensaver \
@@ -72,7 +71,6 @@ gnome_flashback_LDADD = \
        $(top_builddir)/gnome-flashback/libinput-sources/libinput-sources.la \
        $(top_builddir)/gnome-flashback/libnotifications/libnotifications.la \
        $(top_builddir)/gnome-flashback/libpolkit/libpolkit.la \
-       $(top_builddir)/gnome-flashback/libpower-applet/libpower-applet.la \
        $(top_builddir)/gnome-flashback/libroot-background/libroot-background.la \
        $(top_builddir)/gnome-flashback/libscreencast/libscreencast.la \
        $(top_builddir)/gnome-flashback/libscreensaver/libscreensaver.la \
diff --git a/gnome-flashback/gf-application.c b/gnome-flashback/gf-application.c
index 1e9f7dd..f33b18b 100644
--- a/gnome-flashback/gf-application.c
+++ b/gnome-flashback/gf-application.c
@@ -34,7 +34,6 @@
 #include "libinput-sources/gf-input-sources.h"
 #include "libnotifications/gf-notifications.h"
 #include "libpolkit/flashback-polkit.h"
-#include "libpower-applet/gf-power-applet.h"
 #include "libroot-background/gf-root-background.h"
 #include "libscreencast/gf-screencast.h"
 #include "libscreensaver/gf-screensaver.h"
@@ -67,7 +66,6 @@ struct _GfApplication
   GfInputSettings         *input_settings;
   GfInputSources          *input_sources;
   GfNotifications         *notifications;
-  GfPowerApplet           *power;
   GfRootBackground        *root_background;
   GfScreencast            *screencast;
   GfScreensaver           *screensaver;
@@ -224,7 +222,6 @@ settings_changed (GSettings   *settings,
   SETTING_CHANGED (input_settings, "input-settings", gf_input_settings_new)
   SETTING_CHANGED (input_sources, "input-sources", gf_input_sources_new)
   SETTING_CHANGED (notifications, "notifications", gf_notifications_new)
-  SETTING_CHANGED (power, "power-applet", gf_power_applet_new)
   SETTING_CHANGED (root_background, "root-background", gf_root_background_new)
   SETTING_CHANGED (screencast, "screencast", gf_screencast_new)
   SETTING_CHANGED (screensaver, "screensaver", gf_screensaver_new)
@@ -271,7 +268,6 @@ gf_application_dispose (GObject *object)
   g_clear_object (&application->input_settings);
   g_clear_object (&application->input_sources);
   g_clear_object (&application->notifications);
-  g_clear_object (&application->power);
   g_clear_object (&application->root_background);
   g_clear_object (&application->screencast);
   g_clear_object (&application->screenshot);
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 65e5cda..9265cda 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -37,7 +37,6 @@ gnome-flashback/libpolkit/flashback-authenticator.c
 gnome-flashback/libpolkit/flashback-listener.c
 gnome-flashback/libpolkit/flashback-polkit-dialog.c
 gnome-flashback/libpolkit/flashback-polkit-dialog.ui
-gnome-flashback/libpower-applet/gf-power-applet.c
 gnome-flashback/libscreensaver/gf-auth.c
 gnome-flashback/libsound-applet/gf-sound-applet.c
 gnome-flashback/libsound-applet/gvc-channel-bar.c


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