├── .gitlab-ci.yml ├── .gitmodules ├── AUTHORS ├── COPYING ├── ChangeLog ├── Makefile.am ├── NEWS ├── README.md ├── autogen.sh ├── backends ├── Makefile.am ├── gf-backend-private.h ├── gf-backend-x11-cm-private.h ├── gf-backend-x11-cm.c ├── gf-backend-x11-private.h ├── gf-backend-x11.c ├── gf-backend.c ├── gf-backend.h ├── gf-crtc-mode-info-private.h ├── gf-crtc-mode-info.c ├── gf-crtc-mode-private.h ├── gf-crtc-mode.c ├── gf-crtc-private.h ├── gf-crtc-xrandr-private.h ├── gf-crtc-xrandr.c ├── gf-crtc.c ├── gf-direction.h ├── gf-display-config-shared.h ├── gf-edid-parse.c ├── gf-edid-private.h ├── gf-gpu-private.h ├── gf-gpu-xrandr-private.h ├── gf-gpu-xrandr.c ├── gf-gpu.c ├── gf-logical-monitor-config-private.h ├── gf-logical-monitor-config.c ├── gf-logical-monitor-private.h ├── gf-logical-monitor.c ├── gf-monitor-config-manager-private.h ├── gf-monitor-config-manager.c ├── gf-monitor-config-private.h ├── gf-monitor-config-store-private.h ├── gf-monitor-config-store.c ├── gf-monitor-config-utils.c ├── gf-monitor-config-utils.h ├── gf-monitor-config.c ├── gf-monitor-manager-enums-private.h ├── gf-monitor-manager-kms-private.h ├── gf-monitor-manager-kms.c ├── gf-monitor-manager-private.h ├── gf-monitor-manager-types-private.h ├── gf-monitor-manager-xrandr-private.h ├── gf-monitor-manager-xrandr.c ├── gf-monitor-manager.c ├── gf-monitor-manager.h ├── gf-monitor-normal-private.h ├── gf-monitor-normal.c ├── gf-monitor-private.h ├── gf-monitor-spec-private.h ├── gf-monitor-spec.c ├── gf-monitor-tiled-private.h ├── gf-monitor-tiled.c ├── gf-monitor-transform.c ├── gf-monitor-transform.h ├── gf-monitor.c ├── gf-monitors-config-private.h ├── gf-monitors-config.c ├── gf-orientation-manager-private.h ├── gf-orientation-manager.c ├── gf-output-info-private.h ├── gf-output-info.c ├── gf-output-private.h ├── gf-output-xrandr-private.h ├── gf-output-xrandr.c ├── gf-output.c ├── gf-rectangle-private.h ├── gf-rectangle.c ├── gf-rectangle.h ├── gf-settings-private.h ├── gf-settings.c ├── gf-settings.h └── org.gnome.Mutter.DisplayConfig.xml ├── configure.ac ├── daemons ├── Makefile.am ├── clipboard │ ├── Makefile.am │ ├── gf-clipboard-main.c │ ├── gf-clipboard.c │ ├── gf-clipboard.h │ ├── gsd-clipboard-manager.c │ ├── gsd-clipboard-manager.h │ ├── list.c │ ├── list.h │ ├── xutils.c │ └── xutils.h ├── idle-monitor │ ├── Makefile.am │ ├── flashback-idle-monitor.c │ ├── flashback-idle-monitor.h │ ├── gf-idle-monitor-main.c │ ├── meta-idle-monitor.c │ ├── meta-idle-monitor.h │ └── org.gnome.Mutter.IdleMonitor.xml ├── media-keys │ ├── Makefile.am │ ├── gf-media-keys-main.c │ ├── gf-media-keys.c │ ├── gf-media-keys.h │ ├── gsd-media-keys-manager.c │ ├── gsd-media-keys-manager.h │ ├── gsd-screenshot-utils.c │ ├── gsd-screenshot-utils.h │ ├── media-keys.h │ ├── shell-action-modes.h │ └── shortcuts-list.h └── polkit │ ├── Makefile.am │ ├── flashback-authenticator.c │ ├── flashback-authenticator.h │ ├── flashback-listener.c │ ├── flashback-listener.h │ ├── flashback-polkit-dialog.c │ ├── flashback-polkit-dialog.h │ ├── flashback-polkit-dialog.ui │ ├── flashback-polkit.c │ ├── flashback-polkit.h │ ├── gf-polkit-main.c │ └── polkit.gresource.xml ├── data ├── Makefile.am ├── applications │ ├── Makefile.am │ └── gnome-flashback.desktop.in ├── autostart │ ├── Makefile.am │ ├── gnome-flashback-clipboard.desktop.in.in │ ├── gnome-flashback-geoclue-demo-agent.desktop.in.in │ ├── gnome-flashback-idle-monitor.desktop.in.in │ ├── gnome-flashback-media-keys.desktop.in.in │ ├── gnome-flashback-nm-applet.desktop.in │ └── gnome-flashback-polkit.desktop.in.in ├── compizconfig │ ├── Makefile.am │ ├── gnome-flashback.conf │ └── gnome-flashback.ini ├── directories │ ├── Makefile.am │ ├── X-GNOME-Flashback-Science.directory.desktop.in │ ├── X-GNOME-Flashback-Settings-System.directory.desktop.in │ └── X-GNOME-Flashback-Settings.directory.desktop.in ├── gnome-panel │ ├── Makefile.am │ └── gnome-flashback.layout ├── keybindings │ ├── 50-gnome-flashback-screenshots.xml │ └── Makefile.am ├── menus │ ├── Makefile.am │ └── gnome-flashback-applications.menu ├── schemas │ ├── 00_gnome-flashback.gschema.override │ ├── Makefile.am │ ├── org.gnome.gnome-flashback.desktop.background.gschema.xml │ ├── org.gnome.gnome-flashback.desktop.gschema.xml │ ├── org.gnome.gnome-flashback.desktop.icons.gschema.xml │ ├── org.gnome.gnome-flashback.gschema.xml │ ├── org.gnome.gnome-flashback.keybindings.gschema.xml │ ├── org.gnome.gnome-flashback.notifications.gschema.xml │ └── org.gnome.gnome-flashback.system-indicators.input-sources.gschema.xml ├── sessions │ ├── Makefile.am │ └── gnome-flashback.session.in ├── systemd │ ├── Makefile.am │ ├── gnome-flashback.service.in │ ├── gnome-flashback.session.conf.in │ └── gnome-flashback.target ├── theme │ ├── Adwaita │ │ ├── Makefile.am │ │ ├── gnome-flashback-dark.css │ │ └── gnome-flashback.css │ ├── HighContrast │ │ ├── Makefile.am │ │ ├── gnome-flashback-inverse.css │ │ └── gnome-flashback.css │ ├── Makefile.am │ ├── Yaru │ │ ├── Makefile.am │ │ └── gnome-flashback.css │ ├── common.css │ └── fallback.css ├── ui │ ├── Makefile.am │ └── gf-confirm-display-change-dialog.ui └── xsessions │ ├── Makefile.am │ ├── gnome-flashback-compiz.desktop.in.in │ └── gnome-flashback-metacity.desktop.in.in ├── dbus ├── Makefile.am ├── org.freedesktop.Accounts.User.xml ├── org.freedesktop.Accounts.xml ├── org.freedesktop.Application.xml ├── org.freedesktop.DBus.xml ├── org.freedesktop.DisplayManager.Seat.xml ├── org.freedesktop.FileManager1.xml ├── org.freedesktop.Notifications.xml ├── org.freedesktop.UPower.Device.xml ├── org.freedesktop.login1.Manager.xml ├── org.freedesktop.login1.Session.xml ├── org.gnome.Flashback.InputSources.xml ├── org.gnome.Mutter.X11.xml ├── org.gnome.Nautilus.FileOperations2.xml ├── org.gnome.ScreenSaver.xml ├── org.gnome.SessionManager.ClientPrivate.xml ├── org.gnome.SessionManager.EndSessionDialog.xml ├── org.gnome.SessionManager.Presence.xml ├── org.gnome.SessionManager.xml ├── org.gnome.SettingsDaemon.Rfkill.xml ├── org.gnome.Shell.AudioDeviceSelection.xml ├── org.gnome.Shell.Introspect.xml ├── org.gnome.Shell.Screencast.xml ├── org.gnome.Shell.Screenshot.xml ├── org.gnome.Shell.xml ├── org.gtk.Notifications.xml └── org.kde.StatusNotifierWatcher.xml ├── git.mk ├── gnome-flashback.doap ├── gnome-flashback ├── Makefile.am ├── flashback.gresource.xml ├── gf-application.c ├── gf-application.h ├── gf-confirm-display-change-dialog.c ├── gf-confirm-display-change-dialog.h ├── gf-main.c ├── gf-session.c ├── gf-session.h ├── gf-ui-scaling.c ├── gf-ui-scaling.h ├── gf-wm.c ├── gf-wm.h ├── liba11y-keyboard │ ├── Makefile.am │ ├── gf-a11y-keyboard.c │ └── gf-a11y-keyboard.h ├── libaudio-device-selection │ ├── Makefile.am │ ├── gf-audio-device-selection-dialog.c │ ├── gf-audio-device-selection-dialog.h │ ├── gf-audio-device-selection.c │ └── gf-audio-device-selection.h ├── libautomount-manager │ ├── Makefile.am │ ├── gsd-automount-manager.c │ ├── gsd-automount-manager.h │ ├── gsd-autorun.c │ └── gsd-autorun.h ├── libcommon │ ├── Makefile.am │ ├── gf-bg.c │ ├── gf-bg.h │ ├── gf-common-enum-types.c.in │ ├── gf-common-enum-types.h.in │ ├── gf-keybindings.c │ ├── gf-keybindings.h │ ├── gf-popup-window.c │ └── gf-popup-window.h ├── libdesktop │ ├── Makefile.am │ ├── gf-background.c │ ├── gf-background.h │ ├── gf-create-folder-dialog.c │ ├── gf-create-folder-dialog.h │ ├── gf-desktop-enum-types.c.in │ ├── gf-desktop-enum-types.h.in │ ├── gf-desktop-enums.h │ ├── gf-desktop-window.c │ ├── gf-desktop-window.h │ ├── gf-desktop.c │ ├── gf-desktop.h │ ├── gf-dummy-icon.c │ ├── gf-dummy-icon.h │ ├── gf-home-icon.c │ ├── gf-home-icon.h │ ├── gf-icon-view.c │ ├── gf-icon-view.h │ ├── gf-icon.c │ ├── gf-icon.h │ ├── gf-monitor-view.c │ ├── gf-monitor-view.h │ ├── gf-rename-popover.c │ ├── gf-rename-popover.h │ ├── gf-thumbnail-factory.c │ ├── gf-thumbnail-factory.h │ ├── gf-trash-icon.c │ ├── gf-trash-icon.h │ ├── gf-utils.c │ ├── gf-utils.h │ ├── gf-workarea-watcher.c │ └── gf-workarea-watcher.h ├── libend-session-dialog │ ├── Makefile.am │ ├── gf-end-session-dialog.c │ ├── gf-end-session-dialog.h │ ├── gf-inhibit-dialog.c │ ├── gf-inhibit-dialog.h │ └── gf-inhibit-dialog.ui ├── libinput-settings │ ├── Makefile.am │ ├── gf-input-settings.c │ └── gf-input-settings.h ├── libinput-sources │ ├── Makefile.am │ ├── gf-candidate-area.c │ ├── gf-candidate-area.h │ ├── gf-candidate-box.c │ ├── gf-candidate-box.h │ ├── gf-candidate-popup.c │ ├── gf-candidate-popup.h │ ├── gf-ibus-manager.c │ ├── gf-ibus-manager.h │ ├── gf-input-source-ibus.c │ ├── gf-input-source-ibus.h │ ├── gf-input-source-manager.c │ ├── gf-input-source-manager.h │ ├── gf-input-source-popup.c │ ├── gf-input-source-popup.h │ ├── gf-input-source-settings.c │ ├── gf-input-source-settings.h │ ├── gf-input-source-xkb.c │ ├── gf-input-source-xkb.h │ ├── gf-input-source.c │ ├── gf-input-source.h │ ├── gf-input-sources-button.c │ ├── gf-input-sources-button.h │ ├── gf-input-sources.c │ ├── gf-input-sources.h │ ├── gf-keyboard-manager.c │ └── gf-keyboard-manager.h ├── libnotifications │ ├── Makefile.am │ ├── gf-bubble.c │ ├── gf-bubble.h │ ├── gf-notifications.c │ ├── gf-notifications.h │ ├── nd-daemon.c │ ├── nd-daemon.h │ ├── nd-notification-box.c │ ├── nd-notification-box.h │ ├── nd-notification.c │ ├── nd-notification.h │ ├── nd-queue.c │ ├── nd-queue.h │ ├── nd-stack.c │ └── nd-stack.h ├── libroot-background │ ├── Makefile.am │ ├── gf-root-background.c │ └── gf-root-background.h ├── libscreencast │ ├── Makefile.am │ ├── gf-screencast.c │ └── gf-screencast.h ├── libscreensaver │ ├── Makefile.am │ ├── gf-auth.c │ ├── gf-auth.h │ ├── gf-fade.c │ ├── gf-fade.h │ ├── gf-grab.c │ ├── gf-grab.h │ ├── gf-info-bar.c │ ├── gf-info-bar.h │ ├── gf-listener.c │ ├── gf-listener.h │ ├── gf-manager.c │ ├── gf-manager.h │ ├── gf-panel.c │ ├── gf-panel.h │ ├── gf-prefs.c │ ├── gf-prefs.h │ ├── gf-screensaver-enum-types.c.in │ ├── gf-screensaver-enum-types.h.in │ ├── gf-screensaver-utils.c │ ├── gf-screensaver-utils.h │ ├── gf-screensaver.c │ ├── gf-screensaver.h │ ├── gf-unlock-dialog.c │ ├── gf-unlock-dialog.h │ ├── gf-user-image.c │ ├── gf-user-image.h │ ├── gf-watcher.c │ ├── gf-watcher.h │ ├── gf-window.c │ └── gf-window.h ├── libscreenshot │ ├── Makefile.am │ ├── gf-flashspot.c │ ├── gf-flashspot.h │ ├── gf-screenshot.c │ ├── gf-screenshot.h │ ├── gf-select-area.c │ └── gf-select-area.h ├── libshell │ ├── Makefile.am │ ├── flashback-monitor-labeler.c │ ├── flashback-monitor-labeler.h │ ├── flashback-osd.c │ ├── flashback-osd.h │ ├── flashback-shell.c │ ├── flashback-shell.h │ ├── gf-label-window.c │ ├── gf-label-window.h │ ├── gf-osd-window.c │ ├── gf-osd-window.h │ ├── gf-shell-introspect.c │ └── gf-shell-introspect.h └── libstatus-notifier-watcher │ ├── Makefile.am │ ├── gf-sn-watcher-v0.c │ ├── gf-sn-watcher-v0.h │ ├── gf-status-notifier-watcher.c │ └── gf-status-notifier-watcher.h ├── gvc ├── Makefile.am ├── gvc-enum-types.c.in └── gvc-enum-types.h.in ├── po ├── LINGUAS ├── Makevars ├── POTFILES.in ├── POTFILES.skip ├── bs.po ├── ca.po ├── cs.po ├── da.po ├── de.po ├── el.po ├── es.po ├── eu.po ├── fa.po ├── fi.po ├── fur.po ├── he.po ├── hr.po ├── hu.po ├── id.po ├── it.po ├── ka.po ├── lv.po ├── nb.po ├── nl.po ├── oc.po ├── pl.po ├── pt.po ├── pt_BR.po ├── ro.po ├── ru.po ├── sk.po ├── sl.po ├── sr.po ├── sr@latin.po ├── sv.po ├── tr.po ├── uk.po ├── zh_CN.po ├── zh_HK.po └── zh_TW.po └── system-indicators ├── Makefile.am ├── si-applet.c ├── si-applet.h ├── si-bluetooth.c ├── si-bluetooth.h ├── si-desktop-menu-item.c ├── si-desktop-menu-item.h ├── si-indicator.c ├── si-indicator.h ├── si-input-sources.c ├── si-input-sources.h ├── si-menu-bar.c ├── si-menu-bar.h ├── si-module.c ├── si-power.c ├── si-power.h ├── si-volume.c └── si-volume.h /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "libgnome-volume-control"] 2 | path = gvc/gvc 3 | url = https://gitlab.gnome.org/GNOME/libgnome-volume-control.git 4 | ignore = untracked 5 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-flashback/37ad33cda028a018fa154be5ccfd2368f0884812/AUTHORS -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-flashback/37ad33cda028a018fa154be5ccfd2368f0884812/ChangeLog -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | SUBDIRS = \ 4 | data \ 5 | dbus \ 6 | daemons \ 7 | backends \ 8 | gvc \ 9 | gnome-flashback \ 10 | system-indicators \ 11 | po \ 12 | $(NULL) 13 | 14 | MAINTAINERCLEANFILES = \ 15 | $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ 16 | $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ 17 | $(GITIGNORE_MAINTAINERCLEANFILES_M4_GETTEXT) \ 18 | $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ 19 | `find "$(srcdir)/m4" -type f -name "*.m4" -print` \ 20 | $(srcdir)/ABOUT-NLS \ 21 | $(srcdir)/INSTALL \ 22 | $(srcdir)/config.h.in~ \ 23 | $(srcdir)/configure \ 24 | $(srcdir)/po/Makefile.in.in \ 25 | $(srcdir)/po/Makevars.template \ 26 | $(srcdir)/po/Rules-quot \ 27 | $(srcdir)/po/boldquot.sed \ 28 | $(srcdir)/po/en@boldquot.header \ 29 | $(srcdir)/po/en@quot.header \ 30 | $(srcdir)/po/gnome-flashback.pot \ 31 | $(srcdir)/po/insert-header.sin \ 32 | $(srcdir)/po/quot.sed \ 33 | $(srcdir)/po/remove-potcdate.sin \ 34 | $(srcdir)/po/stamp-po \ 35 | $(NULL) 36 | 37 | GITIGNOREFILES = $(PACKAGE)-\*.tar.{gz,bz2,xz} 38 | 39 | -include $(top_srcdir)/git.mk 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | GNOME Flashback is the backend of the GNOME Flashback desktop session. It 4 | provides the `gnome-flashback` and `gnome-flashback-clipboard` programs. 5 | In addition, GNOME Flashback contains the `system-indicators` library. 6 | 7 | ## gnome-flashback 8 | 9 | The `gnome-flashback` program contains a set of D-Bus backends that are used by 10 | the GNOME Flashback desktop, they include the following: 11 | 12 | * Accessibility Keyboard 13 | * Audio Device Selection 14 | * Automount Manager 15 | * Desktop 16 | * End Session Dialog 17 | * Idle Monitor 18 | * Input Settings 19 | * Input Sources 20 | * Notifications 21 | * Policykit 22 | * Root Background 23 | * Screencast 24 | * Screensaver 25 | * Screenshot 26 | * Shell 27 | * Sound Applet 28 | * Status Notifier Watcher 29 | 30 | ## Daemons 31 | 32 | The `gnome-flashback-clipboard` is a daemon that provices clipboard 33 | functionality. 34 | 35 | ## System Indicators 36 | 37 | The `system-indicators` is a module that can be loaded by GNOME Panel 38 | to display various system indicators such as: 39 | 40 | * Bluetooth 41 | * Desktop Menu Items 42 | * Indicators 43 | * Power 44 | * Volume Settings 45 | 46 | # Releases 47 | 48 | You may download gnome-flashback releases and updates from the 49 | [release server](https://download.gnome.org/sources/gnome-flashback/) 50 | 51 | # Discussions 52 | 53 | To discuss gnome-panel, you may use the 54 | [discussion forum](https://discourse.gnome.org/). 55 | 56 | # How to report bugs 57 | 58 | Bugs should be reported in the issue section of 59 | [GNOME Gitlab](https://gitlab.gnome.org/GNOME/gnome-flashback/issues) 60 | 61 | You will need to create an account for yourself. 62 | 63 | Please read the HACKING file for information on where to send changes or 64 | bugfixes for this package. 65 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Run this to generate all the initial makefiles, etc. 4 | 5 | srcdir=$(dirname "$0") 6 | test -z "$srcdir" && srcdir=. 7 | 8 | if [ ! -f $srcdir/configure.ac ]; then 9 | echo "**Error**: Directory "\'$srcdir\'" does not look like the top-level" \ 10 | "project directory." 11 | exit 1 12 | fi 13 | 14 | olddir=$(pwd) 15 | cd "$srcdir" 16 | 17 | set -x 18 | git submodule update --init 19 | { set +x; } 2>/dev/null 20 | 21 | PKG_NAME=$(autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac") 22 | 23 | if [ "$#" = 0 ] && [ -z "$NOCONFIGURE" ]; then 24 | echo "**Warning**: I am going to run 'configure' with no arguments." >&2 25 | echo "If you wish to pass any to it, please specify them on the '$0'" \ 26 | "command line." >&2 27 | fi 28 | 29 | set -x 30 | aclocal --install || exit 1 31 | autoreconf --verbose --force --install -Wno-portability || exit 1 32 | { set +x; } 2>/dev/null 33 | 34 | cd "$olddir" 35 | 36 | if [ -z "$NOCONFIGURE" ]; then 37 | set -x 38 | $srcdir/configure "$@" || exit 1 39 | { set +x; } 2>/dev/null 40 | 41 | if [ "$1" = "--help" ]; then 42 | exit 0 43 | else 44 | echo "Now type 'make' to compile $PKG_NAME." || exit 1 45 | fi 46 | else 47 | echo "Skipping configure process." 48 | fi 49 | -------------------------------------------------------------------------------- /backends/gf-backend-x11-cm-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 Alberts Muktupāvels 3 | * Copyright (C) 2017 Red Hat 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/x11/cm/meta-backend-x11-cm.h 20 | */ 21 | 22 | #ifndef GF_BACKEND_X11_CM_PRIVATE_H 23 | #define GF_BACKEND_X11_CM_PRIVATE_H 24 | 25 | #include "gf-backend-x11-private.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define GF_TYPE_BACKEND_X11_CM (gf_backend_x11_cm_get_type ()) 30 | G_DECLARE_FINAL_TYPE (GfBackendX11Cm, gf_backend_x11_cm, 31 | GF, BACKEND_X11_CM, GfBackendX11) 32 | 33 | G_END_DECLS 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /backends/gf-backend-x11-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Red Hat 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * Jasper St. Pierre 21 | * 22 | * Adapted from mutter: 23 | * - src/backends/x11/meta-backend-x11.h 24 | */ 25 | 26 | #ifndef GF_BACKEND_X11_PRIVATE_H 27 | #define GF_BACKEND_X11_PRIVATE_H 28 | 29 | #include 30 | #include "gf-backend-private.h" 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define GF_TYPE_BACKEND_X11 (gf_backend_x11_get_type ()) 35 | G_DECLARE_DERIVABLE_TYPE (GfBackendX11, gf_backend_x11, 36 | GF, BACKEND_X11, GfBackend) 37 | 38 | struct _GfBackendX11Class 39 | { 40 | GfBackendClass parent_class; 41 | 42 | gboolean (* handle_host_xevent) (GfBackendX11 *x11, 43 | XEvent *event); 44 | }; 45 | 46 | Display *gf_backend_x11_get_xdisplay (GfBackendX11 *x11); 47 | 48 | G_END_DECLS 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /backends/gf-backend.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Red Hat 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * Jasper St. Pierre 21 | * 22 | * Adapted from mutter: 23 | * - src/meta/meta-backend.h 24 | */ 25 | 26 | #ifndef GF_BACKEND_H 27 | #define GF_BACKEND_H 28 | 29 | #include "gf-monitor-manager.h" 30 | #include "gf-settings.h" 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define GF_TYPE_BACKEND (gf_backend_get_type ()) 35 | G_DECLARE_DERIVABLE_TYPE (GfBackend, gf_backend, GF, BACKEND, GObject) 36 | 37 | typedef enum 38 | { 39 | GF_BACKEND_TYPE_X11_CM 40 | } GfBackendType; 41 | 42 | GfBackend *gf_backend_new (GfBackendType type); 43 | 44 | GfMonitorManager *gf_backend_get_monitor_manager (GfBackend *backend); 45 | 46 | GfSettings *gf_backend_get_settings (GfBackend *backend); 47 | 48 | G_END_DECLS 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /backends/gf-crtc-mode-info.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017-2020 Red Hat 3 | * Copyright (C) 2020 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | #include "config.h" 20 | #include "gf-crtc-mode-info-private.h" 21 | 22 | G_DEFINE_BOXED_TYPE (GfCrtcModeInfo, 23 | gf_crtc_mode_info, 24 | gf_crtc_mode_info_ref, 25 | gf_crtc_mode_info_unref) 26 | 27 | GfCrtcModeInfo * 28 | gf_crtc_mode_info_new (void) 29 | { 30 | GfCrtcModeInfo *self; 31 | 32 | self = g_new0 (GfCrtcModeInfo, 1); 33 | g_ref_count_init (&self->ref_count); 34 | 35 | return self; 36 | } 37 | 38 | GfCrtcModeInfo * 39 | gf_crtc_mode_info_ref (GfCrtcModeInfo *self) 40 | { 41 | g_ref_count_inc (&self->ref_count); 42 | 43 | return self; 44 | } 45 | 46 | void 47 | gf_crtc_mode_info_unref (GfCrtcModeInfo *self) 48 | { 49 | if (g_ref_count_dec (&self->ref_count)) 50 | g_free (self); 51 | } 52 | -------------------------------------------------------------------------------- /backends/gf-crtc-mode-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017-2020 Red Hat 3 | * Copyright (C) 2020 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | #ifndef GF_CRTC_MODE_PRIVATE_H 20 | #define GF_CRTC_MODE_PRIVATE_H 21 | 22 | #include 23 | #include 24 | 25 | #include "gf-crtc-mode-info-private.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define GF_TYPE_CRTC_MODE (gf_crtc_mode_get_type ()) 30 | G_DECLARE_DERIVABLE_TYPE (GfCrtcMode, gf_crtc_mode, GF, CRTC_MODE, GObject) 31 | 32 | struct _GfCrtcModeClass 33 | { 34 | GObjectClass parent_class; 35 | }; 36 | 37 | uint64_t gf_crtc_mode_get_id (GfCrtcMode *self); 38 | 39 | const char *gf_crtc_mode_get_name (GfCrtcMode *self); 40 | 41 | const GfCrtcModeInfo *gf_crtc_mode_get_info (GfCrtcMode *self); 42 | 43 | G_END_DECLS 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /backends/gf-direction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_DIRECTION_H 19 | #define GF_DIRECTION_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | typedef enum 26 | { 27 | GF_DIRECTION_UP, 28 | GF_DIRECTION_DOWN, 29 | GF_DIRECTION_LEFT, 30 | GF_DIRECTION_RIGHT 31 | } GfDirection; 32 | 33 | G_END_DECLS 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /backends/gf-display-config-shared.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 Red Hat Inc. 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | /* 19 | * This file is shared between mutter (src/core/meta-display-config-shared.h) 20 | * and gnome-desktop (libgnome-desktop/meta-xrandr-shared.h). 21 | * 22 | * The canonical place for all changes is mutter. 23 | * 24 | * There should be no includes in this file. 25 | */ 26 | 27 | #ifndef GF_DISPLAY_CONFIG_SHARED_H 28 | #define GF_DISPLAY_CONFIG_SHARED_H 29 | 30 | typedef enum 31 | { 32 | GF_POWER_SAVE_UNSUPPORTED = -1, 33 | 34 | GF_POWER_SAVE_ON = 0, 35 | GF_POWER_SAVE_STANDBY, 36 | GF_POWER_SAVE_SUSPEND, 37 | GF_POWER_SAVE_OFF, 38 | } GfPowerSave; 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /backends/gf-gpu-xrandr-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 Red Hat 3 | * Copyright (C) 2019 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | #ifndef GF_GPU_XRANDR_PRIVATE_H 20 | #define GF_GPU_XRANDR_PRIVATE_H 21 | 22 | #include 23 | #include 24 | 25 | #include "gf-backend-x11-private.h" 26 | #include "gf-gpu-private.h" 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define GF_TYPE_GPU_XRANDR (gf_gpu_xrandr_get_type ()) 31 | G_DECLARE_FINAL_TYPE (GfGpuXrandr, gf_gpu_xrandr, GF, GPU_XRANDR, GfGpu) 32 | 33 | GfGpuXrandr *gf_gpu_xrandr_new (GfBackendX11 *backend_x11); 34 | 35 | XRRScreenResources *gf_gpu_xrandr_get_resources (GfGpuXrandr *self); 36 | 37 | void gf_gpu_xrandr_get_max_screen_size (GfGpuXrandr *self, 38 | int *max_width, 39 | int *max_height); 40 | 41 | G_END_DECLS 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /backends/gf-monitor-config-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Red Hat 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/meta-monitor-config-manager.h 20 | */ 21 | 22 | #ifndef GF_MONITOR_CONFIG_PRIVATE_H 23 | #define GF_MONITOR_CONFIG_PRIVATE_H 24 | 25 | #include "gf-monitor-private.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | typedef struct 30 | { 31 | GfMonitorSpec *monitor_spec; 32 | GfMonitorModeSpec *mode_spec; 33 | gboolean enable_underscanning; 34 | gboolean has_max_bpc; 35 | unsigned int max_bpc; 36 | } GfMonitorConfig; 37 | 38 | GfMonitorConfig *gf_monitor_config_new (GfMonitor *monitor, 39 | GfMonitorMode *mode); 40 | 41 | void gf_monitor_config_free (GfMonitorConfig *config); 42 | 43 | 44 | gboolean gf_verify_monitor_config (GfMonitorConfig *config, 45 | GError **error); 46 | 47 | G_END_DECLS 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /backends/gf-monitor-config-utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Red Hat 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_MONITOR_CONFIG_UTILS_H 19 | #define GF_MONITOR_CONFIG_UTILS_H 20 | 21 | #include 22 | 23 | #include "gf-monitor-manager-private.h" 24 | 25 | G_BEGIN_DECLS 26 | 27 | GList * 28 | gf_clone_logical_monitor_config_list (GList *logical_monitor_configs); 29 | 30 | gboolean 31 | gf_verify_logical_monitor_config_list (GList *logical_monitor_configs, 32 | GfLogicalMonitorLayoutMode layout_mode, 33 | GfMonitorManager *monitor_manager, 34 | GError **error); 35 | 36 | 37 | G_END_DECLS 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /backends/gf-monitor-manager-kms-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2001 Havoc Pennington 3 | * Copyright (C) 2003 Rob Adams 4 | * Copyright (C) 2004-2006 Elijah Newren 5 | * Copyright (C) 2013 Red Hat Inc. 6 | * Copyright (C) 2017 Alberts Muktupāvels 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | * Adapted from mutter: 22 | * - src/backends/native/meta-monitor-manager-kms.h 23 | */ 24 | 25 | #ifndef GF_MONITOR_MANAGER_KMS_PRIVATE_H 26 | #define GF_MONITOR_MANAGER_KMS_PRIVATE_H 27 | 28 | #include "gf-monitor-manager-private.h" 29 | 30 | G_BEGIN_DECLS 31 | 32 | #define GF_TYPE_MONITOR_MANAGER_KMS (gf_monitor_manager_kms_get_type ()) 33 | G_DECLARE_FINAL_TYPE (GfMonitorManagerKms, gf_monitor_manager_kms, 34 | GF, MONITOR_MANAGER_KMS, GfMonitorManager) 35 | 36 | G_END_DECLS 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /backends/gf-monitor-normal-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Red Hat 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/meta-monitor.h 20 | */ 21 | 22 | #ifndef GF_MONITOR_NORMAL_PRIVATE_H 23 | #define GF_MONITOR_NORMAL_PRIVATE_H 24 | 25 | #include "gf-monitor-private.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define GF_TYPE_MONITOR_NORMAL (gf_monitor_normal_get_type ()) 30 | G_DECLARE_FINAL_TYPE (GfMonitorNormal, gf_monitor_normal, 31 | GF, MONITOR_NORMAL, GfMonitor) 32 | 33 | GfMonitorNormal *gf_monitor_normal_new (GfMonitorManager *monitor_manager, 34 | GfOutput *output); 35 | 36 | G_END_DECLS 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /backends/gf-monitor-spec-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Red Hat 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/meta-monitor.h 20 | */ 21 | 22 | #ifndef GF_MONITOR_SPEC_PRIVATE_H 23 | #define GF_MONITOR_SPEC_PRIVATE_H 24 | 25 | #include "gf-monitor-manager-types-private.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | struct _GfMonitorSpec 30 | { 31 | gchar *connector; 32 | gchar *vendor; 33 | gchar *product; 34 | gchar *serial; 35 | }; 36 | 37 | GfMonitorSpec *gf_monitor_spec_clone (GfMonitorSpec *spec); 38 | 39 | guint gf_monitor_spec_hash (gconstpointer key); 40 | 41 | gboolean gf_monitor_spec_equals (GfMonitorSpec *spec, 42 | GfMonitorSpec *other_spec); 43 | 44 | gint gf_monitor_spec_compare (GfMonitorSpec *spec_a, 45 | GfMonitorSpec *spec_b); 46 | 47 | void gf_monitor_spec_free (GfMonitorSpec *spec); 48 | 49 | gboolean gf_verify_monitor_spec (GfMonitorSpec *spec, 50 | GError **error); 51 | 52 | G_END_DECLS 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /backends/gf-monitor-tiled-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Red Hat 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/meta-monitor.h 20 | */ 21 | 22 | #ifndef GF_MONITOR_TILED_PRIVATE_H 23 | #define GF_MONITOR_TILED_PRIVATE_H 24 | 25 | #include 26 | #include "gf-monitor-private.h" 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define GF_TYPE_MONITOR_TILED (gf_monitor_tiled_get_type ()) 31 | G_DECLARE_FINAL_TYPE (GfMonitorTiled, gf_monitor_tiled, 32 | GF, MONITOR_TILED, GfMonitor) 33 | 34 | GfMonitorTiled *gf_monitor_tiled_new (GfMonitorManager *monitor_manager, 35 | GfOutput *output); 36 | 37 | uint32_t gf_monitor_tiled_get_tile_group_id (GfMonitorTiled *monitor_tiled); 38 | 39 | G_END_DECLS 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /backends/gf-orientation-manager-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 Alberts Muktupāvels 3 | * Copyright (C) 2017 Red Hat 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/meta-orientation-manager.h 20 | */ 21 | 22 | #ifndef GF_ORIENTATION_MANAGER_PRIVATE_H 23 | #define GF_ORIENTATION_MANAGER_PRIVATE_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | typedef enum 30 | { 31 | GF_ORIENTATION_UNDEFINED, 32 | 33 | GF_ORIENTATION_NORMAL, 34 | GF_ORIENTATION_BOTTOM_UP, 35 | GF_ORIENTATION_LEFT_UP, 36 | GF_ORIENTATION_RIGHT_UP 37 | } GfOrientation; 38 | 39 | #define GF_TYPE_ORIENTATION_MANAGER (gf_orientation_manager_get_type ()) 40 | G_DECLARE_FINAL_TYPE (GfOrientationManager, gf_orientation_manager, 41 | GF, ORIENTATION_MANAGER, GObject) 42 | 43 | GfOrientationManager *gf_orientation_manager_new (void); 44 | 45 | GfOrientation gf_orientation_manager_get_orientation (GfOrientationManager *manager); 46 | 47 | gboolean gf_orientation_manager_has_accelerometer (GfOrientationManager *self); 48 | 49 | G_END_DECLS 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /backends/gf-rectangle-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005, 2006 Elijah Newren 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/core/boxes-private.h 20 | */ 21 | 22 | #ifndef GF_RECTANGLE_PRIVATE_H 23 | #define GF_RECTANGLE_PRIVATE_H 24 | 25 | #include "gf-rectangle.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | gboolean gf_rectangle_overlaps_with_region (const GList *spanning_rects, 30 | const GfRectangle *rect); 31 | 32 | gboolean gf_rectangle_is_adjacent_to_any_in_region (const GList *spanning_rects, 33 | GfRectangle *rect); 34 | 35 | gboolean gf_rectangle_is_adjacent_to (const GfRectangle *rect, 36 | const GfRectangle *other); 37 | 38 | G_END_DECLS 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /backends/gf-rectangle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005, 2006 Elijah Newren 3 | * Copyright (C) 2017 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/meta/boxes.h 20 | */ 21 | 22 | #ifndef GF_RECTANGLE_H 23 | #define GF_RECTANGLE_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | typedef struct 30 | { 31 | gint x; 32 | gint y; 33 | gint width; 34 | gint height; 35 | } GfRectangle; 36 | 37 | gboolean gf_rectangle_equal (const GfRectangle *src1, 38 | const GfRectangle *src2); 39 | 40 | gboolean gf_rectangle_vert_overlap (const GfRectangle *rect1, 41 | const GfRectangle *rect2); 42 | 43 | gboolean gf_rectangle_horiz_overlap (const GfRectangle *rect1, 44 | const GfRectangle *rect2); 45 | 46 | gboolean gf_rectangle_contains_rect (const GfRectangle *outer_rect, 47 | const GfRectangle *inner_rect); 48 | 49 | G_END_DECLS 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /backends/gf-settings-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017-2019 Alberts Muktupāvels 3 | * Copyright (C) 2017 Red Hat 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Adapted from mutter: 19 | * - src/backends/meta-settings-private.h 20 | * - src/meta/meta-settings.h 21 | */ 22 | 23 | #ifndef GF_SETTINGS_PRIVATE_H 24 | #define GF_SETTINGS_PRIVATE_H 25 | 26 | #include "gf-backend.h" 27 | #include "gf-settings.h" 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define GF_TYPE_SETTINGS (gf_settings_get_type ()) 32 | G_DECLARE_FINAL_TYPE (GfSettings, gf_settings, GF, SETTINGS, GObject) 33 | 34 | GfSettings *gf_settings_new (GfBackend *backend); 35 | 36 | void gf_settings_post_init (GfSettings *settings); 37 | 38 | gboolean gf_settings_get_global_scaling_factor (GfSettings *settings, 39 | gint *global_scaling_factor); 40 | 41 | G_END_DECLS 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /backends/gf-settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2024 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SETTINGS_H 19 | #define GF_SETTINGS_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | typedef struct _GfSettings GfSettings; 26 | 27 | int gf_settings_get_ui_scaling_factor (GfSettings *settings); 28 | 29 | G_END_DECLS 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /daemons/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | SUBDIRS = \ 4 | clipboard \ 5 | idle-monitor \ 6 | media-keys \ 7 | polkit \ 8 | $(NULL) 9 | 10 | -include $(top_srcdir)/git.mk 11 | -------------------------------------------------------------------------------- /daemons/clipboard/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | libexec_PROGRAMS = \ 4 | gnome-flashback-clipboard \ 5 | $(NULL) 6 | 7 | gnome_flashback_clipboard_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"gnome-flashback-clipboard\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(NULL) 12 | 13 | gnome_flashback_clipboard_CFLAGS = \ 14 | $(CLIPBOARD_CFLAGS) \ 15 | $(WARN_CFLAGS) \ 16 | $(AM_CFLAGS) \ 17 | $(NULL) 18 | 19 | gnome_flashback_clipboard_SOURCES = \ 20 | gf-clipboard-main.c \ 21 | gf-clipboard.c \ 22 | gf-clipboard.h \ 23 | gsd-clipboard-manager.c \ 24 | gsd-clipboard-manager.h \ 25 | list.c \ 26 | list.h \ 27 | xutils.c \ 28 | xutils.h \ 29 | $(NULL) 30 | 31 | gnome_flashback_clipboard_LDFLAGS = \ 32 | $(WARN_LDFLAGS) \ 33 | $(AM_LDFLAGS) \ 34 | $(NULL) 35 | 36 | gnome_flashback_clipboard_LDADD = \ 37 | $(top_builddir)/dbus/libdbus.la \ 38 | $(CLIPBOARD_LIBS) \ 39 | $(LIBM) \ 40 | $(NULL) 41 | 42 | -include $(top_srcdir)/git.mk 43 | -------------------------------------------------------------------------------- /daemons/clipboard/gf-clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_CLIPBOARD_H 19 | #define GF_CLIPBOARD_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_CLIPBOARD (gf_clipboard_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfClipboard, gf_clipboard, GF, CLIPBOARD, GObject) 27 | 28 | GfClipboard *gf_clipboard_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /daemons/clipboard/gsd-clipboard-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program; if not, see . 17 | * 18 | */ 19 | 20 | #ifndef __GSD_CLIPBOARD_MANAGER_H 21 | #define __GSD_CLIPBOARD_MANAGER_H 22 | 23 | #include 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define GSD_TYPE_CLIPBOARD_MANAGER (gsd_clipboard_manager_get_type ()) 28 | G_DECLARE_FINAL_TYPE (GsdClipboardManager, gsd_clipboard_manager, GSD, CLIPBOARD_MANAGER, GObject) 29 | 30 | GsdClipboardManager * gsd_clipboard_manager_new (void); 31 | gboolean gsd_clipboard_manager_start (GsdClipboardManager *manager, 32 | GError **error); 33 | void gsd_clipboard_manager_stop (GsdClipboardManager *manager); 34 | 35 | G_END_DECLS 36 | 37 | #endif /* __GSD_CLIPBOARD_MANAGER_H */ 38 | -------------------------------------------------------------------------------- /daemons/idle-monitor/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | libexec_PROGRAMS = \ 4 | gnome-flashback-idle-monitor \ 5 | $(NULL) 6 | 7 | gnome_flashback_idle_monitor_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"gnome-flashback-idle-monitor\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_builddir)/daemons/idle-monitor \ 11 | -I$(top_srcdir) \ 12 | $(NULL) 13 | 14 | gnome_flashback_idle_monitor_CFLAGS = \ 15 | $(IDLE_MONITOR_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | gnome_flashback_idle_monitor_SOURCES = \ 21 | flashback-idle-monitor.c \ 22 | flashback-idle-monitor.h \ 23 | gf-idle-monitor-main.c \ 24 | meta-dbus-idle-monitor.c \ 25 | meta-dbus-idle-monitor.h \ 26 | meta-idle-monitor.c \ 27 | meta-idle-monitor.h \ 28 | $(NULL) 29 | 30 | gnome_flashback_idle_monitor_LDFLAGS = \ 31 | $(WARN_LDFLAGS) \ 32 | $(AM_LDFLAGS) \ 33 | $(NULL) 34 | 35 | gnome_flashback_idle_monitor_LDADD = \ 36 | $(top_builddir)/dbus/libdbus.la \ 37 | $(IDLE_MONITOR_LIBS) \ 38 | $(NULL) 39 | 40 | meta-dbus-idle-monitor.h: 41 | meta-dbus-idle-monitor.c: org.gnome.Mutter.IdleMonitor.xml 42 | $(AM_V_GEN) gdbus-codegen \ 43 | --interface-prefix org.gnome.Mutter \ 44 | --c-namespace MetaDBus \ 45 | --generate-c-code meta-dbus-idle-monitor \ 46 | $(srcdir)/org.gnome.Mutter.IdleMonitor.xml 47 | 48 | BUILT_SOURCES = \ 49 | meta-dbus-idle-monitor.h \ 50 | meta-dbus-idle-monitor.c \ 51 | $(NULL) 52 | 53 | EXTRA_DIST = \ 54 | org.gnome.Mutter.IdleMonitor.xml \ 55 | $(NULL) 56 | 57 | CLEANFILES = \ 58 | $(BUILT_SOURCES) \ 59 | $(NULL) 60 | 61 | -include $(top_srcdir)/git.mk 62 | -------------------------------------------------------------------------------- /daemons/idle-monitor/flashback-idle-monitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef FLASHBACK_IDLE_MONITOR_H 19 | #define FLASHBACK_IDLE_MONITOR_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define FLASHBACK_TYPE_IDLE_MONITOR flashback_idle_monitor_get_type () 26 | G_DECLARE_FINAL_TYPE (FlashbackIdleMonitor, flashback_idle_monitor, 27 | FLASHBACK, IDLE_MONITOR, GObject) 28 | 29 | FlashbackIdleMonitor *flashback_idle_monitor_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /daemons/idle-monitor/org.gnome.Mutter.IdleMonitor.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /daemons/media-keys/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | libexec_PROGRAMS = \ 4 | gnome-flashback-media-keys \ 5 | $(NULL) 6 | 7 | gnome_flashback_media_keys_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"gnome-flashback-media-keys\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(NULL) 12 | 13 | gnome_flashback_media_keys_CFLAGS = \ 14 | $(MEDIA_KEYS_CFLAGS) \ 15 | $(WARN_CFLAGS) \ 16 | $(AM_CFLAGS) \ 17 | $(NULL) 18 | 19 | gnome_flashback_media_keys_SOURCES = \ 20 | gf-media-keys-main.c \ 21 | gf-media-keys.c \ 22 | gf-media-keys.h \ 23 | gsd-media-keys-manager.c \ 24 | gsd-media-keys-manager.h \ 25 | gsd-screenshot-utils.c \ 26 | gsd-screenshot-utils.h \ 27 | media-keys.h \ 28 | shell-action-modes.h \ 29 | shortcuts-list.h \ 30 | $(NULL) 31 | 32 | gnome_flashback_media_keys_LDFLAGS = \ 33 | $(WARN_LDFLAGS) \ 34 | $(AM_LDFLAGS) \ 35 | $(NULL) 36 | 37 | gnome_flashback_media_keys_LDADD = \ 38 | $(top_builddir)/dbus/libdbus.la \ 39 | $(MEDIA_KEYS_LIBS) \ 40 | $(NULL) 41 | 42 | -include $(top_srcdir)/git.mk 43 | -------------------------------------------------------------------------------- /daemons/media-keys/gf-media-keys.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2022 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_MEDIA_KEYS_H 19 | #define GF_MEDIA_KEYS_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_MEDIA_KEYS (gf_media_keys_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfMediaKeys, gf_media_keys, GF, MEDIA_KEYS, GObject) 27 | 28 | GfMediaKeys *gf_media_keys_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /daemons/media-keys/gsd-media-keys-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program; if not, see . 17 | * 18 | */ 19 | 20 | #ifndef __GSD_MEDIA_KEYS_MANAGER_H 21 | #define __GSD_MEDIA_KEYS_MANAGER_H 22 | 23 | #include 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define GSD_TYPE_MEDIA_KEYS_MANAGER (gsd_media_keys_manager_get_type ()) 28 | 29 | G_DECLARE_DERIVABLE_TYPE (GsdMediaKeysManager, gsd_media_keys_manager, GSD, MEDIA_KEYS_MANAGER, GObject) 30 | 31 | struct _GsdMediaKeysManagerClass 32 | { 33 | GObjectClass parent_class; 34 | }; 35 | 36 | GsdMediaKeysManager * gsd_media_keys_manager_new (void); 37 | gboolean gsd_media_keys_manager_start (GsdMediaKeysManager *manager, 38 | GError **error); 39 | void gsd_media_keys_manager_stop (GsdMediaKeysManager *manager); 40 | 41 | 42 | G_END_DECLS 43 | 44 | #endif /* __GSD_MEDIA_KEYS_MANAGER_H */ 45 | -------------------------------------------------------------------------------- /daemons/media-keys/gsd-screenshot-utils.h: -------------------------------------------------------------------------------- 1 | /* gsd-screenshot-utils.h - utilities to take screenshots 2 | * 3 | * Copyright (C) 2012 Red Hat, Inc. 4 | * 5 | * Adapted from gnome-screenshot code, which is 6 | * Copyright (C) 2001-2006 Jonathan Blandford 7 | * Copyright (C) 2006 Emmanuele Bassi 8 | * Copyright (C) 2008-2012 Cosimo Cecchi 9 | * 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2 of the License, or (at your option) any later version. 14 | * 15 | * This program is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public 21 | * License along with this program; if not, write to the 22 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 23 | */ 24 | 25 | #ifndef __GSD_SCREENSHOT_UTILS_H__ 26 | #define __GSD_SCREENSHOT_UTILS_H__ 27 | 28 | #include "media-keys.h" 29 | 30 | G_BEGIN_DECLS 31 | 32 | void gsd_screenshot_take (MediaKeyType key_type); 33 | 34 | G_END_DECLS 35 | 36 | #endif /* __GSD_SCREENSHOT_UTILS_H__ */ 37 | -------------------------------------------------------------------------------- /daemons/media-keys/media-keys.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2001 Bastien Nocera 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program; if not, see . 17 | */ 18 | 19 | #ifndef __MEDIA_KEYS_H__ 20 | #define __MEDIA_KEYS_H__ 21 | 22 | typedef enum { 23 | SCREENSHOT_KEY, 24 | WINDOW_SCREENSHOT_KEY, 25 | AREA_SCREENSHOT_KEY, 26 | SCREENSHOT_CLIP_KEY, 27 | WINDOW_SCREENSHOT_CLIP_KEY, 28 | AREA_SCREENSHOT_CLIP_KEY, 29 | SCREENCAST_KEY 30 | } MediaKeyType; 31 | 32 | #endif /* __MEDIA_KEYS_H__ */ 33 | -------------------------------------------------------------------------------- /daemons/polkit/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | libexec_PROGRAMS = \ 4 | gnome-flashback-polkit \ 5 | $(NULL) 6 | 7 | gnome_flashback_polkit_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"gnome-flashback-polkit\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -DPOLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE \ 11 | -I$(top_builddir)/daemons/polkit \ 12 | -I$(top_srcdir) \ 13 | $(NULL) 14 | 15 | gnome_flashback_polkit_CFLAGS = \ 16 | $(POLKIT_CFLAGS) \ 17 | $(WARN_CFLAGS) \ 18 | $(AM_CFLAGS) \ 19 | $(NULL) 20 | 21 | gnome_flashback_polkit_SOURCES = \ 22 | flashback-authenticator.c \ 23 | flashback-authenticator.h \ 24 | flashback-listener.c \ 25 | flashback-listener.h \ 26 | flashback-polkit.c \ 27 | flashback-polkit.h \ 28 | flashback-polkit-dialog.c \ 29 | flashback-polkit-dialog.h \ 30 | gf-polkit-main.c \ 31 | $(BUILT_SOURCES) \ 32 | $(NULL) 33 | 34 | gnome_flashback_polkit_LDFLAGS = \ 35 | $(WARN_LDFLAGS) \ 36 | $(AM_LDFLAGS) \ 37 | $(NULL) 38 | 39 | gnome_flashback_polkit_LDADD = \ 40 | $(top_builddir)/dbus/libdbus.la \ 41 | $(POLKIT_LIBS) \ 42 | $(NULL) 43 | 44 | gf-resources.c: polkit.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/polkit.gresource.xml) 45 | $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name gf $< 46 | 47 | gf-resources.h: polkit.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/polkit.gresource.xml) 48 | $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name gf $< 49 | 50 | BUILT_SOURCES = \ 51 | gf-resources.c \ 52 | gf-resources.h \ 53 | $(NULL) 54 | 55 | EXTRA_DIST = \ 56 | flashback-polkit-dialog.ui \ 57 | polkit.gresource.xml \ 58 | $(NULL) 59 | 60 | CLEANFILES = \ 61 | $(BUILT_SOURCES) \ 62 | $(NULL) 63 | 64 | -include $(top_srcdir)/git.mk 65 | -------------------------------------------------------------------------------- /daemons/polkit/flashback-polkit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef FLASHBACK_POLKIT_H 19 | #define FLASHBACK_POLKIT_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define FLASHBACK_TYPE_POLKIT flashback_polkit_get_type () 26 | G_DECLARE_FINAL_TYPE (FlashbackPolkit, flashback_polkit, 27 | FLASHBACK, POLKIT, GObject) 28 | 29 | FlashbackPolkit *flashback_polkit_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /daemons/polkit/polkit.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | flashback-polkit-dialog.ui 5 | 6 | 7 | -------------------------------------------------------------------------------- /data/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | SUBDIRS = \ 4 | applications \ 5 | autostart \ 6 | compizconfig \ 7 | directories \ 8 | gnome-panel \ 9 | keybindings \ 10 | menus \ 11 | schemas \ 12 | sessions \ 13 | systemd \ 14 | theme \ 15 | ui \ 16 | xsessions \ 17 | $(NULL) 18 | 19 | libexec_SCRIPTS = \ 20 | gnome-flashback-metacity \ 21 | $(NULL) 22 | 23 | gnome-flashback-metacity: Makefile 24 | $(AM_V_GEN) (echo '#!/bin/sh' && echo '' && \ 25 | echo 'if [ -z $$XDG_CURRENT_DESKTOP ]; then' && \ 26 | echo ' export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"' && \ 27 | echo 'fi' && echo '' && \ 28 | echo -n 'exec gnome-session ' && \ 29 | echo -n '--session=gnome-flashback-metacity ' && \ 30 | echo '--disable-acceleration-check "$$@"') > $@ 31 | $(AM_V_at) chmod a+x $@ 32 | 33 | CLEANFILES = \ 34 | gnome-flashback-metacity \ 35 | $(NULL) 36 | 37 | if WITH_COMPIZ_SESSION 38 | libexec_SCRIPTS += \ 39 | gnome-flashback-compiz \ 40 | $(NULL) 41 | 42 | gnome-flashback-compiz: Makefile 43 | $(AM_V_GEN) (echo '#!/bin/sh' && echo '' && \ 44 | echo 'if [ -z $$XDG_CURRENT_DESKTOP ]; then' && \ 45 | echo ' export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"' && \ 46 | echo 'fi' && echo '' && \ 47 | echo -n 'exec gnome-session ' && \ 48 | echo '--session=gnome-flashback-compiz "$$@"') > $@ 49 | $(AM_V_at) chmod a+x $@ 50 | 51 | CLEANFILES += \ 52 | gnome-flashback-compiz \ 53 | $(NULL) 54 | endif 55 | 56 | -include $(top_srcdir)/git.mk 57 | -------------------------------------------------------------------------------- /data/applications/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | desktop_in_files = \ 4 | gnome-flashback.desktop.in \ 5 | $(NULL) 6 | 7 | desktopdir = $(datadir)/applications 8 | desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) 9 | 10 | %.desktop: %.desktop.in 11 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \ 12 | -d $(top_srcdir)/po && mv $@-t $@ 13 | 14 | EXTRA_DIST = \ 15 | $(desktop_in_files) \ 16 | $(NULL) 17 | 18 | CLEANFILES = \ 19 | $(desktop_DATA) \ 20 | $(NULL) 21 | 22 | -include $(top_srcdir)/git.mk 23 | -------------------------------------------------------------------------------- /data/applications/gnome-flashback.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=GNOME Flashback 4 | Exec=gnome-flashback 5 | OnlyShowIn=GNOME-Flashback; 6 | NoDisplay=true 7 | X-GNOME-Autostart-Phase=Initialization 8 | X-GNOME-Autostart-Notify=true 9 | X-GNOME-AutoRestart=false 10 | X-GNOME-HiddenUnderSystemd=true 11 | -------------------------------------------------------------------------------- /data/autostart/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | autostartdir = $(sysconfdir)/xdg/autostart 4 | autostart_DATA = \ 5 | gnome-flashback-clipboard.desktop \ 6 | gnome-flashback-geoclue-demo-agent.desktop \ 7 | gnome-flashback-idle-monitor.desktop \ 8 | gnome-flashback-media-keys.desktop \ 9 | gnome-flashback-nm-applet.desktop \ 10 | gnome-flashback-polkit.desktop \ 11 | $(NULL) 12 | 13 | %.desktop.in: %.desktop.in.in 14 | $(AM_V_GEN) sed -e 's,[@]libexecdir[@],$(libexecdir),g' < $< > $@ 15 | 16 | %.desktop: %.desktop.in 17 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \ 18 | -d $(top_srcdir)/po && mv $@-t $@ 19 | 20 | EXTRA_DIST = \ 21 | gnome-flashback-clipboard.desktop.in.in \ 22 | gnome-flashback-geoclue-demo-agent.desktop.in.in \ 23 | gnome-flashback-idle-monitor.desktop.in.in \ 24 | gnome-flashback-media-keys.desktop.in.in \ 25 | gnome-flashback-nm-applet.desktop.in \ 26 | gnome-flashback-polkit.desktop.in.in \ 27 | $(NULL) 28 | 29 | CLEANFILES = \ 30 | gnome-flashback-clipboard.desktop.in \ 31 | gnome-flashback-clipboard.desktop \ 32 | gnome-flashback-geoclue-demo-agent.desktop.in \ 33 | gnome-flashback-geoclue-demo-agent.desktop \ 34 | gnome-flashback-idle-monitor.desktop.in \ 35 | gnome-flashback-idle-monitor.desktop \ 36 | gnome-flashback-media-keys.desktop.in \ 37 | gnome-flashback-media-keys.desktop \ 38 | gnome-flashback-nm-applet.desktop \ 39 | gnome-flashback-polkit.desktop.in \ 40 | gnome-flashback-polkit.desktop \ 41 | $(NULL) 42 | 43 | -include $(top_srcdir)/git.mk 44 | -------------------------------------------------------------------------------- /data/autostart/gnome-flashback-clipboard.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Clipboard (GNOME Flashback) 4 | Exec=@libexecdir@/gnome-flashback-clipboard 5 | AutostartCondition=GSettings org.gnome.gnome-flashback clipboard 6 | OnlyShowIn=GNOME-Flashback; 7 | NoDisplay=true 8 | X-GNOME-Autostart-Phase=Initialization 9 | X-GNOME-Autostart-Notify=true 10 | X-GNOME-AutoRestart=true 11 | -------------------------------------------------------------------------------- /data/autostart/gnome-flashback-geoclue-demo-agent.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Geoclue Demo agent (GNOME Flashback) 3 | GenericName=Demo geoclue agent 4 | Keywords=geolocation; 5 | Exec=@libexecdir@/geoclue-2.0/demos/agent 6 | TryExec=@libexecdir@/geoclue-2.0/demos/agent 7 | Icon=mark-location-symbolic 8 | OnlyShowIn=GNOME-Flashback; 9 | NoDisplay=true 10 | Terminal=false 11 | Type=Application 12 | -------------------------------------------------------------------------------- /data/autostart/gnome-flashback-idle-monitor.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Idle Monitor (GNOME Flashback) 4 | Exec=@libexecdir@/gnome-flashback-idle-monitor 5 | AutostartCondition=GSettings org.gnome.gnome-flashback idle-monitor 6 | OnlyShowIn=GNOME-Flashback; 7 | NoDisplay=true 8 | X-GNOME-Autostart-Phase=Initialization 9 | X-GNOME-Autostart-Notify=true 10 | X-GNOME-AutoRestart=true 11 | -------------------------------------------------------------------------------- /data/autostart/gnome-flashback-media-keys.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=MediaKeys (GNOME Flashback) 4 | Exec=@libexecdir@/gnome-flashback-media-keys 5 | OnlyShowIn=GNOME-Flashback; 6 | NoDisplay=true 7 | X-GNOME-Autostart-Phase=Initialization 8 | X-GNOME-Autostart-Notify=true 9 | X-GNOME-AutoRestart=true 10 | -------------------------------------------------------------------------------- /data/autostart/gnome-flashback-nm-applet.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Network (GNOME Flashback) 3 | Comment=Manage your network connections 4 | # TRANSLATORS: Don't translate this text (this is icon name) 5 | Icon=nm-device-wireless 6 | Exec=nm-applet 7 | TryExec=nm-applet 8 | Terminal=false 9 | Type=Application 10 | NoDisplay=true 11 | OnlyShowIn=GNOME-Flashback; 12 | X-GNOME-UsesNotifications=true 13 | -------------------------------------------------------------------------------- /data/autostart/gnome-flashback-polkit.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Polkit (GNOME Flashback) 4 | Exec=@libexecdir@/gnome-flashback-polkit 5 | AutostartCondition=GSettings org.gnome.gnome-flashback polkit 6 | OnlyShowIn=GNOME-Flashback; 7 | NoDisplay=true 8 | X-GNOME-Autostart-Phase=Initialization 9 | X-GNOME-Autostart-Notify=true 10 | X-GNOME-AutoRestart=true 11 | -------------------------------------------------------------------------------- /data/compizconfig/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | config_files = \ 4 | gnome-flashback.conf \ 5 | gnome-flashback.ini \ 6 | $(NULL) 7 | 8 | upgrade_files = \ 9 | $(NULL) 10 | 11 | if WITH_COMPIZ_SESSION 12 | configdir = $(COMPIZCONFIG_CONFIG_DIR) 13 | config_DATA = $(config_files) 14 | 15 | upgradedir = $(COMPIZCONFIG_UPGRADES_DIR) 16 | upgrade_DATA = $(upgrade_files) 17 | endif 18 | 19 | EXTRA_DIST = \ 20 | $(config_files) \ 21 | $(upgrade_files) \ 22 | $(NULL) 23 | 24 | -include $(top_srcdir)/git.mk 25 | -------------------------------------------------------------------------------- /data/compizconfig/gnome-flashback.conf: -------------------------------------------------------------------------------- 1 | [general_gnome-flashback] 2 | backend = gsettings 3 | integration = true 4 | plugin_list_autosort = true 5 | profile = gnome-flashback 6 | -------------------------------------------------------------------------------- /data/compizconfig/gnome-flashback.ini: -------------------------------------------------------------------------------- 1 | [core] 2 | s0_active_plugins = animation;commands;compiztoolbox;composite;core;decor;expo;ezoom;fade;gnomecompat;grid;imgpng;mousepoll;move;opengl;place;regex;resize;scale;session;snap;vpswitch;wall 3 | -------------------------------------------------------------------------------- /data/directories/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | directory_in_files = \ 4 | X-GNOME-Flashback-Science.directory.desktop.in \ 5 | X-GNOME-Flashback-Settings.directory.desktop.in \ 6 | X-GNOME-Flashback-Settings-System.directory.desktop.in \ 7 | $(NULL) 8 | 9 | directorydir = $(datadir)/desktop-directories 10 | directory_DATA = $(directory_in_files:.directory.desktop.in=.directory) 11 | 12 | %.directory: %.directory.desktop.in 13 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \ 14 | -d $(top_srcdir)/po && mv $@-t $@ 15 | 16 | EXTRA_DIST = \ 17 | $(directory_in_files) \ 18 | $(NULL) 19 | 20 | CLEANFILES = \ 21 | $(directory_DATA) \ 22 | $(NULL) 23 | 24 | -include $(top_srcdir)/git.mk 25 | -------------------------------------------------------------------------------- /data/directories/X-GNOME-Flashback-Science.directory.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Directory 3 | Name=Science 4 | Comment=Scientific applications 5 | # TRANSLATORS: Don't translate this text (this is icon name) 6 | Icon=applications-engineering 7 | -------------------------------------------------------------------------------- /data/directories/X-GNOME-Flashback-Settings-System.directory.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Directory 3 | Name=Administration 4 | Comment=Change system-wide settings (affects all users) 5 | # TRANSLATORS: Don't translate this text (this is icon name) 6 | Icon=preferences-system 7 | -------------------------------------------------------------------------------- /data/directories/X-GNOME-Flashback-Settings.directory.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Directory 3 | Name=Preferences 4 | Comment=Personal preferences 5 | # TRANSLATORS: Don't translate this text (this is icon name) 6 | Icon=preferences-desktop 7 | -------------------------------------------------------------------------------- /data/gnome-panel/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | layout_files = \ 4 | gnome-flashback.layout \ 5 | $(NULL) 6 | 7 | layoutsdir = $(GNOME_PANEL_LAYOUTS_DIR) 8 | layouts_DATA = $(layout_files) 9 | 10 | EXTRA_DIST = \ 11 | $(layout_files) \ 12 | $(NULL) 13 | 14 | -include $(top_srcdir)/git.mk 15 | -------------------------------------------------------------------------------- /data/gnome-panel/gnome-flashback.layout: -------------------------------------------------------------------------------- 1 | [Toplevel top-panel] 2 | expand=true 3 | orientation=top 4 | size=24 5 | 6 | [Toplevel bottom-panel] 7 | expand=true 8 | orientation=bottom 9 | size=24 10 | 11 | [Object menu-bar] 12 | object-iid=org.gnome.gnome-panel.menu::menu-bar 13 | toplevel-id=top-panel 14 | pack-index=0 15 | 16 | [Object notification-area] 17 | object-iid=org.gnome.gnome-panel.notification-area::notification-area 18 | toplevel-id=top-panel 19 | pack-type=end 20 | pack-index=3 21 | 22 | [Object system-indicators] 23 | object-iid=org.gnome.gnome-flashback.system-indicators::system-indicators 24 | toplevel-id=top-panel 25 | pack-type=end 26 | pack-index=2 27 | 28 | [Object clock] 29 | object-iid=org.gnome.gnome-panel.clock::clock 30 | toplevel-id=top-panel 31 | pack-type=end 32 | pack-index=1 33 | 34 | [Object user-menu] 35 | object-iid=org.gnome.gnome-panel.menu::user-menu 36 | toplevel-id=top-panel 37 | pack-type=end 38 | pack-index=0 39 | 40 | [Object show-destkop] 41 | object-iid=org.gnome.gnome-panel.wncklet::show-desktop 42 | toplevel-id=bottom-panel 43 | pack-index=0 44 | 45 | [Object window-list] 46 | object-iid=org.gnome.gnome-panel.wncklet::window-list 47 | toplevel-id=bottom-panel 48 | pack-index=1 49 | 50 | [Object workspace-switcher] 51 | object-iid=org.gnome.gnome-panel.wncklet::workspace-switcher 52 | toplevel-id=bottom-panel 53 | pack-type=end 54 | pack-index=0 55 | -------------------------------------------------------------------------------- /data/keybindings/50-gnome-flashback-screenshots.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 11 | 12 | 13 | 15 | 16 | 17 | 19 | 20 | 22 | 23 | 25 | 26 | 28 | 29 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /data/keybindings/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | keybindingsdir = @GNOME_KEYBINDINGS_KEYSDIR@ 4 | keybindings_DATA = \ 5 | 50-gnome-flashback-screenshots.xml \ 6 | $(NULL) 7 | 8 | EXTRA_DIST = \ 9 | $(keybindings_DATA) \ 10 | $(NULL) 11 | 12 | -include $(top_srcdir)/git.mk 13 | -------------------------------------------------------------------------------- /data/menus/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | menudir = $(sysconfdir)/xdg/menus 4 | menu_DATA = \ 5 | gnome-flashback-applications.menu \ 6 | $(NULL) 7 | 8 | EXTRA_DIST = \ 9 | $(menu_DATA) \ 10 | $(NULL) 11 | 12 | -include $(top_srcdir)/git.mk 13 | -------------------------------------------------------------------------------- /data/schemas/00_gnome-flashback.gschema.override: -------------------------------------------------------------------------------- 1 | [org.gnome.desktop.wm.keybindings:GNOME-Flashback] 2 | panel-main-menu=['F1'] 3 | 4 | [org.gnome.desktop.wm.preferences:GNOME-Flashback] 5 | button-layout='appmenu:minimize,maximize,close' 6 | 7 | [org.gnome.gnome-panel.general:GNOME-Flashback] 8 | default-layout='gnome-flashback' 9 | -------------------------------------------------------------------------------- /data/schemas/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | overridedir = $(gsettingsschemadir) 4 | override_DATA = 00_gnome-flashback.gschema.override 5 | 6 | gsettings_ENUM_NAMESPACE = org.gnome.gnome-flashback.desktop 7 | gsettings_ENUM_FILES = \ 8 | $(top_srcdir)/gnome-flashback/libdesktop/gf-desktop-enums.h \ 9 | $(NULL) 10 | 11 | gsettings_SCHEMAS = \ 12 | org.gnome.gnome-flashback.gschema.xml \ 13 | org.gnome.gnome-flashback.desktop.gschema.xml \ 14 | org.gnome.gnome-flashback.desktop.background.gschema.xml \ 15 | org.gnome.gnome-flashback.desktop.icons.gschema.xml \ 16 | org.gnome.gnome-flashback.keybindings.gschema.xml \ 17 | org.gnome.gnome-flashback.notifications.gschema.xml \ 18 | org.gnome.gnome-flashback.system-indicators.input-sources.gschema.xml \ 19 | $(NULL) 20 | 21 | @GSETTINGS_RULES@ 22 | 23 | EXTRA_DIST = \ 24 | $(override_DATA) \ 25 | $(gsettings_SCHEMAS) \ 26 | $(NULL) 27 | 28 | CLEANFILES = \ 29 | *.gschema.valid \ 30 | $(NULL) 31 | 32 | -include $(top_srcdir)/git.mk 33 | -------------------------------------------------------------------------------- /data/schemas/org.gnome.gnome-flashback.desktop.background.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Fade the background on change 6 | If set to true, then fade effect will be used to change the desktop background. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /data/schemas/org.gnome.gnome-flashback.desktop.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Draw desktop background 6 | If set to true, then GNOME Flashback will draw the desktop background. 7 | 8 | 9 | 10 | true 11 | Show desktop icons 12 | If set to true, then GNOME Flashback will draw the icons on the desktop. 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /data/schemas/org.gnome.gnome-flashback.notifications.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 'top-right' 12 | Location of the notifications 13 | The corner of the screen where notifications will be shown. 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /data/schemas/org.gnome.gnome-flashback.system-indicators.input-sources.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | Use IBus icon if available 6 | 7 | 8 | 9 | '#FFFFFF' 10 | Icon background color 11 | 12 | 13 | 14 | '#000000' 15 | Icon foreground color 16 | 17 | 18 | 19 | 'Cantarell' 20 | Icon font family 21 | 22 | 23 | 24 | 25 | 500 26 | Icon font weight 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /data/sessions/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | required_components_common = \ 4 | gnome-flashback \ 5 | gnome-panel \ 6 | $(NULL) 7 | 8 | required_components_compiz = \ 9 | compiz \ 10 | $(required_components_common) \ 11 | $(REQUIRED_COMPNENTS_GSD) \ 12 | $(NULL) 13 | 14 | required_components_metacity = \ 15 | metacity \ 16 | $(required_components_common) \ 17 | $(REQUIRED_COMPNENTS_GSD) \ 18 | $(NULL) 19 | 20 | space = $(NULL) $(NULL) 21 | compiz = $(subst $(space),;,$(strip $(required_components_compiz))) 22 | metacity = $(subst $(space),;,$(strip $(required_components_metacity))) 23 | 24 | gnome-flashback-metacity.session: ../../configure.ac Makefile.am gnome-flashback.session.in 25 | $(AM_V_GEN) sed \ 26 | -e 's,[@]NAME[@],Metacity,g' \ 27 | -e 's,[@]REQUIRED_COMPONENTS[@],$(metacity),g' \ 28 | < $(srcdir)/gnome-flashback.session.in > $@ 29 | 30 | sessions = \ 31 | gnome-flashback-metacity.session \ 32 | $(NULL) 33 | 34 | if WITH_COMPIZ_SESSION 35 | gnome-flashback-compiz.session: ../../configure.ac Makefile.am gnome-flashback.session.in 36 | $(AM_V_GEN) sed \ 37 | -e 's,[@]NAME[@],Compiz,g' \ 38 | -e 's,[@]REQUIRED_COMPONENTS[@],$(compiz),g' \ 39 | < $(srcdir)/gnome-flashback.session.in > $@ 40 | 41 | sessions += \ 42 | gnome-flashback-compiz.session \ 43 | $(NULL) 44 | endif 45 | 46 | sessiondir = $(datadir)/gnome-session/sessions 47 | session_DATA = $(sessions) 48 | 49 | CLEANFILES = \ 50 | $(sessions) \ 51 | $(NULL) 52 | 53 | EXTRA_DIST = \ 54 | gnome-flashback.session.in \ 55 | $(NULL) 56 | 57 | -include $(top_srcdir)/git.mk 58 | -------------------------------------------------------------------------------- /data/sessions/gnome-flashback.session.in: -------------------------------------------------------------------------------- 1 | [GNOME Session] 2 | Name=GNOME Flashback (@NAME@) 3 | RequiredComponents=@REQUIRED_COMPONENTS@; 4 | -------------------------------------------------------------------------------- /data/systemd/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | service_in_files = gnome-flashback.service.in 4 | service_files = $(service_in_files:.service.in=.service) 5 | 6 | target_files = \ 7 | gnome-flashback.target \ 8 | $(NULL) 9 | 10 | systemduserunitdir = $(prefix)/lib/systemd/user 11 | systemduserunit_DATA = \ 12 | $(service_files) \ 13 | $(target_files) \ 14 | $(NULL) 15 | 16 | %.service: %.service.in 17 | $(AM_V_GEN) sed -e 's,[@]bindir[@],$(bindir),g' < $< > $@ 18 | 19 | space = $(NULL) $(NULL) 20 | wants_gsd = Wants=$(subst $(space),.target\nWants=,$(strip $(REQUIRED_COMPNENTS_GSD))).target 21 | 22 | metacity/session.conf: ../../configure.ac Makefile.am gnome-flashback.session.conf.in 23 | $(AM_V_GEN) mkdir -p `dirname $@` && sed \ 24 | -e 's,[@]WANTS_GSD[@],$(wants_gsd),g' \ 25 | < $(srcdir)/gnome-flashback.session.conf.in > $@ 26 | 27 | systemd_metacity_sessiondir = $(prefix)/lib/systemd/user/gnome-session@gnome-flashback-metacity.target.d 28 | systemd_metacity_session_DATA = \ 29 | metacity/session.conf \ 30 | $(NULL) 31 | 32 | CLEANFILES = \ 33 | $(service_files) \ 34 | $(systemd_metacity_session_DATA) \ 35 | $(NULL) 36 | 37 | if WITH_COMPIZ_SESSION 38 | compiz/session.conf: ../../configure.ac Makefile.am gnome-flashback.session.conf.in 39 | $(AM_V_GEN) mkdir -p `dirname $@` && sed \ 40 | -e 's,[@]WANTS_GSD[@],$(wants_gsd),g' \ 41 | < $(srcdir)/gnome-flashback.session.conf.in > $@ 42 | 43 | systemd_compiz_sessiondir = $(prefix)/lib/systemd/user/gnome-session@gnome-flashback-compiz.target.d 44 | systemd_compiz_session_DATA = \ 45 | compiz/session.conf \ 46 | $(NULL) 47 | 48 | CLEANFILES += \ 49 | $(systemd_compiz_session_DATA) \ 50 | $(NULL) 51 | endif 52 | 53 | EXTRA_DIST = \ 54 | gnome-flashback.session.conf.in \ 55 | $(service_in_files) \ 56 | $(target_files) \ 57 | $(NULL) 58 | 59 | -include $(top_srcdir)/git.mk 60 | -------------------------------------------------------------------------------- /data/systemd/gnome-flashback.service.in: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=GNOME Flashback 3 | OnFailure=gnome-session-failed.target 4 | OnFailureJobMode=replace 5 | CollectMode=inactive-or-failed 6 | 7 | After=gnome-session-manager.target 8 | 9 | Requisite=gnome-session-initialized.target 10 | PartOf=gnome-session-initialized.target 11 | Before=gnome-session-initialized.target 12 | 13 | StartLimitIntervalSec=15s 14 | StartLimitBurst=3 15 | 16 | [Service] 17 | Type=dbus 18 | Slice=session.slice 19 | ExecStart=@bindir@/gnome-flashback 20 | Restart=on-failure 21 | RestartSec=0ms 22 | BusName=org.gnome.Shell 23 | -------------------------------------------------------------------------------- /data/systemd/gnome-flashback.session.conf.in: -------------------------------------------------------------------------------- 1 | [Unit] 2 | @WANTS_GSD@ 3 | 4 | Requires=gnome-flashback.target 5 | -------------------------------------------------------------------------------- /data/systemd/gnome-flashback.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=GNOME Flashback 3 | DefaultDependencies=no 4 | 5 | Requisite=gnome-session-initialized.target 6 | PartOf=gnome-session-initialized.target 7 | Before=gnome-session-initialized.target 8 | 9 | Requires=gnome-flashback.service 10 | After=gnome-flashback.service 11 | -------------------------------------------------------------------------------- /data/theme/Adwaita/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | EXTRA_DIST = \ 4 | gnome-flashback.css \ 5 | gnome-flashback-dark.css \ 6 | $(NULL) 7 | 8 | -include $(top_srcdir)/git.mk 9 | -------------------------------------------------------------------------------- /data/theme/Adwaita/gnome-flashback-dark.css: -------------------------------------------------------------------------------- 1 | @import url("resource:///org/gnome/gnome-flashback/theme/common.css"); 2 | 3 | gf-popup-window { 4 | background-color: #393f3f; 5 | color: #eeeeec; 6 | border: 1px solid rgba(28, 31, 31, 0.9); 7 | } 8 | 9 | gf-popup-window.solid { 10 | border: 1px solid #1f2222; 11 | } 12 | 13 | #gf-candidate-popup gf-candidate-box:selected, 14 | #gf-candidate-popup gf-candidate-box:hover { 15 | background-color: #215d9c; 16 | color: #ffffff; 17 | } 18 | 19 | #gf-input-source-popup #gf-input-source:selected { 20 | background-color: #215d9c; 21 | color: #ffffff; 22 | } 23 | 24 | #gf-osd-window levelbar block.overdrive { 25 | background-color: #e01b24; 26 | border-color: #e01b24; 27 | } 28 | 29 | gf-icon label { 30 | color: #ffffff; 31 | } 32 | 33 | gf-icon:selected label { 34 | background: #215d9c; 35 | color: #ffffff; 36 | } 37 | -------------------------------------------------------------------------------- /data/theme/Adwaita/gnome-flashback.css: -------------------------------------------------------------------------------- 1 | @import url("resource:///org/gnome/gnome-flashback/theme/common.css"); 2 | 3 | gf-popup-window { 4 | background-color: #e8e8e7; 5 | color: #2e3436; 6 | border: 1px solid rgba(0, 0, 0, 0.23); 7 | } 8 | 9 | gf-popup-window.solid { 10 | border: 1px solid #a5a5a1; 11 | } 12 | 13 | #gf-candidate-popup gf-candidate-box:selected, 14 | #gf-candidate-popup gf-candidate-box:hover { 15 | background-color: #4a90d9; 16 | color: #ffffff; 17 | } 18 | 19 | #gf-input-source-popup #gf-input-source:selected { 20 | background-color: #4a90d9; 21 | color: #ffffff; 22 | } 23 | 24 | #gf-osd-window levelbar block.overdrive { 25 | background-color: #e01b24; 26 | border-color: #e01b24; 27 | } 28 | 29 | gf-icon label { 30 | color: #ffffff; 31 | } 32 | 33 | gf-icon:selected label { 34 | background: #4a90d9; 35 | color: #ffffff; 36 | } 37 | -------------------------------------------------------------------------------- /data/theme/HighContrast/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | EXTRA_DIST = \ 4 | gnome-flashback.css \ 5 | gnome-flashback-inverse.css \ 6 | $(NULL) 7 | 8 | -include $(top_srcdir)/git.mk 9 | -------------------------------------------------------------------------------- /data/theme/HighContrast/gnome-flashback-inverse.css: -------------------------------------------------------------------------------- 1 | @import url("resource:///org/gnome/gnome-flashback/theme/common.css"); 2 | 3 | gf-popup-window { 4 | background-color: #000000; 5 | color: #ffffff; 6 | border: 1px solid rgb(115, 115, 115); 7 | } 8 | 9 | gf-popup-window.solid { 10 | border: 1px solid #8d8d8d; 11 | } 12 | 13 | #gf-candidate-popup gf-candidate-box:selected, 14 | #gf-candidate-popup gf-candidate-box:hover { 15 | background-color: #ffffff; 16 | color: #000000; 17 | } 18 | 19 | #gf-input-source-popup #gf-input-source:selected { 20 | background-color: #ffffff; 21 | color: #000000; 22 | } 23 | 24 | #gf-osd-window levelbar block.overdrive { 25 | background-color: #ef2929; 26 | border-color: #ef2929; 27 | } 28 | 29 | gf-icon image, 30 | gf-icon label { 31 | color: #ffffff; 32 | } 33 | 34 | gf-icon:selected label { 35 | background: #000000; 36 | color: #ffffff; 37 | } 38 | -------------------------------------------------------------------------------- /data/theme/HighContrast/gnome-flashback.css: -------------------------------------------------------------------------------- 1 | @import url("resource:///org/gnome/gnome-flashback/theme/common.css"); 2 | 3 | gf-popup-window { 4 | background-color: #ffffff; 5 | color: #000000; 6 | border: 1px solid rgba(0, 0, 0, 0.23); 7 | } 8 | 9 | gf-popup-window.solid { 10 | border: 1px solid #8d8d8d; 11 | } 12 | 13 | #gf-candidate-popup gf-candidate-box:selected, 14 | #gf-candidate-popup gf-candidate-box:hover { 15 | background-color: #000000; 16 | color: #ffffff; 17 | } 18 | 19 | #gf-input-source-popup #gf-input-source:selected { 20 | background-color: #000000; 21 | color: #ffffff; 22 | } 23 | 24 | #gf-osd-window levelbar block.overdrive { 25 | background-color: #ef2929; 26 | border-color: #ef2929; 27 | } 28 | 29 | gf-icon image, 30 | gf-icon label { 31 | color: #ffffff; 32 | } 33 | 34 | gf-icon:selected label { 35 | background: #000000; 36 | color: #ffffff; 37 | } 38 | -------------------------------------------------------------------------------- /data/theme/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | SUBDIRS = \ 4 | Adwaita \ 5 | HighContrast \ 6 | Yaru \ 7 | $(NULL) 8 | 9 | EXTRA_DIST = \ 10 | common.css \ 11 | fallback.css \ 12 | $(NULL) 13 | 14 | -include $(top_srcdir)/git.mk 15 | -------------------------------------------------------------------------------- /data/theme/Yaru/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | EXTRA_DIST = \ 4 | gnome-flashback.css \ 5 | $(NULL) 6 | 7 | -include $(top_srcdir)/git.mk 8 | -------------------------------------------------------------------------------- /data/theme/Yaru/gnome-flashback.css: -------------------------------------------------------------------------------- 1 | @import url("resource:///org/gnome/gnome-flashback/theme/common.css"); 2 | 3 | gf-popup-window { 4 | border: 1px solid @borders; 5 | } 6 | 7 | gf-icon label { 8 | color: white; 9 | } 10 | 11 | gf-icon:selected label { 12 | background-color: @theme_selected_bg_color; 13 | color: @theme_selected_fg_color; 14 | } 15 | 16 | gf-icon:selected:backdrop label { 17 | background-color: @theme_unfocused_selected_bg_color; 18 | color: @theme_unfocused_selected_fg_color; 19 | } 20 | 21 | #gf-candidate-popup gf-candidate-box:selected, 22 | #gf-candidate-popup gf-candidate-box:hover { 23 | background-color: @theme_selected_bg_color; 24 | color: @theme_selected_fg_color; 25 | } 26 | 27 | #gf-input-source-popup #gf-input-source:selected { 28 | background-color: @theme_selected_bg_color; 29 | color: @theme_selected_fg_color; 30 | } 31 | -------------------------------------------------------------------------------- /data/theme/common.css: -------------------------------------------------------------------------------- 1 | gf-screensaver-panel { 2 | font-weight: bold; 3 | padding: 4px 10px; 4 | background: rgba (0, 0, 0, 0.5); 5 | color: #cccccc; 6 | } 7 | 8 | gf-screensaver-panel image, 9 | gf-screensaver-panel label { 10 | color: #cccccc; 11 | } 12 | 13 | gf-unlock-dialog, 14 | gf-unlock-dialog frame border { 15 | border-radius: 10px; 16 | } 17 | 18 | gf-popup-window { 19 | border-radius: 10px; 20 | } 21 | 22 | gf-popup-window.solid { 23 | border-radius: 0px; 24 | } 25 | 26 | #gf-candidate-popup { 27 | border-radius: 3px; 28 | } 29 | 30 | #gf-candidate-popup.solid { 31 | border-radius: 0px; 32 | } 33 | 34 | #gf-candidate-popup gf-candidate-box label { 35 | padding: 4px 6px; 36 | } 37 | 38 | #gf-candidate-popup gf-candidate-box label:last-child { 39 | padding-left: 0px; 40 | } 41 | 42 | #gf-candidate-popup gf-candidate-box:selected, 43 | #gf-candidate-popup gf-candidate-box:hover { 44 | border-radius: 3px; 45 | } 46 | 47 | #gf-input-source-popup #gf-input-source { 48 | min-width: 120px; 49 | min-height: 120px; 50 | font-size: 22px; 51 | } 52 | 53 | #gf-input-source-popup #gf-input-source:selected { 54 | border-radius: 6px; 55 | } 56 | 57 | #gf-label-window { 58 | font-size: 40px; 59 | } 60 | 61 | gf-icon { 62 | margin: 2px; 63 | } 64 | 65 | gf-icon label { 66 | border-radius: 3px; 67 | text-shadow: 1px 1px black; 68 | padding: 2px; 69 | } 70 | 71 | gf-icon:hover image { 72 | -gtk-icon-effect: highlight; 73 | } 74 | -------------------------------------------------------------------------------- /data/theme/fallback.css: -------------------------------------------------------------------------------- 1 | @import url("resource:///org/gnome/gnome-flashback/theme/common.css"); 2 | 3 | #gf-input-source-popup #gf-input-source:selected { 4 | background-color: #cccccc; 5 | color: #ffffff; 6 | } 7 | -------------------------------------------------------------------------------- /data/ui/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | EXTRA_DIST = \ 4 | gf-confirm-display-change-dialog.ui \ 5 | $(NULL) 6 | 7 | -include $(top_srcdir)/git.mk 8 | -------------------------------------------------------------------------------- /data/xsessions/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | xsession_in_in_files = \ 4 | gnome-flashback-metacity.desktop.in.in \ 5 | $(NULL) 6 | 7 | if WITH_COMPIZ_SESSION 8 | xsession_in_in_files += \ 9 | gnome-flashback-compiz.desktop.in.in \ 10 | $(NULL) 11 | endif 12 | 13 | xsessiondir = $(datadir)/xsessions 14 | xsession_in_files = $(xsession_in_in_files:.desktop.in.in=.desktop.in) 15 | xsession_DATA = $(xsession_in_files:.desktop.in=.desktop) 16 | 17 | %.desktop.in: %.desktop.in.in 18 | $(AM_V_GEN) sed -e 's,[@]libexecdir[@],$(libexecdir),g' < $< > $@ 19 | 20 | %.desktop: %.desktop.in 21 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \ 22 | -d $(top_srcdir)/po && mv $@-t $@ 23 | 24 | EXTRA_DIST = \ 25 | gnome-flashback-compiz.desktop.in.in \ 26 | gnome-flashback-metacity.desktop.in.in \ 27 | $(NULL) 28 | 29 | CLEANFILES = \ 30 | $(xsession_in_files) \ 31 | $(xsession_DATA) \ 32 | $(NULL) 33 | 34 | -include $(top_srcdir)/git.mk 35 | -------------------------------------------------------------------------------- /data/xsessions/gnome-flashback-compiz.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=GNOME Flashback (Compiz) 3 | Comment=This session logs you into GNOME Flashback with Compiz 4 | Exec=@libexecdir@/gnome-flashback-compiz 5 | TryExec=compiz 6 | Type=Application 7 | DesktopNames=GNOME-Flashback;GNOME; 8 | -------------------------------------------------------------------------------- /data/xsessions/gnome-flashback-metacity.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=GNOME Flashback (Metacity) 3 | Comment=This session logs you into GNOME Flashback with Metacity 4 | Exec=@libexecdir@/gnome-flashback-metacity 5 | TryExec=metacity 6 | Type=Application 7 | DesktopNames=GNOME-Flashback;GNOME; 8 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.Accounts.User.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.Accounts.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.Application.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.DBus.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.DisplayManager.Seat.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.FileManager1.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.Notifications.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.login1.Manager.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /dbus/org.freedesktop.login1.Session.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /dbus/org.gnome.Flashback.InputSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /dbus/org.gnome.Mutter.X11.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dbus/org.gnome.ScreenSaver.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /dbus/org.gnome.SessionManager.ClientPrivate.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /dbus/org.gnome.SessionManager.Presence.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dbus/org.gnome.SessionManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /dbus/org.gnome.SettingsDaemon.Rfkill.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /dbus/org.gnome.Shell.AudioDeviceSelection.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /dbus/org.gtk.Notifications.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /dbus/org.kde.StatusNotifierWatcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /gnome-flashback.doap: -------------------------------------------------------------------------------- 1 | 6 | 7 | gnome-flashback 8 | GNOME Flashback session and helper application 9 | GNOME Flashback provides unofficial session and helper application. 10 | 11 | This session consists of gnome-applets, gnome-flashback, gnome-panel and 12 | metacity. And all other modules that are used in official GNOME session. 13 | 14 | Helper application main job is to provide all features that is need for 15 | our session, but has been removed from GNOME and/or moved to mutter or 16 | gnome-shell. 17 | 18 | NOTE: This session is not supported by GNOME in any way! 19 | 20 | 21 | 22 | 23 | 24 | C 25 | 26 | 27 | 28 | Alberts Muktupāvels 29 | 30 | muktupavels 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /gnome-flashback/flashback.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ../data/theme/Adwaita/gnome-flashback.css 5 | ../data/theme/Adwaita/gnome-flashback-dark.css 6 | ../data/theme/HighContrast/gnome-flashback.css 7 | ../data/theme/HighContrast/gnome-flashback-inverse.css 8 | ../data/theme/Yaru/gnome-flashback.css 9 | ../data/theme/common.css 10 | ../data/theme/fallback.css 11 | 12 | 13 | ../data/ui/gf-confirm-display-change-dialog.ui 14 | 15 | 16 | libend-session-dialog/gf-inhibit-dialog.ui 17 | 18 | 19 | -------------------------------------------------------------------------------- /gnome-flashback/gf-application.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 - 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_APPLICATION_H 19 | #define GF_APPLICATION_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_APPLICATION gf_application_get_type () 26 | G_DECLARE_FINAL_TYPE (GfApplication, gf_application, 27 | GF, APPLICATION, GObject) 28 | 29 | GfApplication *gf_application_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/gf-confirm-display-change-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_CONFIRM_DISPLAY_CHANGE_DIALOG_H 19 | #define GF_CONFIRM_DISPLAY_CHANGE_DIALOG_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_CONFIRM_DISPLAY_CHANGE_DIALOG (gf_confirm_display_change_dialog_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfConfirmDisplayChangeDialog, gf_confirm_display_change_dialog, 27 | GF, CONFIRM_DISPLAY_CHANGE_DIALOG, GtkWindow) 28 | 29 | GtkWidget *gf_confirm_display_change_dialog_new (gint timeout); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/gf-session.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 - 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SESSION_H 19 | #define GF_SESSION_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_SESSION (gf_session_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfSession, gf_session, GF, SESSION, GObject) 27 | 28 | GfSession *gf_session_new (gboolean replace, 29 | const char *startup_id); 30 | 31 | void gf_session_set_environment (GfSession *self, 32 | const char *name, 33 | const char *value); 34 | 35 | void gf_session_register (GfSession *self); 36 | 37 | G_END_DECLS 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /gnome-flashback/gf-ui-scaling.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2024 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_UI_SCALING_H 19 | #define GF_UI_SCALING_H 20 | 21 | #include 22 | #include "backends/gf-backend.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define GF_TYPE_UI_SCALING (gf_ui_scaling_get_type ()) 27 | G_DECLARE_FINAL_TYPE (GfUiScaling, gf_ui_scaling, 28 | GF, UI_SCALING, GObject) 29 | 30 | GfUiScaling *gf_ui_scaling_new (GfBackend *backend); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /gnome-flashback/gf-wm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2022 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_WM_H 19 | #define GF_WM_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_WM (gf_wm_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfWm, gf_wm, GF, WM, GObject) 27 | 28 | GfWm *gf_wm_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /gnome-flashback/liba11y-keyboard/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | liba11y-keyboard.la \ 5 | $(NULL) 6 | 7 | liba11y_keyboard_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"a11y-keyboard\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(AM_CPPFLAGS) \ 12 | $(NULL) 13 | 14 | liba11y_keyboard_la_CFLAGS = \ 15 | $(A11Y_KEYBOARD_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | liba11y_keyboard_la_SOURCES = \ 21 | gf-a11y-keyboard.c \ 22 | gf-a11y-keyboard.h \ 23 | $(NULL) 24 | 25 | liba11y_keyboard_la_LDFLAGS = \ 26 | $(WARN_LDFLAGS) \ 27 | $(AM_LDFLAGS) \ 28 | $(NULL) 29 | 30 | liba11y_keyboard_la_LIBADD = \ 31 | $(top_builddir)/dbus/libdbus.la \ 32 | $(A11Y_KEYBOARD_LIBS) \ 33 | $(NULL) 34 | 35 | -include $(top_srcdir)/git.mk 36 | -------------------------------------------------------------------------------- /gnome-flashback/liba11y-keyboard/gf-a11y-keyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_A11Y_KEYBOARD_H 19 | #define GF_A11Y_KEYBOARD_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_A11Y_KEYBOARD (gf_a11y_keyboard_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfA11yKeyboard, gf_a11y_keyboard, 27 | GF, A11Y_KEYBOARD, GObject) 28 | 29 | GfA11yKeyboard *gf_a11y_keyboard_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libaudio-device-selection/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libaudio-device-selection.la \ 5 | $(NULL) 6 | 7 | libaudio_device_selection_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"audio-device-selection\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(AM_CPPFLAGS) \ 12 | $(NULL) 13 | 14 | libaudio_device_selection_la_CFLAGS = \ 15 | $(AUDIO_DEVICE_SELECTION_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | libaudio_device_selection_la_SOURCES = \ 21 | gf-audio-device-selection.c \ 22 | gf-audio-device-selection.h \ 23 | gf-audio-device-selection-dialog.c \ 24 | gf-audio-device-selection-dialog.h \ 25 | $(NULL) 26 | 27 | libaudio_device_selection_la_LDFLAGS = \ 28 | $(WARN_LDFLAGS) \ 29 | $(AM_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libaudio_device_selection_la_LIBADD = \ 33 | $(top_builddir)/dbus/libdbus.la \ 34 | $(AUDIO_DEVICE_SELECTION_LIBS) \ 35 | $(NULL) 36 | 37 | -include $(top_srcdir)/git.mk 38 | -------------------------------------------------------------------------------- /gnome-flashback/libaudio-device-selection/gf-audio-device-selection-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_AUDIO_DEVICE_SELECTION_DIALOG_H 19 | #define GF_AUDIO_DEVICE_SELECTION_DIALOG_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_AUDIO_DEVICE_SELECTION_DIALOG gf_audio_device_selection_dialog_get_type () 26 | G_DECLARE_FINAL_TYPE (GfAudioDeviceSelectionDialog, gf_audio_device_selection_dialog, 27 | GF, AUDIO_DEVICE_SELECTION_DIALOG, GtkWindow) 28 | 29 | GtkWidget *gf_audio_device_selection_dialog_new (const gchar *sender, 30 | const gchar *const *devices); 31 | 32 | const gchar *gf_audio_device_selection_dialog_get_sender (GfAudioDeviceSelectionDialog *dialog); 33 | 34 | G_END_DECLS 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /gnome-flashback/libaudio-device-selection/gf-audio-device-selection.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_AUDIO_DEVICE_SELECTION_H 19 | #define GF_AUDIO_DEVICE_SELECTION_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_AUDIO_DEVICE_SELECTION gf_audio_device_selection_get_type () 26 | G_DECLARE_FINAL_TYPE (GfAudioDeviceSelection, gf_audio_device_selection, 27 | GF, AUDIO_DEVICE_SELECTION, GObject) 28 | 29 | GfAudioDeviceSelection *gf_audio_device_selection_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libautomount-manager/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libautomount-manager.la \ 5 | $(NULL) 6 | 7 | libautomount_manager_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"automount-manager\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | $(NULL) 11 | 12 | libautomount_manager_la_CFLAGS = \ 13 | $(AUTOMOUNT_MANAGER_CFLAGS) \ 14 | $(WARN_CFLAGS) \ 15 | $(AM_CFLAGS) \ 16 | -I$(top_builddir)/gnome-flashback/libautomount-manager \ 17 | $(NULL) 18 | 19 | libautomount_manager_la_SOURCES = \ 20 | gsd-automount-manager.c \ 21 | gsd-automount-manager.h \ 22 | gsd-autorun.c \ 23 | gsd-autorun.h \ 24 | $(NULL) 25 | 26 | libautomount_manager_la_LDFLAGS = \ 27 | $(WARN_LDFLAGS) \ 28 | $(AM_LDFLAGS) \ 29 | $(NULL) 30 | 31 | libautomount_manager_la_LIBADD = \ 32 | $(AUTOMOUNT_MANAGER_LIBS) \ 33 | $(NULL) 34 | 35 | -include $(top_srcdir)/git.mk 36 | -------------------------------------------------------------------------------- /gnome-flashback/libautomount-manager/gsd-autorun.h: -------------------------------------------------------------------------------- 1 | /* 2 | * gsd-automount.h:helpers for automounting hotplugged volumes 3 | * 4 | * Copyright (C) 2008 Red Hat, Inc. 5 | * 6 | * This program is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | * 19 | * Authors: David Zeuthen 20 | * Cosimo Cecchi 21 | */ 22 | 23 | /* TODO: 24 | * 25 | * - unmount all the media we've automounted on shutdown 26 | * - finish x-content / * types 27 | * - finalize the semi-spec 28 | * - add probing/sniffing code 29 | * - implement missing features 30 | * - "Open Folder when mounted" 31 | * - Autorun spec (e.g. $ROOT/.autostart) 32 | * 33 | */ 34 | 35 | #ifndef __GSD_AUTORUN_H__ 36 | #define __GSD_AUTORUN_H__ 37 | 38 | #include 39 | #include 40 | 41 | typedef void (*GsdAutorunOpenWindow) (GMount *mount, 42 | gpointer user_data); 43 | 44 | void gsd_autorun (GMount *mount, 45 | GSettings *settings, 46 | GsdAutorunOpenWindow open_window_func, 47 | gpointer user_data); 48 | 49 | void gsd_allow_autorun_for_volume (GVolume *volume); 50 | void gsd_allow_autorun_for_volume_finish (GVolume *volume); 51 | 52 | #endif /* __GSD_AUTORUN_H__ */ 53 | -------------------------------------------------------------------------------- /gnome-flashback/libcommon/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libcommon.la \ 5 | $(NULL) 6 | 7 | libcommon_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"common\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -DGNOME_DESKTOP_USE_UNSTABLE_API \ 11 | -I$(top_builddir)/gnome-flashback/libcommon \ 12 | $(NULL) 13 | 14 | libcommon_la_CFLAGS = \ 15 | $(COMMON_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | libcommon_la_SOURCES = \ 21 | gf-bg.c \ 22 | gf-bg.h \ 23 | gf-keybindings.c \ 24 | gf-keybindings.h \ 25 | gf-popup-window.c \ 26 | gf-popup-window.h \ 27 | $(BUILT_SOURCES) \ 28 | $(NULL) 29 | 30 | libcommon_la_LDFLAGS = \ 31 | $(WARN_LDFLAGS) \ 32 | $(AM_LDFLAGS) \ 33 | $(NULL) 34 | 35 | libcommon_la_LIBADD = \ 36 | $(COMMON_LIBS) \ 37 | $(NULL) 38 | 39 | ENUM_TYPES = \ 40 | $(srcdir)/gf-keybindings.h \ 41 | $(NULL) 42 | 43 | gf-common-enum-types.c: gf-common-enum-types.c.in $(ENUM_TYPES) Makefile.am 44 | $(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-common-enum-types.c.in $(ENUM_TYPES) > \ 45 | gf-common-enum-types.c.tmp && mv gf-common-enum-types.c.tmp gf-common-enum-types.c 46 | 47 | gf-common-enum-types.h: gf-common-enum-types.h.in $(ENUM_TYPES) Makefile.am 48 | $(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-common-enum-types.h.in $(ENUM_TYPES) > \ 49 | gf-common-enum-types.h.tmp && mv gf-common-enum-types.h.tmp gf-common-enum-types.h 50 | 51 | BUILT_SOURCES = \ 52 | gf-common-enum-types.c \ 53 | gf-common-enum-types.h \ 54 | $(NULL) 55 | 56 | EXTRA_DIST = \ 57 | gf-common-enum-types.c.in \ 58 | gf-common-enum-types.h.in \ 59 | $(NULL) 60 | 61 | CLEANFILES = \ 62 | $(BUILT_SOURCES) \ 63 | $(NULL) 64 | 65 | -include $(top_srcdir)/git.mk 66 | -------------------------------------------------------------------------------- /gnome-flashback/libcommon/gf-common-enum-types.c.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #include "config.h" 3 | #include "gf-common-enum-types.h" 4 | /*** END file-header ***/ 5 | 6 | /*** BEGIN file-production ***/ 7 | #include "@basename@" 8 | /*** END file-production ***/ 9 | 10 | /*** BEGIN value-header ***/ 11 | 12 | GType 13 | @enum_name@_get_type (void) 14 | { 15 | static gsize g_enum_type_id; 16 | static const G@Type@Value values[] = 17 | { 18 | /*** END value-header ***/ 19 | 20 | /*** BEGIN value-production ***/ 21 | { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 22 | /*** END value-production ***/ 23 | 24 | /*** BEGIN value-tail ***/ 25 | { 0, NULL, NULL } 26 | }; 27 | 28 | if (g_once_init_enter (&g_enum_type_id)) 29 | { 30 | const gchar *string; 31 | GType id; 32 | 33 | string = g_intern_static_string ("@EnumName@"); 34 | id = g_@type@_register_static (string, values); 35 | 36 | g_once_init_leave (&g_enum_type_id, id); 37 | } 38 | 39 | return g_enum_type_id; 40 | } 41 | /*** END value-tail ***/ 42 | -------------------------------------------------------------------------------- /gnome-flashback/libcommon/gf-common-enum-types.h.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifndef GF_COMMON_ENUM_TYPES_H 3 | #define GF_COMMON_ENUM_TYPES_H 4 | 5 | #include 6 | 7 | G_BEGIN_DECLS 8 | 9 | /*** END file-header ***/ 10 | 11 | /*** BEGIN value-header ***/ 12 | GType @enum_name@_get_type (void) G_GNUC_CONST; 13 | #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) 14 | 15 | /*** END value-header ***/ 16 | 17 | /*** BEGIN file-tail ***/ 18 | G_END_DECLS 19 | 20 | #endif 21 | /*** END file-tail ***/ 22 | -------------------------------------------------------------------------------- /gnome-flashback/libcommon/gf-popup-window.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_POPUP_WINDOW_H 19 | #define GF_POPUP_WINDOW_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_POPUP_WINDOW gf_popup_window_get_type () 26 | G_DECLARE_DERIVABLE_TYPE (GfPopupWindow, gf_popup_window, 27 | GF, POPUP_WINDOW, GtkWindow) 28 | 29 | struct _GfPopupWindowClass 30 | { 31 | GtkWindowClass parent_class; 32 | }; 33 | 34 | void gf_popup_window_fade_start (GfPopupWindow *window); 35 | void gf_popup_window_fade_cancel (GfPopupWindow *window); 36 | 37 | G_END_DECLS 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-background.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_BACKGROUND_H 19 | #define GF_BACKGROUND_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_BACKGROUND (gf_background_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfBackground, gf_background, GF, BACKGROUND, GObject) 27 | 28 | GfBackground *gf_background_new (GtkWidget *window); 29 | 30 | GdkRGBA *gf_background_get_average_color (GfBackground *self); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-create-folder-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_CREATE_FOLDER_DIALOG_H 19 | #define GF_CREATE_FOLDER_DIALOG_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_CREATE_FOLDER_DIALOG (gf_create_folder_dialog_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfCreateFolderDialog, gf_create_folder_dialog, 27 | GF, CREATE_FOLDER_DIALOG, GtkDialog) 28 | 29 | GtkWidget *gf_create_folder_dialog_new (void); 30 | 31 | void gf_create_folder_dialog_set_valid (GfCreateFolderDialog *self, 32 | gboolean valid, 33 | const char *message); 34 | 35 | char *gf_create_folder_dialog_get_folder_name (GfCreateFolderDialog *self); 36 | 37 | G_END_DECLS 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-desktop-enum-types.c.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #include "config.h" 3 | #include "gf-desktop-enum-types.h" 4 | /*** END file-header ***/ 5 | 6 | /*** BEGIN file-production ***/ 7 | #include "@basename@" 8 | /*** END file-production ***/ 9 | 10 | /*** BEGIN value-header ***/ 11 | 12 | GType 13 | @enum_name@_get_type (void) 14 | { 15 | static gsize g_enum_type_id; 16 | static const G@Type@Value values[] = 17 | { 18 | /*** END value-header ***/ 19 | 20 | /*** BEGIN value-production ***/ 21 | { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 22 | /*** END value-production ***/ 23 | 24 | /*** BEGIN value-tail ***/ 25 | { 0, NULL, NULL } 26 | }; 27 | 28 | if (g_once_init_enter (&g_enum_type_id)) 29 | { 30 | const gchar *string; 31 | GType id; 32 | 33 | string = g_intern_static_string ("@EnumName@"); 34 | id = g_@type@_register_static (string, values); 35 | 36 | g_once_init_leave (&g_enum_type_id, id); 37 | } 38 | 39 | return g_enum_type_id; 40 | } 41 | /*** END value-tail ***/ 42 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-desktop-enum-types.h.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifndef GF_DESKTOP_ENUM_TYPES_H 3 | #define GF_DESKTOP_ENUM_TYPES_H 4 | 5 | #include 6 | 7 | G_BEGIN_DECLS 8 | 9 | /*** END file-header ***/ 10 | 11 | /*** BEGIN value-header ***/ 12 | GType @enum_name@_get_type (void) G_GNUC_CONST; 13 | #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) 14 | 15 | /*** END value-header ***/ 16 | 17 | /*** BEGIN file-tail ***/ 18 | G_END_DECLS 19 | 20 | #endif 21 | /*** END file-tail ***/ 22 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-desktop-enums.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_DESKTOP_ENUMS_H 19 | #define GF_DESKTOP_ENUMS_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | typedef enum 26 | { 27 | GF_ICON_SIZE_16PX = 16, 28 | GF_ICON_SIZE_22PX = 22, 29 | GF_ICON_SIZE_24PX = 24, 30 | GF_ICON_SIZE_32PX = 32, 31 | GF_ICON_SIZE_48PX = 48, 32 | GF_ICON_SIZE_64PX = 64, 33 | GF_ICON_SIZE_72PX = 72, 34 | GF_ICON_SIZE_96PX = 96, 35 | GF_ICON_SIZE_128PX = 128 36 | } GfIconSize; 37 | 38 | typedef enum 39 | { 40 | GF_PLACEMENT_AUTO_ARRANGE_ICONS, 41 | GF_PLACEMENT_ALIGN_ICONS_TO_GRID, 42 | GF_PLACEMENT_FREE, 43 | 44 | GF_PLACEMENT_LAST /*< skip >*/ 45 | } GfPlacement; 46 | 47 | typedef enum 48 | { 49 | GF_SORT_BY_NAME, 50 | GF_SORT_BY_DATE_MODIFIED, 51 | GF_SORT_BY_SIZE, 52 | 53 | GF_SORT_BY_LAST /*< skip >*/ 54 | } GfSortBy; 55 | 56 | G_END_DECLS 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-desktop.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_DESKTOP_H 19 | #define GF_DESKTOP_H 20 | 21 | #include "backends/gf-monitor-manager.h" 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_DESKTOP (gf_desktop_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfDesktop, gf_desktop, GF, DESKTOP, GObject) 27 | 28 | GfDesktop *gf_desktop_new (void); 29 | 30 | void gf_desktop_set_monitor_manager (GfDesktop *self, 31 | GfMonitorManager *monitor_manager); 32 | 33 | G_END_DECLS 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-dummy-icon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_DUMMY_ICON_H 19 | #define GF_DUMMY_ICON_H 20 | 21 | #include "gf-icon.h" 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_DUMMY_ICON (gf_dummy_icon_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfDummyIcon, gf_dummy_icon, GF, DUMMY_ICON, GfIcon) 27 | 28 | GtkWidget *gf_dummy_icon_new (GfIconView *icon_view); 29 | 30 | int gf_dummy_icon_get_width (GfDummyIcon *self); 31 | 32 | int gf_dummy_icon_get_height (GfDummyIcon *self); 33 | 34 | G_END_DECLS 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-home-icon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_HOME_ICON_H 19 | #define GF_HOME_ICON_H 20 | 21 | #include "gf-icon.h" 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_HOME_ICON (gf_home_icon_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfHomeIcon, gf_home_icon, GF, HOME_ICON, GfIcon) 27 | 28 | GtkWidget *gf_home_icon_new (GfIconView *icon_view, 29 | GError **error); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-rename-popover.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_RENAME_POPOVER_H 19 | #define GF_RENAME_POPOVER_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_RENAME_POPOVER (gf_rename_popover_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfRenamePopover, gf_rename_popover, 27 | GF, RENAME_POPOVER, GtkPopover) 28 | 29 | GtkWidget *gf_rename_popover_new (GtkWidget *relative_to, 30 | GFileType file_type, 31 | const char *name); 32 | 33 | void gf_rename_popover_set_valid (GfRenamePopover *self, 34 | gboolean valid, 35 | const char *message); 36 | 37 | char *gf_rename_popover_get_name (GfRenamePopover *self); 38 | 39 | G_END_DECLS 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-trash-icon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_TRASH_ICON_H 19 | #define GF_TRASH_ICON_H 20 | 21 | #include "gf-icon.h" 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_TRASH_ICON (gf_trash_icon_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfTrashIcon, gf_trash_icon, GF, TRASH_ICON, GfIcon) 27 | 28 | GtkWidget *gf_trash_icon_new (GfIconView *icon_view, 29 | GError **error); 30 | 31 | gboolean gf_trash_icon_is_empty (GfTrashIcon *self); 32 | 33 | G_END_DECLS 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_UTILS_H 19 | #define GF_UTILS_H 20 | 21 | #include 22 | #include 23 | 24 | G_BEGIN_DECLS 25 | 26 | gboolean gf_launch_app_info (GDesktopAppInfo *app_info, 27 | GError **error); 28 | 29 | gboolean gf_launch_desktop_file (const char *desktop_file, 30 | GError **error); 31 | 32 | gboolean gf_launch_uri (const char *uri, 33 | GError **error); 34 | 35 | double gf_get_nautilus_scale (void); 36 | 37 | G_END_DECLS 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /gnome-flashback/libdesktop/gf-workarea-watcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_WORKAREA_WATCHER_H 19 | #define GF_WORKAREA_WATCHER_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_WORKAREA_WATCHER (gf_workarea_watcher_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfWorkareaWatcher, gf_workarea_watcher, 27 | GF, WORKAREA_WATCHER, GObject) 28 | 29 | GfWorkareaWatcher *gf_workarea_watcher_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libend-session-dialog/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libend-session-dialog.la \ 5 | $(NULL) 6 | 7 | libend_session_dialog_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"end-session-dialog\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(AM_CPPFLAGS) \ 12 | $(NULL) 13 | 14 | libend_session_dialog_la_CFLAGS = \ 15 | $(END_SESSION_DIALOG_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | libend_session_dialog_la_SOURCES = \ 21 | gf-end-session-dialog.c \ 22 | gf-end-session-dialog.h \ 23 | gf-inhibit-dialog.c \ 24 | gf-inhibit-dialog.h \ 25 | $(NULL) 26 | 27 | libend_session_dialog_la_LDFLAGS = \ 28 | $(WARN_LDFLAGS) \ 29 | $(AM_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libend_session_dialog_la_LIBADD = \ 33 | $(top_builddir)/dbus/libdbus.la \ 34 | $(END_SESSION_DIALOG_LIBS) \ 35 | $(NULL) 36 | 37 | EXTRA_DIST = \ 38 | gf-inhibit-dialog.ui \ 39 | $(NULL) 40 | 41 | -include $(top_srcdir)/git.mk 42 | -------------------------------------------------------------------------------- /gnome-flashback/libend-session-dialog/gf-end-session-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 - 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_END_SESSION_DIALOG_H 19 | #define GF_END_SESSION_DIALOG_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_END_SESSION_DIALOG gf_end_session_dialog_get_type () 26 | G_DECLARE_FINAL_TYPE (GfEndSessionDialog, gf_end_session_dialog, 27 | GF, END_SESSION_DIALOG, GObject) 28 | 29 | GfEndSessionDialog *gf_end_session_dialog_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-settings/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libinput-settings.la \ 5 | $(NULL) 6 | 7 | libinput_settings_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"input-settings\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_builddir)/backends \ 11 | -I$(top_builddir)/gnome-flashback/libinput-settings \ 12 | -I$(top_srcdir)/gnome-flashback \ 13 | -I$(top_srcdir) \ 14 | $(NULL) 15 | 16 | libinput_settings_la_CFLAGS = \ 17 | $(INPUT_SETTINGS_CFLAGS) \ 18 | $(WARN_CFLAGS) \ 19 | $(AM_CFLAGS) \ 20 | $(NULL) 21 | 22 | libinput_settings_la_SOURCES = \ 23 | gf-input-settings.c \ 24 | gf-input-settings.h \ 25 | $(NULL) 26 | 27 | libinput_settings_la_LDFLAGS = \ 28 | $(WARN_LDFLAGS) \ 29 | $(AM_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libinput_settings_la_LIBADD = \ 33 | $(INPUT_SETTINGS_LIBS) \ 34 | $(LIBM) \ 35 | $(NULL) 36 | 37 | -include $(top_srcdir)/git.mk 38 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-settings/gf-input-settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SETTINGS_H 19 | #define GF_INPUT_SETTINGS_H 20 | 21 | #include 22 | #include "backends/gf-monitor-manager.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define GF_TYPE_INPUT_SETTINGS gf_input_settings_get_type () 27 | G_DECLARE_FINAL_TYPE (GfInputSettings, gf_input_settings, 28 | GF, INPUT_SETTINGS, GObject) 29 | 30 | GfInputSettings *gf_input_settings_new (void); 31 | 32 | void gf_input_settings_set_monitor_manager (GfInputSettings *settings, 33 | GfMonitorManager *monitor_manager); 34 | 35 | G_END_DECLS 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libinput-sources.la \ 5 | $(NULL) 6 | 7 | libinput_sources_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"input-sources\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -DGNOME_DESKTOP_USE_UNSTABLE_API \ 11 | -I$(top_builddir)/gnome-flashback/libinput-sources \ 12 | -I$(top_srcdir) \ 13 | -I$(top_srcdir)/gnome-flashback \ 14 | $(NULL) 15 | 16 | libinput_sources_la_CFLAGS = \ 17 | $(INPUT_SOURCES_CFLAGS) \ 18 | $(WARN_CFLAGS) \ 19 | $(AM_CFLAGS) \ 20 | $(NULL) 21 | 22 | libinput_sources_la_SOURCES = \ 23 | gf-candidate-box.c \ 24 | gf-candidate-box.h \ 25 | gf-candidate-area.c \ 26 | gf-candidate-area.h \ 27 | gf-candidate-popup.c \ 28 | gf-candidate-popup.h \ 29 | gf-ibus-manager.c \ 30 | gf-ibus-manager.h \ 31 | gf-input-source-ibus.c \ 32 | gf-input-source-ibus.h \ 33 | gf-input-source-xkb.c \ 34 | gf-input-source-xkb.h \ 35 | gf-input-source.c \ 36 | gf-input-source.h \ 37 | gf-input-sources-button.c \ 38 | gf-input-sources-button.h \ 39 | gf-input-sources.c \ 40 | gf-input-sources.h \ 41 | gf-input-source-manager.c \ 42 | gf-input-source-manager.h \ 43 | gf-input-source-popup.c \ 44 | gf-input-source-popup.h \ 45 | gf-input-source-settings.c \ 46 | gf-input-source-settings.h \ 47 | gf-keyboard-manager.c \ 48 | gf-keyboard-manager.h \ 49 | $(NULL) 50 | 51 | libinput_sources_la_LDFLAGS = \ 52 | $(WARN_LDFLAGS) \ 53 | $(AM_LDFLAGS) \ 54 | $(NULL) 55 | 56 | libinput_sources_la_LIBADD = \ 57 | $(top_builddir)/dbus/libdbus.la \ 58 | $(top_builddir)/gnome-flashback/libcommon/libcommon.la \ 59 | $(INPUT_SOURCES_LIBS) \ 60 | $(LIBM) \ 61 | $(NULL) 62 | 63 | -include $(top_srcdir)/git.mk 64 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-candidate-box.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Sebastian Geiger 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_CANDIDATE_BOX_H 19 | #define GF_CANDIDATE_BOX_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_CANDIDATE_BOX gf_candidate_box_get_type () 26 | G_DECLARE_FINAL_TYPE (GfCandidateBox, gf_candidate_box, 27 | GF, CANDIDATE_BOX, GtkEventBox) 28 | 29 | GtkWidget *gf_candidate_box_new (guint index); 30 | 31 | void gf_candidate_box_set_labels (GfCandidateBox *box, 32 | const gchar *index_label, 33 | const gchar *candidate_label); 34 | 35 | guint gf_candidate_box_get_index (GfCandidateBox *box); 36 | 37 | void gf_candidate_box_set_selected (GfCandidateBox *box, 38 | gboolean selected); 39 | 40 | G_END_DECLS 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-candidate-popup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_CANDIDATE_POPUP_H 19 | #define GF_CANDIDATE_POPUP_H 20 | 21 | #include 22 | #include 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define GF_TYPE_CANDIDATE_POPUP gf_candidate_popup_get_type () 27 | G_DECLARE_FINAL_TYPE (GfCandidatePopup, gf_candidate_popup, 28 | GF, CANDIDATE_POPUP, GfPopupWindow) 29 | 30 | GfCandidatePopup *gf_candidate_popup_new (void); 31 | 32 | void gf_candidate_popup_set_panel_service (GfCandidatePopup *popup, 33 | IBusPanelService *service); 34 | 35 | G_END_DECLS 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-input-source-ibus.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SOURCE_IBUS_H 19 | #define GF_INPUT_SOURCE_IBUS_H 20 | 21 | #include 22 | 23 | #include "gf-ibus-manager.h" 24 | #include "gf-input-source.h" 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define GF_TYPE_INPUT_SOURCE_IBUS (gf_input_source_ibus_get_type ()) 29 | G_DECLARE_FINAL_TYPE (GfInputSourceIBus, gf_input_source_ibus, 30 | GF, INPUT_SOURCE_IBUS, GfInputSource) 31 | 32 | GfInputSource *gf_input_source_ibus_new (GfIBusManager *ibus_manager, 33 | const char *id, 34 | int index); 35 | 36 | const char *gf_input_source_ibus_get_icon (GfInputSourceIBus *self); 37 | 38 | IBusPropList *gf_input_source_ibus_get_properties (GfInputSourceIBus *self); 39 | 40 | void gf_input_source_ibus_set_properties (GfInputSourceIBus *self, 41 | IBusPropList *prop_list); 42 | 43 | G_END_DECLS 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-input-source-manager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Sebastian Geiger 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SOURCE_MANAGER_H 19 | #define GF_INPUT_SOURCE_MANAGER_H 20 | 21 | #include 22 | #include "gf-ibus-manager.h" 23 | #include "gf-input-source.h" 24 | 25 | #define GF_TYPE_INPUT_SOURCE_MANAGER gf_input_source_manager_get_type () 26 | G_DECLARE_FINAL_TYPE (GfInputSourceManager, gf_input_source_manager, 27 | GF, INPUT_SOURCE_MANAGER, GObject) 28 | 29 | GfInputSourceManager *gf_input_source_manager_new (GfIBusManager *manager); 30 | 31 | void gf_input_source_manager_reload (GfInputSourceManager *manager); 32 | 33 | GfInputSource *gf_input_source_manager_get_current_source (GfInputSourceManager *manager); 34 | 35 | GList *gf_input_source_manager_get_input_sources (GfInputSourceManager *manager); 36 | 37 | void gf_input_source_manager_activate_next_source (GfInputSourceManager *manager); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-input-source-popup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SOURCE_POPUP_H 19 | #define GF_INPUT_SOURCE_POPUP_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_INPUT_SOURCE_POPUP gf_input_source_popup_get_type () 26 | G_DECLARE_FINAL_TYPE (GfInputSourcePopup, gf_input_source_popup, 27 | GF, INPUT_SOURCE_POPUP, GfPopupWindow) 28 | 29 | GtkWidget *gf_input_source_popup_new (GList *mru_sources, 30 | gboolean backward, 31 | guint keyval, 32 | guint modifiers); 33 | 34 | G_END_DECLS 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-input-source-xkb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SOURCE_XKB_H 19 | #define GF_INPUT_SOURCE_XKB_H 20 | 21 | #include 22 | 23 | #include "gf-input-source.h" 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define GF_TYPE_INPUT_SOURCE_XKB (gf_input_source_xkb_get_type ()) 28 | G_DECLARE_FINAL_TYPE (GfInputSourceXkb, gf_input_source_xkb, 29 | GF, INPUT_SOURCE_XKB, GfInputSource) 30 | 31 | GfInputSource *gf_input_source_xkb_new (GnomeXkbInfo *xkb_info, 32 | const char *id, 33 | int index); 34 | 35 | G_END_DECLS 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-input-sources-button.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SOURCES_BUTTON_H 19 | #define GF_INPUT_SOURCES_BUTTON_H 20 | 21 | #include 22 | #include "gf-input-source-manager.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define GF_TYPE_INPUT_SOURCES_BUTTON (gf_input_sources_button_get_type ()) 27 | G_DECLARE_FINAL_TYPE (GfInputSourcesButton, gf_input_sources_button, 28 | GF, INPUT_SOURCES_BUTTON, GtkButton) 29 | 30 | GtkWidget *gf_input_sources_button_new (GfInputSourceManager *manager); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /gnome-flashback/libinput-sources/gf-input-sources.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015-2020 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INPUT_SOURCES_H 19 | #define GF_INPUT_SOURCES_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_INPUT_SOURCES (gf_input_sources_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfInputSources, gf_input_sources, 27 | GF, INPUT_SOURCES, GObject) 28 | 29 | GfInputSources *gf_input_sources_new (void); 30 | 31 | GtkWidget *gf_input_sources_create_button (GfInputSources *self); 32 | 33 | G_END_DECLS 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /gnome-flashback/libnotifications/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libnotifications.la \ 5 | $(NULL) 6 | 7 | libnotifications_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"notifications\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir)/gnome-flashback \ 11 | -I$(top_srcdir) \ 12 | $(AM_CPPFLAGS) \ 13 | $(NULL) 14 | 15 | libnotifications_la_CFLAGS = \ 16 | $(NOTIFICATIONS_CFLAGS) \ 17 | $(WARN_CFLAGS) \ 18 | $(AM_CFLAGS) \ 19 | $(NULL) 20 | 21 | libnotifications_la_SOURCES = \ 22 | gf-bubble.c \ 23 | gf-bubble.h \ 24 | gf-notifications.c \ 25 | gf-notifications.h \ 26 | nd-daemon.c \ 27 | nd-daemon.h \ 28 | nd-notification.c \ 29 | nd-notification.h \ 30 | nd-notification-box.c \ 31 | nd-notification-box.h \ 32 | nd-queue.c \ 33 | nd-queue.h \ 34 | nd-stack.c \ 35 | nd-stack.h \ 36 | $(NULL) 37 | 38 | libnotifications_la_LDFLAGS = \ 39 | $(WARN_LDFLAGS) \ 40 | $(AM_LDFLAGS) \ 41 | $(NULL) 42 | 43 | libnotifications_la_LIBADD = \ 44 | $(top_builddir)/dbus/libdbus.la \ 45 | $(top_builddir)/gnome-flashback/libcommon/libcommon.la \ 46 | $(NOTIFICATIONS_LIBS) \ 47 | $(NULL) 48 | 49 | -include $(top_srcdir)/git.mk 50 | -------------------------------------------------------------------------------- /gnome-flashback/libnotifications/gf-bubble.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Red Hat, Inc. 3 | * Copyright (C) 2016 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | #ifndef GF_BUBBLE_H 20 | #define GF_BUBBLE_H 21 | 22 | #include 23 | #include 24 | 25 | #include "nd-notification.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define GF_TYPE_BUBBLE gf_bubble_get_type () 30 | G_DECLARE_DERIVABLE_TYPE (GfBubble, gf_bubble, GF, BUBBLE, GfPopupWindow) 31 | 32 | struct _GfBubbleClass 33 | { 34 | GfPopupWindowClass parent_class; 35 | 36 | void (* changed) (GfBubble *bubble); 37 | }; 38 | 39 | GfBubble *gf_bubble_new_for_notification (NdNotification *notification); 40 | 41 | NdNotification *gf_bubble_get_notification (GfBubble *bubble); 42 | 43 | G_END_DECLS 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /gnome-flashback/libnotifications/gf-notifications.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_NOTIFICATIONS_H 19 | #define GF_NOTIFICATIONS_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_NOTIFICATIONS gf_notifications_get_type () 26 | G_DECLARE_FINAL_TYPE (GfNotifications, gf_notifications, 27 | GF, NOTIFICATIONS, GObject) 28 | 29 | GfNotifications *gf_notifications_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libnotifications/nd-daemon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef ND_DAEMON_H 19 | #define ND_DAEMON_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define ND_TYPE_DAEMON nd_daemon_get_type () 26 | G_DECLARE_FINAL_TYPE (NdDaemon, nd_daemon, ND, DAEMON, GObject) 27 | 28 | NdDaemon *nd_daemon_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /gnome-flashback/libroot-background/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libroot-background.la \ 5 | $(NULL) 6 | 7 | libroot_background_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"root-background\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -DGNOME_DESKTOP_USE_UNSTABLE_API \ 11 | -I$(top_builddir)/gnome-flashback/libcommon \ 12 | -I$(top_builddir)/gnome-flashback/libroot-background \ 13 | -I$(top_srcdir)/gnome-flashback \ 14 | $(NULL) 15 | 16 | libroot_background_la_CFLAGS = \ 17 | $(ROOT_BACKGROUND_CFLAGS) \ 18 | $(WARN_CFLAGS) \ 19 | $(AM_CFLAGS) \ 20 | $(NULL) 21 | 22 | libroot_background_la_SOURCES = \ 23 | gf-root-background.c \ 24 | gf-root-background.h \ 25 | $(NULL) 26 | 27 | libroot_background_la_LDFLAGS = \ 28 | $(WARN_LDFLAGS) \ 29 | $(AM_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libroot_background_la_LIBADD = \ 33 | $(top_builddir)/gnome-flashback/libcommon/libcommon.la \ 34 | $(DROOT_BACKGROUND_LIBS) \ 35 | $(NULL) 36 | 37 | -include $(top_srcdir)/git.mk 38 | -------------------------------------------------------------------------------- /gnome-flashback/libroot-background/gf-root-background.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_ROOT_BACKGROUND_H 19 | #define GF_ROOT_BACKGROUND_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_ROOT_BACKGROUND (gf_root_background_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfRootBackground, gf_root_background, 27 | GF, ROOT_BACKGROUND, GObject) 28 | 29 | GfRootBackground *gf_root_background_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libscreencast/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libscreencast.la \ 5 | $(NULL) 6 | 7 | libscreencast_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"screencast\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(AM_CPPFLAGS) \ 12 | $(NULL) 13 | 14 | libscreencast_la_CFLAGS = \ 15 | $(SCREENCAST_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | libscreencast_la_SOURCES = \ 21 | gf-screencast.c \ 22 | gf-screencast.h \ 23 | $(NULL) 24 | 25 | libscreencast_la_LDFLAGS = \ 26 | $(WARN_LDFLAGS) \ 27 | $(AM_LDFLAGS) \ 28 | $(NULL) 29 | 30 | libscreencast_la_LIBADD = \ 31 | $(top_builddir)/dbus/libdbus.la \ 32 | $(SCREENCAST_LIBS) \ 33 | $(NULL) 34 | 35 | -include $(top_srcdir)/git.mk 36 | -------------------------------------------------------------------------------- /gnome-flashback/libscreencast/gf-screencast.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SCREENCAST_H 19 | #define GF_SCREENCAST_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_SCREENCAST gf_screencast_get_type () 26 | G_DECLARE_FINAL_TYPE (GfScreencast, gf_screencast, GF, SCREENCAST, GObject) 27 | 28 | GfScreencast *gf_screencast_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-fade.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2004-2005 William Jon McCann 3 | * Copyright (C) 2020 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * William Jon McCann 21 | */ 22 | 23 | #ifndef GF_FADE_H 24 | #define GF_FADE_H 25 | 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define GF_TYPE_FADE (gf_fade_get_type ()) 32 | G_DECLARE_FINAL_TYPE (GfFade, gf_fade, GF, FADE, GObject) 33 | 34 | GfFade *gf_fade_new (void); 35 | 36 | void gf_fade_async (GfFade *self, 37 | guint timeout, 38 | GCancellable *cancellable, 39 | GAsyncReadyCallback callback, 40 | gpointer user_data); 41 | 42 | gboolean gf_fade_finish (GfFade *self, 43 | GAsyncResult *result, 44 | GError **error); 45 | 46 | void gf_fade_reset (GfFade *self); 47 | 48 | G_END_DECLS 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-grab.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2004-2006 William Jon McCann 3 | * Copyright (C) 2019 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * William Jon McCann 21 | */ 22 | 23 | #ifndef GF_GRAB_H 24 | #define GF_GRAB_H 25 | 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define GF_TYPE_GRAB (gf_grab_get_type ()) 32 | G_DECLARE_FINAL_TYPE (GfGrab, gf_grab, GF, GRAB, GObject) 33 | 34 | GfGrab *gf_grab_new (void); 35 | 36 | gboolean gf_grab_grab_root (GfGrab *self); 37 | 38 | gboolean gf_grab_grab_offscreen (GfGrab *self); 39 | 40 | void gf_grab_move_to_window (GfGrab *self, 41 | GdkWindow *window); 42 | 43 | void gf_grab_release (GfGrab *self); 44 | 45 | G_END_DECLS 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-info-bar.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_INFO_BAR_H 19 | #define GF_INFO_BAR_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_INFO_BAR (gf_info_bar_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfInfoBar, gf_info_bar, GF, INFO_BAR, GtkInfoBar) 27 | 28 | GtkWidget *gf_info_bar_new (void); 29 | 30 | void gf_info_bar_show_message (GfInfoBar *self, 31 | const char *summary, 32 | const char *body, 33 | const char *icon); 34 | 35 | G_END_DECLS 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-listener.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2004-2006 William Jon McCann 3 | * Copyright (C) 2019 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * William Jon McCann 21 | */ 22 | 23 | #ifndef GF_LISTENER_H 24 | #define GF_LISTENER_H 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define GF_TYPE_LISTENER gf_listener_get_type () 31 | G_DECLARE_FINAL_TYPE (GfListener, gf_listener, GF, LISTENER, GObject) 32 | 33 | GfListener *gf_listener_new (void); 34 | 35 | gboolean gf_listener_set_active (GfListener *listener, 36 | gboolean active); 37 | 38 | gboolean gf_listener_get_active (GfListener *listener); 39 | 40 | gboolean gf_listener_set_session_idle (GfListener *listener, 41 | gboolean session_idle); 42 | 43 | G_END_DECLS 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-panel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_PANEL_H 19 | #define GF_PANEL_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_PANEL (gf_panel_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfPanel, gf_panel, GF, PANEL, GtkBox) 27 | 28 | GtkWidget *gf_panel_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-prefs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2004-2006 William Jon McCann 3 | * Copyright (C) 2019 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * William Jon McCann 21 | */ 22 | 23 | #ifndef GF_PREFS_H 24 | #define GF_PREFS_H 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define GF_TYPE_PREFS (gf_prefs_get_type ()) 31 | G_DECLARE_FINAL_TYPE (GfPrefs, gf_prefs, GF, PREFS, GObject) 32 | 33 | GfPrefs *gf_prefs_new (void); 34 | 35 | gboolean gf_prefs_get_lock_disabled (GfPrefs *self); 36 | 37 | gboolean gf_prefs_get_user_switch_disabled (GfPrefs *self); 38 | 39 | gboolean gf_prefs_get_lock_enabled (GfPrefs *self); 40 | 41 | guint gf_prefs_get_lock_delay (GfPrefs *self); 42 | 43 | gboolean gf_prefs_get_user_switch_enabled (GfPrefs *self); 44 | 45 | G_END_DECLS 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-screensaver-enum-types.c.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #include "config.h" 3 | #include "gf-screensaver-enum-types.h" 4 | /*** END file-header ***/ 5 | 6 | /*** BEGIN file-production ***/ 7 | #include "@basename@" 8 | /*** END file-production ***/ 9 | 10 | /*** BEGIN value-header ***/ 11 | 12 | GType 13 | @enum_name@_get_type (void) 14 | { 15 | static gsize g_enum_type_id; 16 | static const G@Type@Value values[] = 17 | { 18 | /*** END value-header ***/ 19 | 20 | /*** BEGIN value-production ***/ 21 | { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 22 | /*** END value-production ***/ 23 | 24 | /*** BEGIN value-tail ***/ 25 | { 0, NULL, NULL } 26 | }; 27 | 28 | if (g_once_init_enter (&g_enum_type_id)) 29 | { 30 | const gchar *string; 31 | GType id; 32 | 33 | string = g_intern_static_string ("@EnumName@"); 34 | id = g_@type@_register_static (string, values); 35 | 36 | g_once_init_leave (&g_enum_type_id, id); 37 | } 38 | 39 | return g_enum_type_id; 40 | } 41 | /*** END value-tail ***/ 42 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-screensaver-enum-types.h.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifndef GF_SCREENSAVER_ENUM_TYPES_H 3 | #define GF_SCREENSAVER_ENUM_TYPES_H 4 | 5 | #include 6 | 7 | G_BEGIN_DECLS 8 | 9 | /*** END file-header ***/ 10 | 11 | /*** BEGIN value-header ***/ 12 | GType @enum_name@_get_type (void) G_GNUC_CONST; 13 | #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) 14 | 15 | /*** END value-header ***/ 16 | 17 | /*** BEGIN file-tail ***/ 18 | G_END_DECLS 19 | 20 | #endif 21 | /*** END file-tail ***/ 22 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-screensaver-utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SCREENSAVER_UTILS_H 19 | #define GF_SCREENSAVER_UTILS_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | gboolean gf_find_systemd_session (char **session_id); 26 | 27 | G_END_DECLS 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-screensaver.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016-2020 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SCREENSAVER_H 19 | #define GF_SCREENSAVER_H 20 | 21 | #include "backends/gf-monitor-manager.h" 22 | #include "libinput-sources/gf-input-sources.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define GF_TYPE_SCREENSAVER gf_screensaver_get_type () 27 | G_DECLARE_FINAL_TYPE (GfScreensaver, gf_screensaver, GF, SCREENSAVER, GObject) 28 | 29 | GfScreensaver *gf_screensaver_new (void); 30 | 31 | void gf_screensaver_set_monitor_manager (GfScreensaver *self, 32 | GfMonitorManager *monitor_manager); 33 | 34 | void gf_screensaver_set_input_sources (GfScreensaver *self, 35 | GfInputSources *input_sources); 36 | 37 | G_END_DECLS 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-user-image.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_USER_IMAGE_H 19 | #define GF_USER_IMAGE_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_USER_IMAGE (gf_user_image_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfUserImage, gf_user_image, GF, USER_IMAGE, GtkImage) 27 | 28 | GtkWidget *gf_user_image_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /gnome-flashback/libscreensaver/gf-watcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2004-2005 William Jon McCann 3 | * Copyright (C) 2019 Alberts Muktupāvels 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Authors: 19 | * Alberts Muktupāvels 20 | * William Jon McCann 21 | */ 22 | 23 | #ifndef GF_WATCHER_H 24 | #define GF_WATCHER_H 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define GF_TYPE_WATCHER gf_watcher_get_type () 31 | G_DECLARE_FINAL_TYPE (GfWatcher, gf_watcher, GF, WATCHER, GObject) 32 | 33 | GfWatcher *gf_watcher_new (void); 34 | 35 | gboolean gf_watcher_set_active (GfWatcher *watcher, 36 | gboolean active); 37 | 38 | gboolean gf_watcher_get_active (GfWatcher *watcher); 39 | 40 | G_END_DECLS 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /gnome-flashback/libscreenshot/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libscreenshot.la \ 5 | $(NULL) 6 | 7 | libscreenshot_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"screenshot\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(AM_CPPFLAGS) \ 12 | $(NULL) 13 | 14 | libscreenshot_la_CFLAGS = \ 15 | $(SCREENSHOT_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | libscreenshot_la_SOURCES = \ 21 | gf-flashspot.c \ 22 | gf-flashspot.h \ 23 | gf-screenshot.c \ 24 | gf-screenshot.h \ 25 | gf-select-area.c \ 26 | gf-select-area.h \ 27 | $(NULL) 28 | 29 | libscreenshot_la_LDFLAGS = \ 30 | $(WARN_LDFLAGS) \ 31 | $(AM_LDFLAGS) \ 32 | $(NULL) 33 | 34 | libscreenshot_la_LIBADD = \ 35 | $(top_builddir)/dbus/libdbus.la \ 36 | $(SCREENSHOT_LIBS) \ 37 | $(NULL) 38 | 39 | -include $(top_srcdir)/git.mk 40 | -------------------------------------------------------------------------------- /gnome-flashback/libscreenshot/gf-flashspot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_FLASHSPOT_H 19 | #define GF_FLASHSPOT_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_FLASHSPOT gf_flashspot_get_type () 26 | G_DECLARE_FINAL_TYPE (GfFlashspot, gf_flashspot, GF, FLASHSPOT, GObject) 27 | 28 | GfFlashspot *gf_flashspot_new (void); 29 | 30 | void gf_flashspot_fire (GfFlashspot *flashspot, 31 | gint x, 32 | gint y, 33 | gint width, 34 | gint height); 35 | 36 | G_END_DECLS 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /gnome-flashback/libscreenshot/gf-screenshot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SCREENSHOT_H 19 | #define GF_SCREENSHOT_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_SCREENSHOT gf_screenshot_get_type () 26 | G_DECLARE_FINAL_TYPE (GfScreenshot, gf_screenshot, GF, SCREENSHOT, GObject) 27 | 28 | GfScreenshot *gf_screenshot_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /gnome-flashback/libscreenshot/gf-select-area.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SELECT_AREA_H 19 | #define GF_SELECT_AREA_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_SELECT_AREA gf_select_area_get_type () 26 | G_DECLARE_FINAL_TYPE (GfSelectArea, gf_select_area, GF, SELECT_AREA, GObject) 27 | 28 | GfSelectArea *gf_select_area_new (void); 29 | 30 | gboolean gf_select_area_select (GfSelectArea *select_area, 31 | gint *x, 32 | gint *y, 33 | gint *width, 34 | gint *height); 35 | 36 | G_END_DECLS 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /gnome-flashback/libshell/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libshell.la \ 5 | $(NULL) 6 | 7 | libshell_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"shell\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_builddir)/gnome-flashback/libcommon \ 11 | -I$(top_builddir)/gnome-flashback/libshell \ 12 | -I$(top_srcdir)/gnome-flashback \ 13 | -I$(top_srcdir) \ 14 | $(AM_CPPFLAGS) \ 15 | $(NULL) 16 | 17 | libshell_la_CFLAGS = \ 18 | $(SHELL_CFLAGS) \ 19 | $(WARN_CFLAGS) \ 20 | $(AM_CFLAGS) \ 21 | $(NULL) 22 | 23 | libshell_la_SOURCES = \ 24 | flashback-monitor-labeler.c \ 25 | flashback-monitor-labeler.h \ 26 | flashback-osd.c \ 27 | flashback-osd.h \ 28 | flashback-shell.c \ 29 | flashback-shell.h \ 30 | gf-label-window.c \ 31 | gf-label-window.h \ 32 | gf-osd-window.c \ 33 | gf-osd-window.h \ 34 | gf-shell-introspect.c \ 35 | gf-shell-introspect.h \ 36 | $(NULL) 37 | 38 | libshell_la_LDFLAGS = \ 39 | $(WARN_LDFLAGS) \ 40 | $(AM_LDFLAGS) \ 41 | $(NULL) 42 | 43 | libshell_la_LIBADD = \ 44 | $(top_builddir)/dbus/libdbus.la \ 45 | $(top_builddir)/gnome-flashback/libcommon/libcommon.la \ 46 | $(SHELL_LIBS) \ 47 | $(NULL) 48 | 49 | -include $(top_srcdir)/git.mk 50 | -------------------------------------------------------------------------------- /gnome-flashback/libshell/flashback-osd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015-2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef FLASHBACK_OSD_H 19 | #define FLASHBACK_OSD_H 20 | 21 | #include "flashback-shell.h" 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define FLASHBACK_TYPE_OSD flashback_osd_get_type () 26 | G_DECLARE_FINAL_TYPE (FlashbackOsd, flashback_osd, FLASHBACK, OSD, GObject) 27 | 28 | FlashbackOsd *flashback_osd_new (void); 29 | 30 | void flashback_osd_show (FlashbackOsd *osd, 31 | GfMonitorManager *monitor_manager, 32 | GVariant *params); 33 | 34 | G_END_DECLS 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /gnome-flashback/libshell/flashback-shell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef FLASHBACK_SHELL_H 19 | #define FLASHBACK_SHELL_H 20 | 21 | #include 22 | #include "backends/gf-monitor-manager.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define FLASHBACK_TYPE_SHELL flashback_shell_get_type () 27 | G_DECLARE_FINAL_TYPE (FlashbackShell, flashback_shell, FLASHBACK, SHELL, GObject) 28 | 29 | FlashbackShell *flashback_shell_new (void); 30 | 31 | void flashback_shell_set_monitor_manager (FlashbackShell *shell, 32 | GfMonitorManager *monitor_manager); 33 | 34 | G_END_DECLS 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /gnome-flashback/libshell/gf-label-window.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_LABEL_WINDOW_H 19 | #define GF_LABEL_WINDOW_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_LABEL_WINDOW gf_label_window_get_type () 26 | G_DECLARE_FINAL_TYPE (GfLabelWindow, gf_label_window, 27 | GF, LABEL_WINDOW, GfPopupWindow) 28 | 29 | GfLabelWindow *gf_label_window_new (gint monitor, 30 | const gchar *label); 31 | 32 | void gf_label_window_show (GfLabelWindow *window); 33 | void gf_label_window_hide (GfLabelWindow *window); 34 | 35 | G_END_DECLS 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /gnome-flashback/libshell/gf-shell-introspect.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SHELL_INTROSPECT_H 19 | #define GF_SHELL_INTROSPECT_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_SHELL_INTROSPECT (gf_shell_introspect_get_type ()) 26 | G_DECLARE_FINAL_TYPE (GfShellIntrospect, gf_shell_introspect, 27 | GF, SHELL_INTROSPECT, GObject) 28 | 29 | GfShellIntrospect *gf_shell_introspect_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libstatus-notifier-watcher/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_LTLIBRARIES = \ 4 | libstatus-notifier-watcher.la \ 5 | $(NULL) 6 | 7 | libstatus_notifier_watcher_la_CPPFLAGS = \ 8 | -DG_LOG_DOMAIN=\"status-notifier-watcher\" \ 9 | -DG_LOG_USE_STRUCTURED=1 \ 10 | -I$(top_srcdir) \ 11 | $(AM_CPPFLAGS) \ 12 | $(NULL) 13 | 14 | libstatus_notifier_watcher_la_CFLAGS = \ 15 | $(STATUS_NOTIFIER_WATCHER_CFLAGS) \ 16 | $(WARN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(NULL) 19 | 20 | libstatus_notifier_watcher_la_SOURCES = \ 21 | gf-sn-watcher-v0.c \ 22 | gf-sn-watcher-v0.h \ 23 | gf-status-notifier-watcher.c \ 24 | gf-status-notifier-watcher.h \ 25 | $(NULL) 26 | 27 | libstatus_notifier_watcher_la_LDFLAGS = \ 28 | $(WARN_LDFLAGS) \ 29 | $(AM_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libstatus_notifier_watcher_la_LIBADD = \ 33 | $(top_builddir)/dbus/libdbus.la \ 34 | $(STATUS_NOTIFIER_WATCHER_LIBS) \ 35 | $(NULL) 36 | 37 | -include $(top_srcdir)/git.mk 38 | -------------------------------------------------------------------------------- /gnome-flashback/libstatus-notifier-watcher/gf-sn-watcher-v0.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_SN_WATCHER_V0_H 19 | #define GF_SN_WATCHER_V0_H 20 | 21 | #include "dbus/gf-sn-watcher-v0-gen.h" 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_SN_WATCHER_V0 gf_sn_watcher_v0_get_type () 26 | G_DECLARE_FINAL_TYPE (GfSnWatcherV0, gf_sn_watcher_v0, 27 | GF, SN_WATCHER_V0, GfSnWatcherV0GenSkeleton) 28 | 29 | GfSnWatcherV0 *gf_sn_watcher_v0_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gnome-flashback/libstatus-notifier-watcher/gf-status-notifier-watcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef GF_STATUS_NOTIFIER_WATCHER_H 19 | #define GF_STATUS_NOTIFIER_WATCHER_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define GF_TYPE_STATUS_NOTIFIER_WATCHER gf_status_notifier_watcher_get_type () 26 | G_DECLARE_FINAL_TYPE (GfStatusNotifierWatcher, gf_status_notifier_watcher, 27 | GF, STATUS_NOTIFIER_WATCHER, GObject) 28 | 29 | GfStatusNotifierWatcher *gf_status_notifier_watcher_new (void); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /gvc/gvc-enum-types.c.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #include "config.h" 3 | #include "gvc-enum-types.h" 4 | /*** END file-header ***/ 5 | 6 | /*** BEGIN file-production ***/ 7 | #include "@basename@" 8 | /*** END file-production ***/ 9 | 10 | /*** BEGIN value-header ***/ 11 | 12 | GType 13 | @enum_name@_get_type (void) 14 | { 15 | static gsize g_enum_type_id; 16 | static const G@Type@Value values[] = 17 | { 18 | /*** END value-header ***/ 19 | 20 | /*** BEGIN value-production ***/ 21 | { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 22 | /*** END value-production ***/ 23 | 24 | /*** BEGIN value-tail ***/ 25 | { 0, NULL, NULL } 26 | }; 27 | 28 | if (g_once_init_enter (&g_enum_type_id)) 29 | { 30 | const gchar *string; 31 | GType id; 32 | 33 | string = g_intern_static_string ("@EnumName@"); 34 | id = g_@type@_register_static (string, values); 35 | 36 | g_once_init_leave (&g_enum_type_id, id); 37 | } 38 | 39 | return g_enum_type_id; 40 | } 41 | /*** END value-tail ***/ 42 | -------------------------------------------------------------------------------- /gvc/gvc-enum-types.h.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifndef GVC_ENUM_TYPES_H 3 | #define GVC_ENUM_TYPES_H 4 | 5 | #include 6 | 7 | G_BEGIN_DECLS 8 | 9 | /*** END file-header ***/ 10 | 11 | /*** BEGIN value-header ***/ 12 | GType @enum_name@_get_type (void) G_GNUC_CONST; 13 | #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) 14 | 15 | /*** END value-header ***/ 16 | 17 | /*** BEGIN file-tail ***/ 18 | G_END_DECLS 19 | 20 | #endif 21 | /*** END file-tail ***/ 22 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | # please keep this list sorted alphabetically 2 | bs 3 | ca 4 | cs 5 | da 6 | de 7 | el 8 | es 9 | eu 10 | fa 11 | fi 12 | fur 13 | he 14 | hr 15 | hu 16 | id 17 | it 18 | ka 19 | lv 20 | nb 21 | nl 22 | oc 23 | pl 24 | pt 25 | pt_BR 26 | ro 27 | ru 28 | sk 29 | sl 30 | sr 31 | sr@latin 32 | sv 33 | tr 34 | uk 35 | zh_CN 36 | zh_HK 37 | zh_TW 38 | -------------------------------------------------------------------------------- /po/POTFILES.skip: -------------------------------------------------------------------------------- 1 | # List of source files that should *not* be translated. 2 | # Please keep this file sorted alphabetically. 3 | -------------------------------------------------------------------------------- /system-indicators/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | system_indicators_libdir = $(GNOME_PANEL_MODULES_DIR) 4 | system_indicators_lib_LTLIBRARIES = system_indicators.la 5 | 6 | system_indicators_la_CPPFLAGS = \ 7 | -DG_LOG_DOMAIN=\"system-indicators\" \ 8 | -DG_LOG_USE_STRUCTURED=1 \ 9 | -DLOCALE_DIR=\"$(localedir)\" \ 10 | -I$(top_srcdir)/gvc/gvc \ 11 | -I$(top_srcdir) \ 12 | $(AM_CPPFLAGS) \ 13 | $(NULL) 14 | 15 | system_indicators_la_CFLAGS = \ 16 | $(SYSTEM_INDICATORS_CFLAGS) \ 17 | $(WARN_CFLAGS) \ 18 | $(AM_CFLAGS) \ 19 | $(NULL) 20 | 21 | system_indicators_la_SOURCES = \ 22 | si-applet.c \ 23 | si-applet.h \ 24 | si-desktop-menu-item.c \ 25 | si-desktop-menu-item.h \ 26 | si-indicator.c \ 27 | si-indicator.h \ 28 | si-input-sources.c \ 29 | si-input-sources.h \ 30 | si-menu-bar.c \ 31 | si-menu-bar.h \ 32 | si-module.c \ 33 | si-power.c \ 34 | si-power.h \ 35 | si-volume.c \ 36 | si-volume.h \ 37 | $(NULL) 38 | 39 | system_indicators_la_LIBADD = \ 40 | $(top_builddir)/dbus/libdbus.la \ 41 | $(top_builddir)/gvc/libgvc.la \ 42 | $(SYSTEM_INDICATORS_LIBS) \ 43 | $(LIBM) \ 44 | $(NULL) 45 | 46 | system_indicators_la_LDFLAGS = \ 47 | -module -avoid-version \ 48 | $(WARN_LDFLAGS) \ 49 | $(AM_LDFLAGS) \ 50 | $(NULL) 51 | 52 | if HAVE_GNOME_BLUETOOTH 53 | system_indicators_la_SOURCES += \ 54 | si-bluetooth.c \ 55 | si-bluetooth.h \ 56 | $(NULL) 57 | 58 | system_indicators_la_CFLAGS += \ 59 | -Wno-error=missing-include-dirs \ 60 | $(GNOME_BLUETOOTH_CFLAGS) \ 61 | $(NULL) 62 | 63 | system_indicators_la_LIBADD += \ 64 | $(GNOME_BLUETOOTH_LIBS) \ 65 | $(NULL) 66 | endif 67 | 68 | -include $(top_srcdir)/git.mk 69 | -------------------------------------------------------------------------------- /system-indicators/si-applet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_APPLET_H 19 | #define SI_APPLET_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define SI_TYPE_APPLET (si_applet_get_type ()) 26 | G_DECLARE_FINAL_TYPE (SiApplet, si_applet, SI, APPLET, GpApplet) 27 | 28 | G_END_DECLS 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /system-indicators/si-bluetooth.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_BLUETOOTH_H 19 | #define SI_BLUETOOTH_H 20 | 21 | #include 22 | #include "si-indicator.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define SI_TYPE_BLUETOOTH (si_bluetooth_get_type ()) 27 | G_DECLARE_FINAL_TYPE (SiBluetooth, si_bluetooth, SI, BLUETOOTH, SiIndicator) 28 | 29 | SiIndicator *si_bluetooth_new (GpApplet *applet); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /system-indicators/si-desktop-menu-item.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_DESKTOP_MENU_ITEM_H 19 | #define SI_DESKTOP_MENU_ITEM_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define SI_TYPE_DESKTOP_MENU_ITEM (si_desktop_menu_item_get_type ()) 26 | G_DECLARE_FINAL_TYPE (SiDesktopMenuItem, si_desktop_menu_item, 27 | SI, DESKTOP_MENU_ITEM, GtkMenuItem) 28 | 29 | GtkWidget *si_desktop_menu_item_new (const char *label, 30 | const char *desktop_id); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /system-indicators/si-indicator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_INDICATOR_H 19 | #define SI_INDICATOR_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define SI_TYPE_INDICATOR (si_indicator_get_type ()) 26 | G_DECLARE_DERIVABLE_TYPE (SiIndicator, si_indicator, SI, INDICATOR, GObject) 27 | 28 | struct _SiIndicatorClass 29 | { 30 | GObjectClass parent_class; 31 | }; 32 | 33 | GpApplet *si_indicator_get_applet (SiIndicator *self); 34 | 35 | GtkWidget *si_indicator_get_menu_item (SiIndicator *self); 36 | 37 | void si_indicator_set_icon_name (SiIndicator *self, 38 | const char *icon_name); 39 | 40 | void si_indicator_set_icon_filename (SiIndicator *self, 41 | const char *filename); 42 | 43 | void si_indicator_set_icon (SiIndicator *self, 44 | GIcon *icon); 45 | 46 | G_END_DECLS 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /system-indicators/si-input-sources.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_INPUT_SOURCES_H 19 | #define SI_INPUT_SOURCES_H 20 | 21 | #include 22 | #include "si-indicator.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define SI_TYPE_INPUT_SOURCES (si_input_sources_get_type ()) 27 | G_DECLARE_FINAL_TYPE (SiInputSources, si_input_sources, 28 | SI, INPUT_SOURCES, SiIndicator) 29 | 30 | SiIndicator *si_input_sources_new (GpApplet *applet); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /system-indicators/si-menu-bar.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_MENU_BAR_H 19 | #define SI_MENU_BAR_H 20 | 21 | #include 22 | 23 | G_BEGIN_DECLS 24 | 25 | #define SI_TYPE_MENU_BAR (si_menu_bar_get_type ()) 26 | G_DECLARE_FINAL_TYPE (SiMenuBar, si_menu_bar, SI, MENU_BAR, GtkMenuBar) 27 | 28 | GtkWidget *si_menu_bar_new (void); 29 | 30 | G_END_DECLS 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /system-indicators/si-power.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_POWER_H 19 | #define SI_POWER_H 20 | 21 | #include 22 | #include "si-indicator.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define SI_TYPE_POWER (si_power_get_type ()) 27 | G_DECLARE_FINAL_TYPE (SiPower, si_power, SI, POWER, SiIndicator) 28 | 29 | SiIndicator *si_power_new (GpApplet *applet); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /system-indicators/si-volume.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Alberts Muktupāvels 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef SI_VOLUME_H 19 | #define SI_VOLUME_H 20 | 21 | #include 22 | #include "gvc-mixer-control.h" 23 | #include "si-indicator.h" 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define SI_TYPE_VOLUME (si_volume_get_type ()) 28 | G_DECLARE_FINAL_TYPE (SiVolume, si_volume, SI, VOLUME, SiIndicator) 29 | 30 | SiIndicator *si_volume_new (GpApplet *applet, 31 | GvcMixerControl *control, 32 | gboolean input); 33 | G_END_DECLS 34 | 35 | #endif 36 | --------------------------------------------------------------------------------