├── AUTHORS ├── COMMITMENT ├── COPYING ├── MAINTAINERS ├── README.md ├── RELEASE ├── contrib ├── gnome-packagekit.spec.in └── test-install.py ├── data ├── gpk-log.desktop.in ├── gpk-prefs.desktop.in ├── icons │ ├── 16x16 │ │ ├── actions │ │ │ ├── pk-desktop-gnome.png │ │ │ ├── pk-desktop-kde.png │ │ │ └── pk-desktop-xfce.png │ │ └── status │ │ │ ├── pk-collection-available.png │ │ │ ├── pk-collection-installed.png │ │ │ ├── pk-package-add.png │ │ │ ├── pk-package-available.png │ │ │ ├── pk-package-blocked.png │ │ │ ├── pk-package-cleanup.png │ │ │ ├── pk-package-delete.png │ │ │ ├── pk-package-download.png │ │ │ ├── pk-package-downloaded.png │ │ │ ├── pk-package-info.png │ │ │ ├── pk-package-installed.png │ │ │ ├── pk-package-search.png │ │ │ ├── pk-package-sources.png │ │ │ ├── pk-package-update.png │ │ │ ├── pk-refresh-cache.png │ │ │ ├── pk-setup.png │ │ │ ├── pk-update-bugfix.png │ │ │ ├── pk-update-enhancement.png │ │ │ ├── pk-update-high.png │ │ │ ├── pk-update-low.png │ │ │ ├── pk-update-normal.png │ │ │ ├── pk-update-security.png │ │ │ └── pk-wait.png │ ├── 22x22 │ │ ├── actions │ │ │ ├── pk-desktop-gnome.png │ │ │ ├── pk-desktop-kde.png │ │ │ └── pk-desktop-xfce.png │ │ └── status │ │ │ ├── pk-collection-available.png │ │ │ ├── pk-collection-installed.png │ │ │ ├── pk-package-add.png │ │ │ ├── pk-package-available.png │ │ │ ├── pk-package-blocked.png │ │ │ ├── pk-package-cleanup.png │ │ │ ├── pk-package-delete.png │ │ │ ├── pk-package-download.png │ │ │ ├── pk-package-downloaded.png │ │ │ ├── pk-package-info.png │ │ │ ├── pk-package-installed.png │ │ │ ├── pk-package-search.png │ │ │ ├── pk-package-sources.png │ │ │ ├── pk-package-update.png │ │ │ ├── pk-refresh-cache.png │ │ │ ├── pk-setup.png │ │ │ ├── pk-update-bugfix.png │ │ │ ├── pk-update-enhancement.png │ │ │ ├── pk-update-high.png │ │ │ ├── pk-update-low.png │ │ │ ├── pk-update-normal.png │ │ │ ├── pk-update-security.png │ │ │ └── pk-wait.png │ ├── 24x24 │ │ ├── actions │ │ │ ├── pk-desktop-gnome.png │ │ │ ├── pk-desktop-kde.png │ │ │ └── pk-desktop-xfce.png │ │ └── status │ │ │ ├── pk-collection-available.png │ │ │ ├── pk-collection-installed.png │ │ │ ├── pk-package-add.png │ │ │ ├── pk-package-available.png │ │ │ ├── pk-package-blocked.png │ │ │ ├── pk-package-cleanup.png │ │ │ ├── pk-package-delete.png │ │ │ ├── pk-package-download.png │ │ │ ├── pk-package-downloaded.png │ │ │ ├── pk-package-info.png │ │ │ ├── pk-package-installed.png │ │ │ ├── pk-package-search.png │ │ │ ├── pk-package-sources.png │ │ │ ├── pk-package-update.png │ │ │ ├── pk-refresh-cache.png │ │ │ ├── pk-setup.png │ │ │ ├── pk-update-bugfix.png │ │ │ ├── pk-update-enhancement.png │ │ │ ├── pk-update-high.png │ │ │ ├── pk-update-low.png │ │ │ ├── pk-update-normal.png │ │ │ ├── pk-update-security.png │ │ │ └── pk-wait.png │ ├── 48x48 │ │ ├── actions │ │ │ ├── pk-desktop-gnome.png │ │ │ ├── pk-desktop-kde.png │ │ │ └── pk-desktop-xfce.png │ │ └── status │ │ │ ├── pk-collection-available.png │ │ │ ├── pk-collection-installed.png │ │ │ ├── pk-package-add.png │ │ │ ├── pk-package-available.png │ │ │ ├── pk-package-blocked.png │ │ │ ├── pk-package-cleanup.png │ │ │ ├── pk-package-delete.png │ │ │ ├── pk-package-download.png │ │ │ ├── pk-package-downloaded.png │ │ │ ├── pk-package-info.png │ │ │ ├── pk-package-installed.png │ │ │ ├── pk-package-search.png │ │ │ ├── pk-package-sources.png │ │ │ ├── pk-package-update.png │ │ │ ├── pk-refresh-cache.png │ │ │ ├── pk-setup.png │ │ │ ├── pk-update-bugfix.png │ │ │ ├── pk-update-enhancement.png │ │ │ ├── pk-update-high.png │ │ │ ├── pk-update-low.png │ │ │ ├── pk-update-normal.png │ │ │ ├── pk-update-security.png │ │ │ └── pk-wait.png │ ├── clean_svg_icons.sh │ ├── create-application-icons.sh │ ├── generate_16x16_icons.sh │ ├── generate_24x24_icons.sh │ ├── generate_48x48_icons.sh │ ├── meson.build │ └── scalable │ │ ├── actions │ │ ├── pk-desktop-gnome.svg │ │ ├── pk-desktop-kde.svgz │ │ └── pk-desktop-xfce.svg │ │ └── status │ │ ├── pk-collection-available.svg │ │ ├── pk-collection-installed.svg │ │ ├── pk-package-add.svg │ │ ├── pk-package-available.svg │ │ ├── pk-package-blocked.svg │ │ ├── pk-package-cleanup.svg │ │ ├── pk-package-delete.svg │ │ ├── pk-package-download.svg │ │ ├── pk-package-downloaded.svg │ │ ├── pk-package-info.svg │ │ ├── pk-package-installed.svg │ │ ├── pk-package-search.svg │ │ ├── pk-package-sources.svg │ │ ├── pk-package-update.svg │ │ ├── pk-refresh-cache.svg │ │ ├── pk-setup.svg │ │ ├── pk-update-bugfix.svg │ │ ├── pk-update-enhancement.svg │ │ ├── pk-update-high.svg │ │ ├── pk-update-low.svg │ │ ├── pk-update-normal.svg │ │ ├── pk-update-security.svg │ │ └── pk-wait.svg ├── meson.build ├── metainfo │ ├── meson.build │ ├── org.gnome.PackageUpdater.metainfo.xml.in │ ├── org.gnome.Packages.metainfo.xml.in │ ├── ss-application-details.png │ ├── ss-application.png │ ├── ss-log.png │ ├── ss-prefs.png │ └── ss-updater.png ├── org.gnome.PackageUpdater.desktop.in ├── org.gnome.Packages.desktop.in ├── org.gnome.packagekit.gschema.migrate └── org.gnome.packagekit.gschema.xml ├── docs ├── .gitignore ├── DBusInterface.txt └── pk-test-install.py ├── gnome-packagekit.doap ├── man ├── gpk-application.sgml ├── gpk-log.sgml ├── gpk-prefs.sgml ├── gpk-update-viewer.sgml └── meson.build ├── meson.build ├── meson_options.txt ├── meson_post_install.sh ├── po ├── .gitignore ├── LINGUAS ├── POTFILES.in ├── POTFILES.skip ├── af.po ├── an.po ├── ar.po ├── as.po ├── ast.po ├── be.po ├── bg.po ├── bn.po ├── bn_IN.po ├── bs.po ├── ca.po ├── ca@valencia.po ├── cs.po ├── cy.po ├── da.po ├── de.po ├── el.po ├── en@shaw.po ├── en_GB.po ├── eo.po ├── es.po ├── et.po ├── eu.po ├── fa.po ├── fi.po ├── fr.po ├── fur.po ├── ga.po ├── gl.po ├── gu.po ├── he.po ├── hi.po ├── hr.po ├── hu.po ├── id.po ├── is.po ├── it.po ├── ja.po ├── ka.po ├── kk.po ├── kn.po ├── ko.po ├── lt.po ├── lv.po ├── meson.build ├── mk.po ├── ml.po ├── mr.po ├── ms.po ├── nb.po ├── ne.po ├── nl.po ├── nn.po ├── oc.po ├── or.po ├── pa.po ├── pl.po ├── pt.po ├── pt_BR.po ├── ro.po ├── ru.po ├── sk.po ├── sl.po ├── sr.po ├── sr@latin.po ├── sv.po ├── ta.po ├── te.po ├── tg.po ├── th.po ├── tr.po ├── ug.po ├── uk.po ├── vi.po ├── zh_CN.po ├── zh_HK.po └── zh_TW.po └── src ├── gpk-application.c ├── gpk-application.gresource.xml ├── gpk-application.ui ├── gpk-cell-renderer-info.c ├── gpk-cell-renderer-info.h ├── gpk-cell-renderer-restart.c ├── gpk-cell-renderer-restart.h ├── gpk-cell-renderer-size.c ├── gpk-cell-renderer-size.h ├── gpk-client.ui ├── gpk-common.c ├── gpk-common.h ├── gpk-debug.c ├── gpk-debug.h ├── gpk-dialog.c ├── gpk-dialog.h ├── gpk-enum.c ├── gpk-enum.h ├── gpk-error.c ├── gpk-error.h ├── gpk-error.ui ├── gpk-eula.ui ├── gpk-log.c ├── gpk-log.gresource.xml ├── gpk-log.ui ├── gpk-prefs.c ├── gpk-prefs.gresource.xml ├── gpk-prefs.ui ├── gpk-self-test.c ├── gpk-signature.ui ├── gpk-task.c ├── gpk-task.h ├── gpk-update-viewer.c ├── gpk-update-viewer.gresource.xml ├── gpk-update-viewer.ui ├── meson.build ├── systemd-proxy.c └── systemd-proxy.h /AUTHORS: -------------------------------------------------------------------------------- 1 | Richard Hughes 2 | 3 | -------------------------------------------------------------------------------- /COMMITMENT: -------------------------------------------------------------------------------- 1 | Common Cure Rights Commitment, version 1.0 2 | 3 | Before filing or continuing to prosecute any legal proceeding or claim 4 | (other than a Defensive Action) arising from termination of a Covered 5 | License, we commit to extend to the person or entity ('you') accused 6 | of violating the Covered License the following provisions regarding 7 | cure and reinstatement, taken from GPL version 3. As used here, the 8 | term 'this License' refers to the specific Covered License being 9 | enforced. 10 | 11 | However, if you cease all violation of this License, then your 12 | license from a particular copyright holder is reinstated (a) 13 | provisionally, unless and until the copyright holder explicitly 14 | and finally terminates your license, and (b) permanently, if the 15 | copyright holder fails to notify you of the violation by some 16 | reasonable means prior to 60 days after the cessation. 17 | 18 | Moreover, your license from a particular copyright holder is 19 | reinstated permanently if the copyright holder notifies you of the 20 | violation by some reasonable means, this is the first time you 21 | have received notice of violation of this License (for any work) 22 | from that copyright holder, and you cure the violation prior to 30 23 | days after your receipt of the notice. 24 | 25 | We intend this Commitment to be irrevocable, and binding and 26 | enforceable against us and assignees of or successors to our 27 | copyrights. 28 | 29 | Definitions 30 | 31 | 'Covered License' means the GNU General Public License, version 2 32 | (GPLv2), the GNU Lesser General Public License, version 2.1 33 | (LGPLv2.1), or the GNU Library General Public License, version 2 34 | (LGPLv2), all as published by the Free Software Foundation. 35 | 36 | 'Defensive Action' means a legal proceeding or claim that We bring 37 | against you in response to a prior proceeding or claim initiated by 38 | you or your affiliate. 39 | 40 | 'We' means each contributor to this repository as of the date of 41 | inclusion of this file, including subsidiaries of a corporate 42 | contributor. 43 | 44 | This work is available under a Creative Commons Attribution-ShareAlike 45 | 4.0 International license. 46 | -------------------------------------------------------------------------------- /MAINTAINERS: -------------------------------------------------------------------------------- 1 | Richard Hughes 2 | Email: richard@hughsie.com 3 | Userid: rhughes 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GNOME PackageKit 2 | A PackageKit client for the GNOME desktop 3 | 4 | gnome-packagekit are PackageKit client programs designed for the GNOME desktop. 5 | 6 | For more information, please see https://www.freedesktop.org/software/PackageKit/ 7 | 8 | The GNOME logo and GNOME name are registered trademarks or trademarks of 9 | GNOME Foundation in the United States or other countries. 10 | KDE, K Desktop Environment and the KDE Logo are trademarks of KDE e.V. 11 | -------------------------------------------------------------------------------- /RELEASE: -------------------------------------------------------------------------------- 1 | PackageKit Release Notes 2 | 3 | 1. Write NEWS entries for gnome-packagekit in the same format as usual. 4 | 5 | git log --format="%s" 43.0.. | grep -i -v trivial | grep -v Merge | uniq 6 | Add any user visible changes into data/metainfo/*.xml.in 7 | 8 | 3. Commit changes in gnome-packagekit git: 9 | 10 | git commit -a -m "Release version 43.1" 11 | git tag -s 43.1 -m "Version 43.1" 12 | 13 | git push --tags 14 | git push 15 | 16 | 4. Create tarball 17 | 18 | ninja dist 19 | 20 | 5. Upload tarballs: 21 | 22 | scp meson-dist/*.tar.xz rhughes@master.gnome.org: 23 | 24 | 6. Install module 25 | 26 | ssh rhughes@master.gnome.org 27 | ftpadmin install gnome-packagekit-*.tar.xz 28 | 29 | 7. Do post release version bump in meson.build 30 | 31 | 8. Commit trivial changes: 32 | 33 | git commit -a -m "trivial: Post release version bump" 34 | git push 35 | -------------------------------------------------------------------------------- /contrib/gnome-packagekit.spec.in: -------------------------------------------------------------------------------- 1 | %define alphatag #ALPHATAG# 2 | 3 | Name: gnome-packagekit 4 | Version: #VERSION# 5 | Release: 0.#BUILD#%{?alphatag}%{?dist} 6 | Summary: Session applications to manage packages 7 | License: GPLv2+ 8 | URL: https://www.freedesktop.org/software/PackageKit/ 9 | Source0: http://download.gnome.org/sources/gnome-packagekit/43/%{name}-%{version}.tar.xz 10 | 11 | BuildRequires: glib2-devel >= 2.25.8 12 | BuildRequires: gtk3-devel 13 | BuildRequires: libnotify-devel >= 0.7.0 14 | BuildRequires: desktop-file-utils 15 | BuildRequires: gettext 16 | BuildRequires: libtool 17 | BuildRequires: cairo-devel 18 | BuildRequires: startup-notification-devel 19 | BuildRequires: PackageKit-devel >= 0.5.0 20 | BuildRequires: xorg-x11-proto-devel 21 | BuildRequires: fontconfig-devel 22 | BuildRequires: libcanberra-devel 23 | BuildRequires: libgudev1-devel 24 | BuildRequires: libxslt 25 | BuildRequires: docbook-utils 26 | BuildRequires: systemd-devel 27 | BuildRequires: meson 28 | BuildRequires: polkit-devel 29 | BuildRequires: itstool 30 | BuildRequires: appstream 31 | 32 | # the top level package depends on all the apps to make upgrades work 33 | Requires: %{name}-installer 34 | Requires: %{name}-updater 35 | 36 | %description 37 | gnome-packagekit provides session applications for the PackageKit API. 38 | There are several utilities designed for installing, updating and 39 | removing packages on your system. 40 | 41 | %package common 42 | Summary: Common files required for %{name} 43 | Requires: adwaita-icon-theme 44 | Requires: PackageKit%{?_isa} >= 0.5.0 45 | Requires: PackageKit-libs >= 0.5.0 46 | Requires: shared-mime-info 47 | Requires: iso-codes 48 | Requires: libcanberra%{?_isa} >= 0.10 49 | 50 | %description common 51 | Files shared by all subpackages of %{name} 52 | 53 | %package installer 54 | Summary: PackageKit package installer 55 | Requires: %{name}-common%{?_isa} = %{version}-%{release} 56 | 57 | %description installer 58 | A graphical package installer for PackageKit which is used to manage software 59 | not shown in GNOME Software. 60 | 61 | %package updater 62 | Summary: PackageKit package updater 63 | Requires: %{name}-common%{?_isa} = %{version}-%{release} 64 | 65 | %description updater 66 | A graphical package updater for PackageKit which is used to update packages 67 | without rebooting. 68 | 69 | %prep 70 | %setup -q 71 | 72 | %build 73 | %meson 74 | %meson_build 75 | 76 | %install 77 | %meson_install 78 | 79 | %find_lang %name --with-gnome 80 | 81 | %files 82 | # nada 83 | 84 | %files common -f %{name}.lang 85 | %license COPYING 86 | %doc AUTHORS 87 | %{_bindir}/gpk-log 88 | %{_bindir}/gpk-prefs 89 | %dir %{_datadir}/gnome-packagekit 90 | %dir %{_datadir}/gnome-packagekit/icons 91 | %dir %{_datadir}/gnome-packagekit/icons/hicolor 92 | %dir %{_datadir}/gnome-packagekit/icons/hicolor/* 93 | %dir %{_datadir}/gnome-packagekit/icons/hicolor/*/* 94 | %{_datadir}/gnome-packagekit/icons/hicolor/*/*/*.png 95 | %{_datadir}/gnome-packagekit/icons/hicolor/scalable/*/*.svg* 96 | %{_datadir}/icons/hicolor/scalable/*/*.svg* 97 | %{_datadir}/applications/gpk-log.desktop 98 | %{_datadir}/applications/gpk-prefs.desktop 99 | %{_datadir}/glib-2.0/schemas/org.gnome.packagekit.gschema.xml 100 | %{_datadir}/GConf/gsettings/org.gnome.packagekit.gschema.migrate 101 | %{_mandir}/man1/gpk-log.1* 102 | %{_mandir}/man1/gpk-prefs.1* 103 | 104 | %files installer 105 | %{_bindir}/gpk-application 106 | %{_datadir}/applications/org.gnome.Packages.desktop 107 | %{_datadir}/metainfo/org.gnome.Packages.metainfo.xml 108 | %{_mandir}/man1/gpk-application.1* 109 | 110 | %files updater 111 | %{_bindir}/gpk-update-viewer 112 | %{_datadir}/applications/org.gnome.PackageUpdater.desktop 113 | %{_datadir}/metainfo/org.gnome.PackageUpdater.metainfo.xml 114 | %{_mandir}/man1/gpk-update-viewer.1* 115 | 116 | %changelog 117 | * #LONGDATE# Richard Hughes #VERSION#-0.#BUILD##ALPHATAG# 118 | - Update from GIT 119 | -------------------------------------------------------------------------------- /contrib/test-install.py: -------------------------------------------------------------------------------- 1 | import dbus 2 | 3 | try: 4 | bus = dbus.SessionBus() 5 | except dbus.DBusException, e: 6 | print 'Unable to connect to dbus: %s' % str(e) 7 | sys.exit() 8 | try: 9 | proxy = bus.get_object('org.freedesktop.PackageKit', '/org/freedesktop/PackageKit') 10 | iface = dbus.Interface(proxy, 'org.freedesktop.PackageKit') 11 | iface.InstallPackageName('openoffice-clipart') 12 | except dbus.DBusException, e: 13 | print 'Unable to use PackageKit: %s' % str(e) 14 | 15 | -------------------------------------------------------------------------------- /data/gpk-log.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Package Log 3 | Comment=View past package management tasks 4 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 5 | Icon=gpk-log 6 | Exec=gpk-log 7 | Terminal=false 8 | Type=Application 9 | NoDisplay=true 10 | Categories=GNOME;GTK;System; 11 | StartupNotify=true 12 | 13 | -------------------------------------------------------------------------------- /data/gpk-prefs.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Package Sources 3 | Comment=Enable or disable package repositories 4 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 5 | Icon=gpk-prefs 6 | Exec=gpk-prefs 7 | Terminal=false 8 | Type=Application 9 | Categories=Settings;X-GNOME-SystemSettings; 10 | NotShowIn=KDE; 11 | StartupNotify=true 12 | NoDisplay=true 13 | -------------------------------------------------------------------------------- /data/icons/16x16/actions/pk-desktop-gnome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/actions/pk-desktop-gnome.png -------------------------------------------------------------------------------- /data/icons/16x16/actions/pk-desktop-kde.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/actions/pk-desktop-kde.png -------------------------------------------------------------------------------- /data/icons/16x16/actions/pk-desktop-xfce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/actions/pk-desktop-xfce.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-collection-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-collection-available.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-collection-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-collection-installed.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-add.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-available.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-blocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-blocked.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-cleanup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-cleanup.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-delete.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-download.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-downloaded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-downloaded.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-info.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-installed.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-search.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-sources.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-sources.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-package-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-package-update.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-refresh-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-refresh-cache.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-setup.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-update-bugfix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-update-bugfix.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-update-enhancement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-update-enhancement.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-update-high.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-update-high.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-update-low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-update-low.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-update-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-update-normal.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-update-security.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-update-security.png -------------------------------------------------------------------------------- /data/icons/16x16/status/pk-wait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/16x16/status/pk-wait.png -------------------------------------------------------------------------------- /data/icons/22x22/actions/pk-desktop-gnome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/actions/pk-desktop-gnome.png -------------------------------------------------------------------------------- /data/icons/22x22/actions/pk-desktop-kde.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/actions/pk-desktop-kde.png -------------------------------------------------------------------------------- /data/icons/22x22/actions/pk-desktop-xfce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/actions/pk-desktop-xfce.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-collection-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-collection-available.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-collection-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-collection-installed.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-add.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-available.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-blocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-blocked.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-cleanup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-cleanup.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-delete.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-download.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-downloaded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-downloaded.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-info.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-installed.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-search.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-sources.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-sources.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-package-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-package-update.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-refresh-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-refresh-cache.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-setup.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-update-bugfix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-update-bugfix.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-update-enhancement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-update-enhancement.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-update-high.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-update-high.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-update-low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-update-low.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-update-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-update-normal.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-update-security.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-update-security.png -------------------------------------------------------------------------------- /data/icons/22x22/status/pk-wait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/22x22/status/pk-wait.png -------------------------------------------------------------------------------- /data/icons/24x24/actions/pk-desktop-gnome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/actions/pk-desktop-gnome.png -------------------------------------------------------------------------------- /data/icons/24x24/actions/pk-desktop-kde.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/actions/pk-desktop-kde.png -------------------------------------------------------------------------------- /data/icons/24x24/actions/pk-desktop-xfce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/actions/pk-desktop-xfce.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-collection-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-collection-available.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-collection-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-collection-installed.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-add.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-available.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-blocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-blocked.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-cleanup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-cleanup.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-delete.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-download.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-downloaded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-downloaded.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-info.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-installed.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-search.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-sources.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-sources.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-package-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-package-update.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-refresh-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-refresh-cache.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-setup.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-update-bugfix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-update-bugfix.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-update-enhancement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-update-enhancement.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-update-high.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-update-high.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-update-low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-update-low.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-update-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-update-normal.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-update-security.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-update-security.png -------------------------------------------------------------------------------- /data/icons/24x24/status/pk-wait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/24x24/status/pk-wait.png -------------------------------------------------------------------------------- /data/icons/48x48/actions/pk-desktop-gnome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/actions/pk-desktop-gnome.png -------------------------------------------------------------------------------- /data/icons/48x48/actions/pk-desktop-kde.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/actions/pk-desktop-kde.png -------------------------------------------------------------------------------- /data/icons/48x48/actions/pk-desktop-xfce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/actions/pk-desktop-xfce.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-collection-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-collection-available.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-collection-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-collection-installed.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-add.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-available.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-blocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-blocked.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-cleanup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-cleanup.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-delete.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-download.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-downloaded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-downloaded.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-info.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-installed.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-search.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-sources.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-sources.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-package-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-package-update.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-refresh-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-refresh-cache.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-setup.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-update-bugfix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-update-bugfix.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-update-enhancement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-update-enhancement.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-update-high.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-update-high.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-update-low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-update-low.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-update-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-update-normal.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-update-security.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-update-security.png -------------------------------------------------------------------------------- /data/icons/48x48/status/pk-wait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/48x48/status/pk-wait.png -------------------------------------------------------------------------------- /data/icons/clean_svg_icons.sh: -------------------------------------------------------------------------------- 1 | # clean to reduce file size 2 | subdirs="categories status" 3 | 4 | for subdir in $subdirs; do 5 | cd scalable/$subdir 6 | for i in *.svg; do 7 | inkscape -f "$i" --vacuum-defs --export-plain-svg "$i"; 8 | done 9 | cd - 10 | done 11 | 12 | -------------------------------------------------------------------------------- /data/icons/create-application-icons.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Starting custom installation step" 3 | 4 | if [ -z $MESON_INSTALL_PREFIX ]; then 5 | echo 'This is meant to be ran from Meson only!' 6 | exit 1 7 | fi 8 | 9 | PKGICONSDIR="../../../../gnome-packagekit/icons/hicolor"; 10 | ICONSDIR="${DESTDIR:-}${MESON_INSTALL_PREFIX}/share/icons/hicolor"; 11 | echo ${ICONSDIR} 12 | mkdir -p ${ICONSDIR}/scalable/apps 13 | mkdir -p ${ICONSDIR}/scalable/mimetypes 14 | 15 | cd ${ICONSDIR}/scalable/apps 16 | ln -sf ${PKGICONSDIR}/scalable/status/pk-package-sources.svg gpk-repo.svg 17 | ln -sf ${PKGICONSDIR}/scalable/status/pk-package-info.svg gpk-log.svg 18 | ln -sf ${PKGICONSDIR}/scalable/status/pk-update-high.svg gpk-prefs.svg 19 | ln -sf ${PKGICONSDIR}/scalable/status/pk-package-sources.svg gpk-repo.svg 20 | cd - 21 | 22 | cd ${ICONSDIR}/scalable/mimetypes 23 | ln -sf ${PKGICONSDIR}/scalable/status/pk-package-info.svg application-x-package-list.svg 24 | ln -sf ${PKGICONSDIR}/scalable/status/pk-collection-installed.svg application-x-catalog.svg 25 | cd - 26 | 27 | echo "Finished custom install step" 28 | -------------------------------------------------------------------------------- /data/icons/generate_16x16_icons.sh: -------------------------------------------------------------------------------- 1 | # we need to generate the 24x24 icons from the 22x22 tango icons 2 | subdirs="categories status" 3 | 4 | for subdir in $subdirs; do 5 | cd 22x22/$subdir 6 | for icon in *.png; do 7 | target="../../16x16/$subdir/$icon" 8 | if [ ! -e $target ]; then 9 | convert -resize 16x16 $icon $target; 10 | fi 11 | done 12 | cd - 13 | done 14 | 15 | -------------------------------------------------------------------------------- /data/icons/generate_24x24_icons.sh: -------------------------------------------------------------------------------- 1 | # we need to generate the 24x24 icons from the 22x22 tango icons 2 | subdirs="categories status" 3 | 4 | for subdir in $subdirs; do 5 | cd 22x22/$subdir 6 | for icon in *.png; do 7 | target="../../24x24/$subdir/$icon" 8 | if [ ! -e $target ]; then 9 | convert -bordercolor Transparent -border 1x1 $icon $target; 10 | fi 11 | done 12 | cd - 13 | done 14 | 15 | -------------------------------------------------------------------------------- /data/icons/generate_48x48_icons.sh: -------------------------------------------------------------------------------- 1 | 2 | subdirs="categories" 3 | 4 | for subdir in $subdirs; do 5 | cd scalable/$subdir 6 | for i in *.svg;do 7 | target="../48x48/"$( echo $i | cut -d . -f -1 ).png 8 | echo "converting $i to $target" 9 | if [ ! -e $target ]; then 10 | inkscape --without-gui --export-png=$target --export-dpi=72 --export-background-opacity=0 --export-width=48 --export-height=48 "$i";done 11 | fi 12 | cd - 13 | done 14 | -------------------------------------------------------------------------------- /data/icons/meson.build: -------------------------------------------------------------------------------- 1 | icon_sizes = ['16x16', '22x22', '24x24', '48x48', 'scalable'] 2 | foreach size: icon_sizes 3 | install_subdir(size + '/actions', 4 | install_dir: join_paths( 5 | get_option('datadir'), 6 | 'gnome-packagekit', 7 | 'icons', 8 | 'hicolor', 9 | size 10 | ) 11 | ) 12 | install_subdir(size + '/status', 13 | install_dir: join_paths( 14 | get_option('datadir'), 15 | 'gnome-packagekit', 16 | 'icons', 17 | 'hicolor', 18 | size 19 | ) 20 | ) 21 | endforeach 22 | 23 | meson.add_install_script('create-application-icons.sh') 24 | -------------------------------------------------------------------------------- /data/icons/scalable/actions/pk-desktop-kde.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/icons/scalable/actions/pk-desktop-kde.svgz -------------------------------------------------------------------------------- /data/icons/scalable/actions/pk-desktop-xfce.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 12 | 17 | 20 | 25 | 29 | 33 | 37 | 45 | 50 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /data/icons/scalable/status/pk-update-enhancement.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 14 | 16 | 20 | 24 | 25 | 27 | 31 | 35 | 36 | 38 | 42 | 46 | 47 | 57 | 63 | 67 | 68 | 78 | 86 | 87 | 89 | 94 | 99 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /data/icons/scalable/status/pk-update-high.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 14 | 16 | 20 | 24 | 25 | 27 | 31 | 35 | 36 | 38 | 42 | 46 | 47 | 57 | 63 | 67 | 68 | 78 | 86 | 87 | 89 | 94 | 99 | 104 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /data/icons/scalable/status/pk-update-low.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 14 | 16 | 20 | 24 | 25 | 27 | 31 | 35 | 36 | 38 | 42 | 46 | 47 | 57 | 63 | 67 | 68 | 78 | 86 | 87 | 89 | 94 | 99 | 104 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /data/icons/scalable/status/pk-update-normal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 14 | 16 | 20 | 24 | 25 | 27 | 31 | 35 | 36 | 38 | 42 | 46 | 47 | 57 | 63 | 67 | 68 | 78 | 86 | 87 | 89 | 94 | 99 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /data/icons/scalable/status/pk-update-security.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 14 | 16 | 20 | 24 | 25 | 27 | 31 | 35 | 36 | 38 | 42 | 46 | 47 | 57 | 63 | 67 | 68 | 78 | 86 | 88 | 92 | 96 | 97 | 107 | 117 | 127 | 128 | 130 | 135 | 140 | 145 | 149 | 154 | 158 | 159 | 160 | 161 | -------------------------------------------------------------------------------- /data/meson.build: -------------------------------------------------------------------------------- 1 | subdir('metainfo') 2 | subdir('icons') 3 | 4 | compiled = gnome.compile_schemas() 5 | install_data('org.gnome.packagekit.gschema.xml', 6 | install_dir : 'share/glib-2.0/schemas' 7 | ) 8 | 9 | install_data('org.gnome.packagekit.gschema.migrate', 10 | install_dir : 'share/GConf/gsettings' 11 | ) 12 | 13 | desktop_files = [ 14 | 'gpk-log.desktop', 15 | 'gpk-prefs.desktop', 16 | 'org.gnome.Packages.desktop', 17 | 'org.gnome.PackageUpdater.desktop' 18 | ] 19 | foreach desktop_file: desktop_files 20 | i18n.merge_file( 21 | input: desktop_file + '.in', 22 | output: desktop_file, 23 | type: 'desktop', 24 | po_dir: join_paths(meson.source_root(), 'po'), 25 | install: true, 26 | install_dir: join_paths(get_option('datadir'), 'applications') 27 | ) 28 | endforeach 29 | -------------------------------------------------------------------------------- /data/metainfo/meson.build: -------------------------------------------------------------------------------- 1 | metainfo_files = [ 2 | 'org.gnome.Packages.metainfo.xml', 3 | 'org.gnome.PackageUpdater.metainfo.xml' 4 | ] 5 | foreach metainfo_file: metainfo_files 6 | i18n.merge_file( 7 | input: metainfo_file + '.in', 8 | output: metainfo_file, 9 | type: 'xml', 10 | po_dir: join_paths(meson.source_root(), 'po'), 11 | install: true, 12 | install_dir: join_paths(get_option('datadir'), 'metainfo') 13 | ) 14 | endforeach 15 | -------------------------------------------------------------------------------- /data/metainfo/org.gnome.PackageUpdater.metainfo.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.gnome.PackageUpdater 5 | CC0-1.0 6 | GPL-2.0+ 7 | GNOME Package Updater 8 | Update software installed on the system 9 | 10 |

11 | Package Updater allows you to update packages on your system without 12 | rebooting. 13 | You can view details about each update and choose which updates to apply. 14 |

15 |

16 | Package Updater uses PackageKit and can work on any distribution using 17 | the native package management framework. 18 |

19 |
20 | 21 | org.gnome.PackageUpdater.desktop 22 | https://www.freedesktop.org/software/PackageKit/ 23 | 24 | 25 | 26 | https://git.gnome.org/browse/gnome-packagekit/plain/data/metainfo/ss-updater.png 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 37 | 38 |

This release fixes the following bugs:

39 |
    40 |
  • Allow user to resize the changelog display box
  • 41 |
  • Don't fail if changelog contains XML characters
  • 42 |
  • Add icon for critical updates
  • 43 |
  • Fix smallscreen support
  • 44 |
  • Add back logout support
  • 45 |
46 |

This release includes the following changes:

47 |
    48 |
  • Automatically remove unused dependencies by default
  • 49 |
50 |
51 |
52 | 53 | 54 |

55 | This is the first stable release for GNOME 3.32 which updates several 56 | translations and fixes some build issues. 57 |

58 |
59 |
60 | 61 | 62 |

63 | This is the first stable release for GNOME 3.30 and updates several 64 | translations. 65 |

66 |
67 |
68 | 69 | 70 |

71 | This is the first stable release for GNOME 3.28 and updates several 72 | translations. 73 |

74 |
75 |
76 | 77 | 78 |

79 | This is the first stable release for GNOME 3.26 and updates several 80 | translations. 81 |

82 |
83 |
84 | 85 | 86 |

87 | This unstable release switches to the meson build-system and updates 88 | several translations. 89 |

90 |
91 |
92 | 93 | 94 |

This is the first stable release for GNOME 3.24.

95 |
96 |
97 | 98 | 99 |

This unstable release updates several translations.

100 |
101 |
102 | 103 | 104 |

This unstable release ports away from intltool and updates translations.

105 |
106 |
107 | 108 | 109 |

This is the first stable release for GNOME 3.22

110 |
111 |
112 | 113 | 114 |

This release only updates translations.

115 |
116 |
117 | 118 | 119 |

This release only updates translations.

120 |
121 |
122 | 123 | 124 |

This unstable release for GNOME 3.21 fixes the following bugs:

125 |
    126 |
  • Mark forgotten strings as translatable
  • 127 |
  • Update the UI files to adhere to the GNOME 3 UI guidelines
  • 128 |
129 |

This release also updates translations.

130 |
131 |
132 | 133 | 134 |

This unstable release for GNOME 3.21 fixes the following bugs:

135 |
    136 |
  • Use new-style application IDs for flatpak
  • 137 |
  • Remove the broken markdown parsing module
  • 138 |
139 |

This release also updates translations.

140 |
141 |
142 | 143 | 144 |

This release for GNOME 3.20 fixes the following bugs:

145 |
    146 |
  • Add a missing tag to the AppData file
  • 147 |
148 |

This release also updates translations.

149 |
150 |
151 | 152 | 153 |

This is the first stable release for GNOME 3.18

154 |
155 |
156 | 157 | 158 |

This release fixes the following bug:

159 |
    160 |
  • Consider available packages as updatable
  • 161 |
162 |
163 |
164 | 165 | 166 |

This stable release marks the release of GNOME 3.16!

167 |
168 |
169 | 170 | 171 |

This release only updates translations.

172 |
173 |
174 | 175 | 176 |

This release only updates translations.

177 |
178 |
179 | 180 | 181 |

This release moves the session D-Bus interface to GNOME Software.

182 |
183 |
184 | 185 | 186 |

This release fixes the following bugs:

187 |
    188 |
  • Add suitable Keywords to the package updater desktop file
  • 189 |
190 |
191 |
192 | 193 | 194 |

This release fixes the following bug:

195 |
    196 |
  • Avoid conflict with new GTK+ API
  • 197 |
198 |
199 |
200 |
201 |
202 | -------------------------------------------------------------------------------- /data/metainfo/org.gnome.Packages.metainfo.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.gnome.Packages 5 | CC0-1.0 6 | GPL-2.0+ 7 | GNOME Packages 8 | Add or remove software installed on the system 9 | 10 |

11 | Packages allows you to install and remove packages on your system. 12 | You can view and search packages by name, details or even file name 13 | and also see dependencies of one package on other packages. 14 | Searching by groups is possible and is an easy way to find software in 15 | your favorite desktop environment. 16 |

17 |

18 | Packages uses PackageKit and can work on any distribution using 19 | the native package management framework. 20 |

21 |
22 | 23 | org.gnome.Packages.desktop 24 | https://www.freedesktop.org/software/PackageKit/ 25 | 26 | GNOME 27 | gnome-packagekit 28 | 29 | 30 | 31 | https://git.gnome.org/browse/gnome-packagekit/plain/data/metainfo/ss-application.png 32 | 33 | 34 | https://git.gnome.org/browse/gnome-packagekit/plain/data/metainfo/ss-application-details.png 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | 45 | 46 |

This release fixes the following bugs:

47 |
    48 |
  • Add icon for critical updates
  • 49 |
  • Fix smallscreen support
  • 50 |
  • Add back logout support
  • 51 |
52 |

This release includes the following changes:

53 |
    54 |
  • Automatically remove unused dependencies by default
  • 55 |
56 |
57 |
58 | 59 | 60 |

61 | This is the first stable release for GNOME 3.32 which updates several 62 | translations and fixes some build issues. 63 |

64 |
65 |
66 | 67 | 68 |

69 | This is the first stable release for GNOME 3.30 and updates several 70 | translations. 71 |

72 |
73 |
74 | 75 | 76 |

77 | This is the first stable release for GNOME 3.28 and updates several 78 | translations. 79 |

80 |
81 |
82 | 83 | 84 |

85 | This is the first stable release for GNOME 3.26 and updates several 86 | translations. 87 |

88 |
89 |
90 | 91 | 92 |

93 | This unstable release switches to the meson build-system and updates 94 | several translations. 95 |

96 |
97 |
98 | 99 | 100 |

This is the first stable release for GNOME 3.24.

101 |
102 |
103 | 104 | 105 |

This unstable release updates several translations.

106 |
107 |
108 | 109 | 110 |

This unstable release ports away from intltool and updates translations.

111 |
112 |
113 | 114 | 115 |

This release modernizes metainfo files and updates translations.

116 |
117 |
118 | 119 | 120 |

This is the first stable release for GNOME 3.22

121 |
122 |
123 | 124 | 125 |

This release only updates translations.

126 |
127 |
128 | 129 | 130 |

This release only updates translations.

131 |
132 |
133 | 134 | 135 |

This unstable release for GNOME 3.21 fixes the following bugs:

136 |
    137 |
  • Use new-style application IDs for flatpak
  • 138 |
  • Remove the broken markdown parsing module
  • 139 |
140 |

This release also updates translations.

141 |
142 |
143 | 144 | 145 |

This release for GNOME 3.20 fixes the following bugs:

146 |
    147 |
  • Add a missing tag to the AppData file
  • 148 |
  • Add resizing to various modal dialogs
  • 149 |
150 |

This release also updates translations.

151 |
152 |
153 | 154 | 155 |

This is the first stable release for GNOME 3.18

156 |
157 |
158 | 159 | 160 |

This release fixes the following bugs:

161 |
    162 |
  • Set minimum content height for scrolled windows
  • 163 |
  • Ensure to escape package and vendor name
  • 164 |
165 |
166 |
167 | 168 | 169 |

This stable release marks the release of GNOME 3.16!

170 |
171 |
172 | 173 | 174 |

This release only updates translations.

175 |
176 |
177 | 178 | 179 |

This release only updates translations.

180 |
181 |
182 | 183 | 184 |

This release removes the dialog to run newly installed software.

185 |
186 |
187 | 188 | 189 | 190 |

This release fixes the following bug:

191 |
    192 |
  • Avoid conflict with new GTK+ API
  • 193 |
194 |
195 |
196 |
197 |
198 | -------------------------------------------------------------------------------- /data/metainfo/ss-application-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/metainfo/ss-application-details.png -------------------------------------------------------------------------------- /data/metainfo/ss-application.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/metainfo/ss-application.png -------------------------------------------------------------------------------- /data/metainfo/ss-log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/metainfo/ss-log.png -------------------------------------------------------------------------------- /data/metainfo/ss-prefs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/metainfo/ss-prefs.png -------------------------------------------------------------------------------- /data/metainfo/ss-updater.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GNOME/gnome-packagekit/29db8aedbec04727a96e968d9b96ff1cf486d198/data/metainfo/ss-updater.png -------------------------------------------------------------------------------- /data/org.gnome.PackageUpdater.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Package Updater 3 | Comment=Update software installed on the system 4 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 5 | Icon=system-software-update 6 | Exec=gpk-update-viewer 7 | Terminal=false 8 | Type=Application 9 | Categories=GNOME;GTK;System; 10 | # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! 11 | Keywords=Updates;Upgrade; 12 | NotShowIn=KDE; 13 | StartupNotify=true 14 | X-GNOME-UsesNotifications=true 15 | -------------------------------------------------------------------------------- /data/org.gnome.Packages.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Packages 3 | Comment=Add or remove software installed on the system 4 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 5 | Icon=system-software-install 6 | Exec=gpk-application 7 | Terminal=false 8 | Type=Application 9 | Categories=GNOME;GTK;System;PackageManager; 10 | # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! 11 | Keywords=Sources;Repositories;Preferences;Install;Store; 12 | NotShowIn=KDE; 13 | StartupNotify=true 14 | X-GNOME-UsesNotifications=true 15 | -------------------------------------------------------------------------------- /data/org.gnome.packagekit.gschema.migrate: -------------------------------------------------------------------------------- 1 | [org.gnome.packagekit] 2 | enable-autoremove = /apps/gnome-packagekit/enable_autoremove 3 | show-depends = /apps/gnome-packagekit/show_depends 4 | filter-basename = /apps/gnome-packagekit/application/filter_basename 5 | filter-newest = /apps/gnome-packagekit/application/filter_newest 6 | filter-arch = /apps/gnome-packagekit/application/filter_arch 7 | category-groups = /apps/gnome-packagekit/application/category_groups 8 | show-all-packages = /apps/gnome-packagekit/application/show_all_packages 9 | repo-show-details = /apps/gnome-packagekit/repo/show_details 10 | only-newest = /apps/gnome-packagekit/update-viewer/only_newest 11 | scroll-active = /apps/gnome-packagekit/update-viewer/scroll_active 12 | enable-font-helper = /apps/gnome-packagekit/enable_font_helper 13 | ignored-dbus-requests = /apps/gnome-packagekit/ignored_dbus_requests 14 | enable-codec-helper = /apps/gnome-packagekit/enable_codec_helper 15 | enable-mime-type-helper = /apps/gnome-packagekit/enable_mime_type_helper 16 | dbus-default-interaction = /apps/gnome-packagekit/dbus_default_interaction 17 | dbus-enforced-interaction = /apps/gnome-packagekit/dbus_enforced_interaction 18 | -------------------------------------------------------------------------------- /data/org.gnome.packagekit.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | Automatically remove unused dependencies 11 | When removing a package, also remove those dependencies that are not required by other packages. 12 | 13 | 14 | false 15 | Ask the user if additional packages should be installed 16 | Ask the user if additional packages should be installed. 17 | 18 | 19 | false 20 | Filter using basename in gpk-application 21 | Filter package lists using basename in gpk-application. 22 | 23 | 24 | true 25 | Only show the newest packages in the file lists 26 | Only show the newest packages in the file lists. 27 | 28 | 29 | false 30 | Only show supported packages in the file lists 31 | Only show supported packages in the file lists. 32 | 33 | 34 | true 35 | Only show native packages in the file lists 36 | Only show native packages matching the machine architecture in the file lists. 37 | 38 | 39 | false 40 | Show the category group menu 41 | Show the category group menu. This is more complete and custom to the distribution, but takes longer to populate. 42 | 43 | 44 | false 45 | Show the “All Packages” group menu 46 | Show the all packages menu item. This takes a long time to populate on most backends and is not generally required by end users. 47 | 48 | 49 | 'details' 50 | The search mode used by default 51 | The search mode used by default. Options are “name”, “details”, or “file”. 52 | 53 | 54 | false 55 | Show all repositories in the package source viewer 56 | Show all repositories in the package source viewer. 57 | 58 | 59 | true 60 | Only show the newest updates in the list 61 | Only show the newest packages in the update list, and filter out older updates that are still available. 62 | 63 | 64 | true 65 | Scroll to packages as they are downloaded 66 | Scroll to packages in the update list as they are downloaded or installed. 67 | 68 | 69 | true 70 | Allow applications to invoke the font installer 71 | Allow applications to invoke the font installer. 72 | 73 | 74 | '/usr/libexec/gnome-terminal-server,/usr/bin/nm-applet,/usr/bin/xchat-gnome' 75 | Programs that should be ignored when they issue session D-Bus requests 76 | Programs that should be ignored when they issue session D-Bus requests, separated by commas. 77 | 78 | 79 | true 80 | Allow applications to invoke the codec installer 81 | Allow applications to invoke the codec installer. 82 | 83 | 84 | true 85 | Allow applications to invoke the mime type installer 86 | Allow applications to invoke the mime type installer. 87 | 88 | 89 | 'show-confirm-search,show-confirm-deps,show-confirm-install,show-progress,show-finished,show-warning' 90 | When displaying UI from a session D-Bus request, automatically use these options by default. 91 | 92 | 93 | 'show-confirm-install' 94 | When displaying UI from a session D-Bus request, force these options to be turned on. 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile.in 2 | Makefile 3 | 4 | -------------------------------------------------------------------------------- /docs/DBusInterface.txt: -------------------------------------------------------------------------------- 1 | There are currently three interfaces on the service org.freedesktop.PackageKit. 2 | 3 | == org.freedesktop.PackageKit == 4 | 5 | * This interface is a legacy interface first used in gnome-packagekit 0.2.1 6 | and methods were added and changed over the 0.2.x series. 7 | * It was not really designed at this time as a standalone service, and as such 8 | provides little flexibility for client programs. 9 | * Consider this interface DEPRECATED as it will be removed in the 0.4.x series. 10 | 11 | == org.freedesktop.PackageKit.Query == 12 | 13 | * This interface is used for synchronous querying of package data, for instance 14 | finding what package owns a file, or if a package is installed. 15 | * It is designed to be easy to use, rather than flexible. 16 | * In the interaction mode an application can also specify that it should not 17 | be blocked when other transactions are in progress. 18 | If the system is in the process of updating glibc and the kernel, and 19 | a trivial request is issued for org.freedesktop.PackageKit.Query.IsInstalled 20 | then we might not want to wait several minutes for an accurate answer. 21 | 22 | The timeout command is supplied for this purpose. 23 | - By adding the interaction mode of timeout=0 the method will immediately fail 24 | if there are any other transactions running 25 | - The mode timeout=10 would wait a maximum of 10 seconds before returning with 26 | an error. 27 | 28 | == org.freedesktop.PackageKit.Modify == 29 | 30 | * This interface is for synchronous modification of the system, for instance 31 | installing applications or other resources. 32 | * The user interaction is controlled using an 'interaction mode', and this is 33 | outlined below: 34 | 35 | There are lots of different types that can be shown or suppressed: 36 | 37 | - confirm-search Ask the user before we search 38 | - confirm-deps Ask the user to agree to deps 39 | - confirm-install Ask the user before we install 40 | - progress Show the user a progress bar 41 | - finished Ask the user a finished dialog box 42 | - warning Show the user a warning 43 | 44 | These are obviously something that people may want to set per-user defaults, 45 | and so the GSettings key org.gnome.packagekit:dbus_default_interaction is 46 | provided. 47 | This sets up the default interactions used by clients unless they opt-in 48 | or opt-out of certain interactions. 49 | 50 | Of course, we do not want software silently installing things behind our back, 51 | even if they are signed and trusted. One could imagine an application hiding 52 | all the interactions do install some software silently. 53 | Another GSettings key org.gnome.packagekit:dbus_enforced_interaction is used 54 | to set modes that are absolutely required or suppressed, even when the client 55 | or defaults specify otherwise. 56 | 57 | An example: 58 | Defaults specify: 59 | show-confirm-search,show-confirm-deps,show-confirm-install,show-progress 60 | Enforced specify: 61 | show-confirm-install 62 | Client specifies: 63 | hide-confirm-install,hide-confirm-search,show-warnings 64 | 65 | The defaults are modified by the client settings to add warnings, and 66 | remove confirm-install. 67 | The admin specified confirm-install is required, so the finished interaction 68 | mode is: 69 | show-confirm-deps,show-confirm-install,show-progress,show-warnings 70 | 71 | -------------------------------------------------------------------------------- /docs/pk-test-install.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # Licensed under the GNU General Public License Version 2 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 2 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, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 | 18 | import os 19 | import dbus 20 | import pygtk 21 | pygtk.require('2.0') 22 | import gtk 23 | 24 | class SessionInstall: 25 | 26 | def install_codec(self, widget, data=None): 27 | xid = widget.window.xid 28 | timespec = gtk.get_current_event_time() 29 | try: 30 | bus = dbus.SessionBus() 31 | proxy = bus.get_object('org.freedesktop.PackageKit','/org/freedesktop/PackageKit') 32 | iface = dbus.Interface(proxy, 'org.freedesktop.PackageKit') 33 | video = ("Windows Media Video 9 decoder", "gstreamer0.10(decoder-video/x-wma)(wmaversion=3)") 34 | audio = ("Windows Media Audio 9 decoder", "gstreamer0.10(decoder-audio/x-wma)(wmaversion=3)") 35 | codecs = (video, audio) 36 | iface.InstallGStreamerCodecs(xid,timespec,codecs) 37 | except Exception, e: 38 | print "Unable to install: %s" % str(e) 39 | 40 | def install_font(self, widget, data=None): 41 | xid = widget.window.xid 42 | timespec = gtk.get_current_event_time() 43 | try: 44 | bus = dbus.SessionBus() 45 | proxy = bus.get_object('org.freedesktop.PackageKit','/org/freedesktop/PackageKit') 46 | iface = dbus.Interface(proxy, 'org.freedesktop.PackageKit') 47 | iface.InstallFont(xid,timespec,"arial;example") 48 | except Exception, e: 49 | print "Unable to install: %s" % str(e) 50 | 51 | def install_mime_type(self, widget, data=None): 52 | xid = widget.window.xid 53 | timespec = gtk.get_current_event_time() 54 | try: 55 | bus = dbus.SessionBus() 56 | proxy = bus.get_object('org.freedesktop.PackageKit','/org/freedesktop/PackageKit') 57 | iface = dbus.Interface(proxy, 'org.freedesktop.PackageKit') 58 | iface.InstallMimeType(xid,timespec,"text/plain") 59 | except Exception, e: 60 | print "Unable to install: %s" % str(e) 61 | 62 | def use_helper(self, widget, data=None): 63 | xid = widget.window.xid 64 | 65 | codecs = "" 66 | codecs = codecs + "\"" + "gstreamer|0.10|totem|Windows Media Video 9 decoder|decoder-video/x-wmv, wmvversion=(int)3, fourcc=(fourcc)WVC1, format=(fourcc)WVC1" + "\"" 67 | codecs = codecs + "\"" + "gstreamer|0.10|totem|Windows Media Audio 9 decoder|decoder-audio/x-wma, wmaversion=(int)3, bitrate=(int)192000, depth=(int)16" + "\"" 68 | codecs = codecs + "\"" + "gstreamer|0.10|totem|FOOBAR protocol source|urisource-foobar (FOOBAR protocol source)" + "\"" 69 | os.system("/home/hughsie/Desktop/gst-rpm-install --transient-for=%i %s" % (xid, codecs)); 70 | 71 | def delete_event(self, widget, event, data=None): 72 | return False 73 | 74 | def destroy(self, widget, data=None): 75 | gtk.main_quit() 76 | 77 | def __init__(self): 78 | window = gtk.Window(gtk.WINDOW_TOPLEVEL) 79 | window.connect("delete_event", self.delete_event) 80 | window.connect("destroy", self.destroy) 81 | window.set_border_width(10) 82 | window.set_title("PackageKit Session Interface Tester") 83 | window.set_icon_name("help") 84 | 85 | hbox = gtk.VBox(homogeneous=True, spacing=9) 86 | 87 | button = gtk.Button("Install Codec") 88 | button.connect("clicked", self.install_codec, None) 89 | hbox.add(button) 90 | 91 | button = gtk.Button("Install Font") 92 | button.connect("clicked", self.install_font, None) 93 | hbox.add(button) 94 | 95 | button = gtk.Button("Install Mime Type") 96 | button.connect("clicked", self.install_mime_type, None) 97 | hbox.add(button) 98 | 99 | button = gtk.Button("Use helper") 100 | button.connect("clicked", self.use_helper, None) 101 | hbox.add(button) 102 | 103 | window.add(hbox); 104 | window.show_all() 105 | 106 | def main(self): 107 | gtk.main() 108 | 109 | if __name__ == "__main__": 110 | install = SessionInstall() 111 | install.main() 112 | 113 | -------------------------------------------------------------------------------- /gnome-packagekit.doap: -------------------------------------------------------------------------------- 1 | 6 | 7 | GNOME PackageKit 8 | PackageKit GNOME Client Tools 9 | 10 | C 11 | 12 | GNOME PackageKit is the name of the collection of graphical tools 13 | for PackageKit to be used in the GNOME desktop. 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Richard Hughes 22 | 23 | 24 | rhughes 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /man/gpk-application.sgml: -------------------------------------------------------------------------------- 1 | 3 | 11 April,2008"> 4 | 5 | GNU"> 6 | GPL"> 7 | ]> 8 | 9 | 10 | 11 |
12 | richard@hughsie.com; 13 |
14 | 15 | Richard 16 | Hughes 17 | 18 | 19 | 2008-2013 20 | Richard Hughes 21 | 22 | &date; 23 |
24 | 25 | gpk-application 26 | 1 27 | 28 | 29 | &package; 30 | GNOME PackageKit Package Application 31 | 32 | 33 | 34 | &package; 35 | 36 | 37 | 38 | 39 | DESCRIPTION 40 | 41 | This manual page documents briefly the &package; command. 42 | 43 | 44 | &package; allows you to install and remove packages. 45 | 46 | 47 | 48 | SEE ALSO 49 | gpk-log (1). 50 | gpk-install-catalog (1). 51 | gpk-dbus-service (1). 52 | gpk-update-viewer (1). 53 | 54 | 55 | AUTHOR 56 | This manual page was written by Richard Hughes richard@hughsie.com. 57 | 58 | 59 |
60 | 61 | 77 | 78 | -------------------------------------------------------------------------------- /man/gpk-log.sgml: -------------------------------------------------------------------------------- 1 | 3 | 11 April,2008"> 4 | 5 | GNU"> 6 | GPL"> 7 | ]> 8 | 9 | 10 | 11 |
12 | richard@hughsie.com; 13 |
14 | 15 | Richard 16 | Hughes 17 | 18 | 19 | 2008-2013 20 | Richard Hughes 21 | 22 | &date; 23 |
24 | 25 | gpk-log 26 | 1 27 | 28 | 29 | &package; 30 | GNOME PackageKit Software Log Viewer 31 | 32 | 33 | 34 | &package; 35 | 36 | 37 | 38 | 39 | DESCRIPTION 40 | 41 | This manual page documents briefly the &package; command. 42 | 43 | 44 | &package; allows you to view the software log. 45 | 46 | 47 | 48 | SEE ALSO 49 | gpk-application (1). 50 | gpk-log (2). 51 | gpk-dbus-service (3). 52 | gpk-update-viewer (4). 53 | 54 | 55 | AUTHOR 56 | This manual page was written by Richard Hughes richard@hughsie.com. 57 | 58 | 59 |
60 | 61 | 77 | 78 | -------------------------------------------------------------------------------- /man/gpk-prefs.sgml: -------------------------------------------------------------------------------- 1 | 3 | 11 April,2008"> 4 | 5 | GNU"> 6 | GPL"> 7 | ]> 8 | 9 | 10 | 11 |
12 | richard@hughsie.com; 13 |
14 | 15 | Richard 16 | Hughes 17 | 18 | 19 | 2008-2013 20 | Richard Hughes 21 | 22 | &date; 23 |
24 | 25 | gpk-prefs 26 | 1 27 | 28 | 29 | &package; 30 | GNOME PackageKit Update Preferences 31 | 32 | 33 | 34 | &package; 35 | 36 | 37 | 38 | 39 | DESCRIPTION 40 | 41 | This manual page documents briefly the &package; command. 42 | 43 | 44 | &package; allows you to change preferences for keeping your system up to 45 | date. 46 | 47 | 48 | 49 | SEE ALSO 50 | gpk-dbus-service (1). 51 | gpk-update-viewer (2). 52 | gpk-application (3). 53 | gpk-install-catalog (4). 54 | 55 | 56 | AUTHOR 57 | This manual page was written by Richard Hughes richard@hughsie.com. 58 | 59 | 60 |
61 | 62 | 78 | 79 | -------------------------------------------------------------------------------- /man/gpk-update-viewer.sgml: -------------------------------------------------------------------------------- 1 | 3 | 11 April,2008"> 4 | 5 | GNU"> 6 | GPL"> 7 | ]> 8 | 9 | 10 | 11 |
12 | richard@hughsie.com; 13 |
14 | 15 | Richard 16 | Hughes 17 | 18 | 19 | 2008-2013 20 | Richard Hughes 21 | 22 | &date; 23 |
24 | 25 | gpk-update-viewer 26 | 1 27 | 28 | 29 | &package; 30 | GNOME PackageKit Update Viewer 31 | 32 | 33 | 34 | &package; 35 | 36 | 37 | 38 | 39 | DESCRIPTION 40 | 41 | This manual page documents briefly the &package; command. 42 | 43 | 44 | &package; allows you to view and select updates to install. 45 | the system. 46 | 47 | 48 | 49 | SEE ALSO 50 | gpk-dbus-service (1). 51 | gpk-log (2). 52 | gpk-install-catalog (3). 53 | 54 | 55 | AUTHOR 56 | This manual page was written by Richard Hughes richard@hughsie.com. 57 | 58 | 59 |
60 | 61 | 77 | 78 | -------------------------------------------------------------------------------- /man/meson.build: -------------------------------------------------------------------------------- 1 | docbook2man = find_program('docbook2man', required : false) 2 | if docbook2man.found() 3 | custom_target('gpk-application-man', 4 | output : 'gpk-application.1', 5 | input : 'gpk-application.sgml', 6 | command : [docbook2man, '@INPUT@', '--output', 'man'], 7 | install : true, 8 | install_dir : 'share/man/man1' 9 | ) 10 | custom_target('gpk-log-man', 11 | output : 'gpk-log.1', 12 | input : 'gpk-log.sgml', 13 | command : [docbook2man, '@INPUT@', '--output', 'man'], 14 | install : true, 15 | install_dir : 'share/man/man1' 16 | ) 17 | custom_target('gpk-prefs-man', 18 | output : 'gpk-prefs.1', 19 | input : 'gpk-prefs.sgml', 20 | command : [docbook2man, '@INPUT@', '--output', 'man'], 21 | install : true, 22 | install_dir : 'share/man/man1' 23 | ) 24 | custom_target('gpk-update-viewer-man', 25 | output : 'gpk-update-viewer.1', 26 | input : 'gpk-update-viewer.sgml', 27 | command : [docbook2man, '@INPUT@', '--output', 'man'], 28 | install : true, 29 | install_dir : 'share/man/man1' 30 | ) 31 | endif 32 | -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Richard Hughes 2 | # 3 | # Licensed under the GNU General Public License Version 2 or later 4 | project('gnome-packagekit', 'c', 5 | version : '43.1', 6 | default_options : ['warning_level=1'], 7 | meson_version : '>=0.46.0' 8 | ) 9 | 10 | conf = configuration_data() 11 | conf.set_quoted('PACKAGE_VERSION', meson.project_version()) 12 | conf.set_quoted('VERSION', meson.project_version()) 13 | 14 | if get_option('small-form-factor') 15 | conf.set('PK_BUILD_SMALL_FORM_FACTOR', '1') 16 | endif 17 | 18 | # get suported warning flags 19 | test_args = [ 20 | '-Waggregate-return', 21 | '-Warray-bounds', 22 | '-Wcast-align', 23 | '-Wclobbered', 24 | '-Wdeclaration-after-statement', 25 | '-Wempty-body', 26 | '-Wextra', 27 | '-Wformat=2', 28 | '-Wformat-nonliteral', 29 | '-Wformat-security', 30 | '-Wignored-qualifiers', 31 | '-Wimplicit-function-declaration', 32 | '-Winit-self', 33 | '-Winline', 34 | '-Wmissing-declarations', 35 | '-Wmissing-format-attribute', 36 | '-Wmissing-include-dirs', 37 | '-Wmissing-noreturn', 38 | '-Wmissing-parameter-type', 39 | '-Wmissing-prototypes', 40 | '-Wnested-externs', 41 | '-Wno-discarded-qualifiers', 42 | '-Wno-missing-field-initializers', 43 | '-Wno-strict-aliasing', 44 | '-Wno-suggest-attribute=format', 45 | '-Wno-unused-parameter', 46 | '-Wold-style-definition', 47 | '-Woverride-init', 48 | '-Wpacked', 49 | '-Wpointer-arith', 50 | '-Wredundant-decls', 51 | '-Wreturn-type', 52 | '-Wshadow', 53 | '-Wstrict-aliasing', 54 | '-Wstrict-prototypes', 55 | '-Wswitch-default', 56 | '-Wtype-limits', 57 | '-Wundef', 58 | '-Wuninitialized', 59 | '-Wunused-but-set-variable', 60 | '-Wwrite-strings' 61 | ] 62 | cc = meson.get_compiler('c') 63 | foreach arg: test_args 64 | if cc.has_argument(arg) 65 | add_project_arguments(arg, language : 'c') 66 | endif 67 | endforeach 68 | 69 | # enable full RELRO where possible 70 | # FIXME: until https://github.com/mesonbuild/meson/issues/1140 is fixed 71 | global_link_args = [] 72 | test_link_args = [ 73 | '-Wl,-z,relro', 74 | '-Wl,-z,now', 75 | ] 76 | foreach arg: test_link_args 77 | if cc.has_link_argument(arg) 78 | add_project_link_arguments(arg, language : 'c') 79 | endif 80 | endforeach 81 | 82 | gio = dependency('gio-2.0', version : '>= 2.56') 83 | gtk = dependency('gtk+-3.0', version : '>= 3.24') 84 | packagekit = dependency('packagekit-glib2', version : '>= 0.9.1') 85 | libm = cc.find_library('libm', required: false) 86 | 87 | if get_option('systemd') 88 | systemd = dependency('libsystemd') 89 | conf.set('HAVE_SYSTEMD', 1) 90 | polkit = dependency('polkit-gobject-1') 91 | endif 92 | 93 | add_project_arguments('-DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE', 94 | language : 'c') 95 | 96 | gnome = import('gnome') 97 | i18n = import('i18n') 98 | 99 | conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) 100 | conf.set_quoted('LOCALEDIR', 101 | join_paths(get_option('prefix'), 102 | get_option('localedir'))) 103 | conf.set_quoted('DATADIR', 104 | join_paths(get_option('prefix'), 105 | get_option('datadir'))) 106 | conf.set_quoted('BINDIR', 107 | join_paths(get_option('prefix'), 108 | get_option('bindir'))) 109 | conf.set_quoted('PKGDATADIR', 110 | join_paths(get_option('prefix'), 111 | get_option('datadir'), 112 | 'gnome-packagekit')) 113 | configure_file( 114 | output : 'config.h', 115 | configuration : conf 116 | ) 117 | 118 | subdir('man') 119 | subdir('src') 120 | subdir('po') 121 | subdir('data') 122 | 123 | if meson.version().version_compare('<0.41.0') 124 | archiver = find_program('git', required : false) 125 | if archiver.found() 126 | run_target('dist', 127 | # git config tar.tar.xz.command "xz -c" 128 | command: [ 129 | 'git', 'archive', 130 | '--prefix=' + meson.project_name() + '-' + meson.project_version() + '/', 131 | 'HEAD', 132 | '--format=tar.xz', 133 | '--output', 134 | meson.project_name() + '-' + meson.project_version() + '.tar.xz' 135 | ] 136 | ) 137 | else 138 | message('git not found, you will not be able to run `ninja dist`') 139 | endif 140 | endif 141 | 142 | ascli_exe = find_program('appstreamcli', required: false) 143 | if ascli_exe.found() 144 | custom_target('NEWS', 145 | output : 'NEWS', 146 | input : 'data/metainfo/org.gnome.Packages.metainfo.xml.in', 147 | command : [ascli_exe, 'metainfo-to-news', 148 | '--format=text', 149 | '@INPUT@', 150 | '-'], 151 | capture : true 152 | ) 153 | endif 154 | 155 | # FIXME: remove when https://github.com/mesonbuild/meson/issues/837 fixed 156 | meson.add_install_script('meson_post_install.sh') 157 | -------------------------------------------------------------------------------- /meson_options.txt: -------------------------------------------------------------------------------- 1 | option('tests', type : 'boolean', value : true, description : 'enable tests') 2 | option('small-form-factor', type : 'boolean', value : true, description : 'enable small form factor mode') 3 | option('systemd', type : 'boolean', value : true, description : 'if systemd is used for session tracking') 4 | -------------------------------------------------------------------------------- /meson_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -z $MESON_INSTALL_PREFIX ]; then 3 | echo 'This is meant to be ran from Meson only!' 4 | exit 1 5 | fi 6 | 7 | if [ -z $DESTDIR ]; then 8 | echo 'Compiling GSchema' 9 | glib-compile-schemas "$MESON_INSTALL_PREFIX/share/glib-2.0/schemas" 10 | echo 'Updating icon cache' 11 | gtk-update-icon-cache -qtf "$MESON_INSTALL_PREFIX/share/icons/hicolor" 12 | echo 'Updating desktop database' 13 | update-desktop-database -q "$MESON_INSTALL_PREFIX/share/applications" 14 | fi 15 | -------------------------------------------------------------------------------- /po/.gitignore: -------------------------------------------------------------------------------- 1 | boldquot.sed 2 | en@boldquot.header 3 | en@quot.header 4 | *.gmo 5 | insert-header.sin 6 | Makefile 7 | Makefile.in 8 | Makefile.in.in 9 | Makefile.in.in~ 10 | Makevars.template 11 | *.po~ 12 | *.pot 13 | POTFILES 14 | quot.sed 15 | remove-potcdate.sed 16 | remove-potcdate.sin 17 | Rules-quot 18 | stamp-it 19 | stamp-po 20 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | af 2 | an 3 | ar 4 | as 5 | ast 6 | be 7 | bg 8 | bn 9 | bn_IN 10 | bs 11 | ca 12 | ca@valencia 13 | cs 14 | cy 15 | da 16 | de 17 | el 18 | en_GB 19 | en@shaw 20 | eo 21 | es 22 | et 23 | eu 24 | fa 25 | fi 26 | fr 27 | fur 28 | ga 29 | gl 30 | gu 31 | he 32 | hi 33 | hr 34 | hu 35 | id 36 | is 37 | it 38 | ja 39 | ka 40 | kk 41 | kn 42 | ko 43 | lt 44 | lv 45 | mk 46 | ml 47 | mr 48 | ms 49 | nb 50 | ne 51 | nl 52 | nn 53 | oc 54 | or 55 | pa 56 | pl 57 | pt_BR 58 | pt 59 | ro 60 | ru 61 | sk 62 | sl 63 | sr 64 | sr@latin 65 | sv 66 | ta 67 | te 68 | tg 69 | th 70 | tr 71 | ug 72 | uk 73 | vi 74 | zh_CN 75 | zh_HK 76 | zh_TW 77 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | data/metainfo/org.gnome.Packages.metainfo.xml.in 2 | data/metainfo/org.gnome.PackageUpdater.metainfo.xml.in 3 | data/org.gnome.Packages.desktop.in 4 | src/gpk-application.ui 5 | src/gpk-client.ui 6 | src/gpk-error.ui 7 | src/gpk-eula.ui 8 | data/gpk-log.desktop.in 9 | src/gpk-log.ui 10 | data/gpk-prefs.desktop.in 11 | src/gpk-prefs.ui 12 | src/gpk-signature.ui 13 | data/org.gnome.PackageUpdater.desktop.in 14 | src/gpk-update-viewer.ui 15 | data/org.gnome.packagekit.gschema.xml 16 | src/gpk-application.c 17 | src/gpk-common.c 18 | src/gpk-debug.c 19 | src/gpk-dialog.c 20 | src/gpk-enum.c 21 | src/gpk-error.c 22 | src/gpk-log.c 23 | src/gpk-prefs.c 24 | src/gpk-task.c 25 | src/gpk-update-viewer.c 26 | -------------------------------------------------------------------------------- /po/POTFILES.skip: -------------------------------------------------------------------------------- 1 | python/packagekit/genums.py 2 | 3 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | i18n.gettext(meson.project_name(), 2 | preset : 'glib', 3 | args: [ 4 | '--default-domain=' + meson.project_name() 5 | ] 6 | ) 7 | -------------------------------------------------------------------------------- /src/gpk-application.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | gpk-client.ui 5 | gpk-error.ui 6 | gpk-eula.ui 7 | gpk-signature.ui 8 | gpk-application.ui 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/gpk-cell-renderer-info.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include "config.h" 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #include "gpk-enum.h" 30 | #include "gpk-cell-renderer-info.h" 31 | 32 | struct _GpkCellRendererInfo 33 | { 34 | GtkCellRendererPixbuf parent_instance; 35 | GPtrArray *array; 36 | PkInfoEnum value; 37 | const gchar *icon_name; 38 | GPtrArray *ignore; 39 | }; 40 | 41 | enum { 42 | PROP_0, 43 | PROP_VALUE, 44 | PROP_IGNORE_VALUES 45 | }; 46 | 47 | G_DEFINE_TYPE (GpkCellRendererInfo, gpk_cell_renderer_info, GTK_TYPE_CELL_RENDERER_PIXBUF) 48 | 49 | static gpointer parent_class = NULL; 50 | 51 | static void 52 | gpk_cell_renderer_info_get_property (GObject *object, guint param_id, 53 | GValue *value, GParamSpec *pspec) 54 | { 55 | GpkCellRendererInfo *cru = GPK_CELL_RENDERER_INFO (object); 56 | 57 | switch (param_id) { 58 | case PROP_VALUE: 59 | g_value_set_uint (value, cru->value); 60 | break; 61 | default: 62 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); 63 | break; 64 | } 65 | } 66 | 67 | static gboolean 68 | gpk_cell_renderer_should_show (GpkCellRendererInfo *cru) 69 | { 70 | guint i; 71 | GPtrArray *array; 72 | PkInfoEnum info; 73 | 74 | /* are we in the ignore array */ 75 | array = cru->ignore; 76 | for (i = 0; i < array->len; i++) { 77 | info = GPOINTER_TO_UINT (g_ptr_array_index (array, i)); 78 | if (info == cru->value) 79 | return FALSE; 80 | } 81 | return TRUE; 82 | } 83 | 84 | static void 85 | gpk_cell_renderer_info_set_property (GObject *object, guint param_id, 86 | const GValue *value, GParamSpec *pspec) 87 | { 88 | const gchar *text; 89 | g_auto(GStrv) split = NULL; 90 | gboolean ret; 91 | guint i; 92 | PkInfoEnum info; 93 | GpkCellRendererInfo *cru = GPK_CELL_RENDERER_INFO (object); 94 | 95 | switch (param_id) { 96 | case PROP_VALUE: 97 | cru->value = g_value_get_uint (value); 98 | ret = gpk_cell_renderer_should_show (cru); 99 | if (!ret) { 100 | g_object_set (cru, "icon-name", NULL, NULL); 101 | } else { 102 | cru->icon_name = gpk_info_status_enum_to_icon_name ((GpkInfoStatusEnum) cru->value); 103 | g_object_set (cru, "icon-name", cru->icon_name, NULL); 104 | } 105 | break; 106 | case PROP_IGNORE_VALUES: 107 | /* split up ignore values */ 108 | text = g_value_get_string (value); 109 | split = g_strsplit (text, ",", -1); 110 | for (i=0; split[i] != NULL; i++) { 111 | info = pk_info_enum_from_string (split[i]); 112 | g_ptr_array_add (cru->ignore, GUINT_TO_POINTER (info)); 113 | } 114 | break; 115 | default: 116 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); 117 | break; 118 | } 119 | } 120 | 121 | static void 122 | gpk_cell_renderer_finalize (GObject *object) 123 | { 124 | GpkCellRendererInfo *cru; 125 | cru = GPK_CELL_RENDERER_INFO (object); 126 | g_ptr_array_free (cru->ignore, TRUE); 127 | G_OBJECT_CLASS (parent_class)->finalize (object); 128 | } 129 | 130 | static void 131 | gpk_cell_renderer_info_class_init (GpkCellRendererInfoClass *class) 132 | { 133 | GObjectClass *object_class = G_OBJECT_CLASS (class); 134 | object_class->finalize = gpk_cell_renderer_finalize; 135 | 136 | parent_class = g_type_class_peek_parent (class); 137 | 138 | object_class->get_property = gpk_cell_renderer_info_get_property; 139 | object_class->set_property = gpk_cell_renderer_info_set_property; 140 | 141 | g_object_class_install_property (object_class, PROP_VALUE, 142 | g_param_spec_uint ("value", "VALUE", 143 | "VALUE", 0, G_MAXUINT, PK_INFO_ENUM_UNKNOWN, G_PARAM_READWRITE)); 144 | g_object_class_install_property (object_class, PROP_IGNORE_VALUES, 145 | g_param_spec_string ("ignore-values", "IGNORE-VALUES", 146 | "IGNORE-VALUES", "unknown", G_PARAM_WRITABLE)); 147 | } 148 | 149 | static void 150 | gpk_cell_renderer_info_init (GpkCellRendererInfo *cru) 151 | { 152 | cru->value = PK_INFO_ENUM_UNKNOWN; 153 | cru->ignore = g_ptr_array_new (); 154 | } 155 | 156 | GtkCellRenderer * 157 | gpk_cell_renderer_info_new (void) 158 | { 159 | return g_object_new (GPK_TYPE_CELL_RENDERER_INFO, NULL); 160 | } 161 | 162 | -------------------------------------------------------------------------------- /src/gpk-cell-renderer-info.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef GPK_CELL_RENDERER_INFO_H 23 | #define GPK_CELL_RENDERER_INFO_H 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define GPK_TYPE_CELL_RENDERER_INFO (gpk_cell_renderer_info_get_type()) 32 | G_DECLARE_FINAL_TYPE (GpkCellRendererInfo, gpk_cell_renderer_info, GPK, CELL_RENDERER_INFO, GtkCellRendererPixbuf) 33 | 34 | GtkCellRenderer *gpk_cell_renderer_info_new (void); 35 | 36 | G_END_DECLS 37 | 38 | #endif /* GPK_CELL_RENDERER_INFO_H */ 39 | 40 | -------------------------------------------------------------------------------- /src/gpk-cell-renderer-restart.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include "config.h" 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #include "gpk-enum.h" 30 | #include "gpk-cell-renderer-restart.h" 31 | 32 | struct _GpkCellRendererRestart 33 | { 34 | GtkCellRendererPixbuf parent_instance; 35 | PkRestartEnum value; 36 | const gchar *icon_name; 37 | }; 38 | 39 | enum { 40 | PROP_0, 41 | PROP_VALUE 42 | }; 43 | 44 | G_DEFINE_TYPE (GpkCellRendererRestart, gpk_cell_renderer_restart, GTK_TYPE_CELL_RENDERER_PIXBUF) 45 | 46 | static gpointer parent_class = NULL; 47 | 48 | static void 49 | gpk_cell_renderer_restart_get_property (GObject *object, guint param_id, 50 | GValue *value, GParamSpec *pspec) 51 | { 52 | GpkCellRendererRestart *cru = GPK_CELL_RENDERER_RESTART (object); 53 | 54 | switch (param_id) { 55 | case PROP_VALUE: 56 | g_value_set_uint (value, cru->value); 57 | break; 58 | default: 59 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); 60 | break; 61 | } 62 | } 63 | 64 | static void 65 | gpk_cell_renderer_restart_set_property (GObject *object, guint param_id, 66 | const GValue *value, GParamSpec *pspec) 67 | { 68 | GpkCellRendererRestart *cru = GPK_CELL_RENDERER_RESTART (object); 69 | 70 | switch (param_id) { 71 | case PROP_VALUE: 72 | cru->value = g_value_get_uint (value); 73 | cru->icon_name = gpk_restart_enum_to_icon_name (cru->value); 74 | g_object_set (cru, "icon-name", cru->icon_name, NULL); 75 | break; 76 | default: 77 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); 78 | break; 79 | } 80 | } 81 | 82 | static void 83 | gpk_cell_renderer_finalize (GObject *object) 84 | { 85 | G_OBJECT_CLASS (parent_class)->finalize (object); 86 | } 87 | 88 | static void 89 | gpk_cell_renderer_restart_class_init (GpkCellRendererRestartClass *class) 90 | { 91 | GObjectClass *object_class = G_OBJECT_CLASS (class); 92 | object_class->finalize = gpk_cell_renderer_finalize; 93 | 94 | parent_class = g_type_class_peek_parent (class); 95 | 96 | object_class->get_property = gpk_cell_renderer_restart_get_property; 97 | object_class->set_property = gpk_cell_renderer_restart_set_property; 98 | 99 | g_object_class_install_property (object_class, PROP_VALUE, 100 | g_param_spec_uint ("value", "VALUE", 101 | "VALUE", 0, G_MAXUINT, PK_RESTART_ENUM_NONE, G_PARAM_READWRITE)); 102 | } 103 | 104 | static void 105 | gpk_cell_renderer_restart_init (GpkCellRendererRestart *cru) 106 | { 107 | cru->value = PK_RESTART_ENUM_NONE; 108 | } 109 | 110 | GtkCellRenderer * 111 | gpk_cell_renderer_restart_new (void) 112 | { 113 | return g_object_new (GPK_TYPE_CELL_RENDERER_RESTART, NULL); 114 | } 115 | 116 | -------------------------------------------------------------------------------- /src/gpk-cell-renderer-restart.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef GPK_CELL_RENDERER_RESTART_H 23 | #define GPK_CELL_RENDERER_RESTART_H 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define GPK_TYPE_CELL_RENDERER_RESTART (gpk_cell_renderer_restart_get_type()) 32 | G_DECLARE_FINAL_TYPE (GpkCellRendererRestart, gpk_cell_renderer_restart, GPK, CELL_RENDERER_RESTART, GtkCellRendererPixbuf) 33 | 34 | GtkCellRenderer *gpk_cell_renderer_restart_new (void); 35 | 36 | G_END_DECLS 37 | 38 | #endif /* GPK_CELL_RENDERER_RESTART_H */ 39 | 40 | -------------------------------------------------------------------------------- /src/gpk-cell-renderer-size.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include "config.h" 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "gpk-cell-renderer-size.h" 29 | 30 | struct _GpkCellRendererSize 31 | { 32 | GtkCellRendererText parent_instance; 33 | guint value; 34 | gchar *markup; 35 | }; 36 | 37 | enum { 38 | PROP_0, 39 | PROP_VALUE 40 | }; 41 | 42 | G_DEFINE_TYPE (GpkCellRendererSize, gpk_cell_renderer_size, GTK_TYPE_CELL_RENDERER_TEXT) 43 | 44 | static gpointer parent_class = NULL; 45 | 46 | static void 47 | gpk_cell_renderer_size_get_property (GObject *object, guint param_id, 48 | GValue *value, GParamSpec *pspec) 49 | { 50 | GpkCellRendererSize *cru = GPK_CELL_RENDERER_SIZE (object); 51 | 52 | switch (param_id) { 53 | case PROP_VALUE: 54 | g_value_set_uint (value, cru->value); 55 | break; 56 | default: 57 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); 58 | break; 59 | } 60 | } 61 | 62 | static void 63 | gpk_cell_renderer_size_set_property (GObject *object, guint param_id, 64 | const GValue *value, GParamSpec *pspec) 65 | { 66 | GpkCellRendererSize *cru = GPK_CELL_RENDERER_SIZE (object); 67 | 68 | switch (param_id) { 69 | case PROP_VALUE: 70 | cru->value = g_value_get_uint (value); 71 | g_free (cru->markup); 72 | cru->markup = g_format_size (cru->value); 73 | g_object_set (cru, "markup", cru->markup, NULL); 74 | 75 | /* if the size is zero, we hide the markup */ 76 | g_object_set (cru, "visible", (cru->value != 0), NULL); 77 | break; 78 | default: 79 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); 80 | break; 81 | } 82 | } 83 | 84 | static void 85 | gpk_cell_renderer_finalize (GObject *object) 86 | { 87 | GpkCellRendererSize *cru; 88 | cru = GPK_CELL_RENDERER_SIZE (object); 89 | g_free (cru->markup); 90 | G_OBJECT_CLASS (parent_class)->finalize (object); 91 | } 92 | 93 | static void 94 | gpk_cell_renderer_size_class_init (GpkCellRendererSizeClass *class) 95 | { 96 | GObjectClass *object_class = G_OBJECT_CLASS (class); 97 | object_class->finalize = gpk_cell_renderer_finalize; 98 | 99 | parent_class = g_type_class_peek_parent (class); 100 | 101 | object_class->get_property = gpk_cell_renderer_size_get_property; 102 | object_class->set_property = gpk_cell_renderer_size_set_property; 103 | 104 | g_object_class_install_property (object_class, PROP_VALUE, 105 | g_param_spec_uint ("value", "VALUE", 106 | "VALUE", 0, G_MAXUINT, 0, G_PARAM_READWRITE)); 107 | } 108 | 109 | static void 110 | gpk_cell_renderer_size_init (GpkCellRendererSize *cru) 111 | { 112 | } 113 | 114 | GtkCellRenderer * 115 | gpk_cell_renderer_size_new (void) 116 | { 117 | return g_object_new (GPK_TYPE_CELL_RENDERER_SIZE, NULL); 118 | } 119 | 120 | -------------------------------------------------------------------------------- /src/gpk-cell-renderer-size.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef GPK_CELL_RENDERER_SIZE_H 23 | #define GPK_CELL_RENDERER_SIZE_H 24 | 25 | #include 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define GPK_TYPE_CELL_RENDERER_SIZE (gpk_cell_renderer_size_get_type()) 31 | G_DECLARE_FINAL_TYPE (GpkCellRendererSize, gpk_cell_renderer_size, GPK, CELL_RENDERER_SIZE, GtkCellRendererText) 32 | 33 | GtkCellRenderer *gpk_cell_renderer_size_new (void); 34 | 35 | G_END_DECLS 36 | 37 | #endif /* GPK_CELL_RENDERER_SIZE_H */ 38 | 39 | -------------------------------------------------------------------------------- /src/gpk-common.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007-2008 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __GPK_COMMON_H 23 | #define __GPK_COMMON_H 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "gpk-enum.h" 30 | 31 | G_BEGIN_DECLS 32 | 33 | #define GPK_SETTINGS_SCHEMA "org.gnome.packagekit" 34 | #define GPK_SETTINGS_CATEGORY_GROUPS "category-groups" 35 | #define GPK_SETTINGS_DBUS_DEFAULT_INTERACTION "dbus-default-interaction" 36 | #define GPK_SETTINGS_DBUS_ENFORCED_INTERACTION "dbus-enforced-interaction" 37 | #define GPK_SETTINGS_ENABLE_AUTOREMOVE "enable-autoremove" 38 | #define GPK_SETTINGS_ENABLE_CODEC_HELPER "enable-codec-helper" 39 | #define GPK_SETTINGS_ENABLE_FONT_HELPER "enable-font-helper" 40 | #define GPK_SETTINGS_ENABLE_MIME_TYPE_HELPER "enable-mime-type-helper" 41 | #define GPK_SETTINGS_FILTER_ARCH "filter-arch" 42 | #define GPK_SETTINGS_FILTER_BASENAME "filter-basename" 43 | #define GPK_SETTINGS_FILTER_NEWEST "filter-newest" 44 | #define GPK_SETTINGS_FILTER_SUPPORTED "filter-supported" 45 | #define GPK_SETTINGS_IGNORED_DBUS_REQUESTS "ignored-dbus-requests" 46 | #define GPK_SETTINGS_ONLY_NEWEST "only-newest" 47 | #define GPK_SETTINGS_REPO_SHOW_DETAILS "repo-show-details" 48 | #define GPK_SETTINGS_SCROLL_ACTIVE "scroll-active" 49 | #define GPK_SETTINGS_SEARCH_MODE "search-mode" 50 | #define GPK_SETTINGS_SHOW_ALL_PACKAGES "show-all-packages" 51 | #define GPK_SETTINGS_SHOW_DEPENDS "show-depends" 52 | 53 | #define GPK_ICON_SOFTWARE_UPDATE "system-software-update" 54 | #define GPK_ICON_SOFTWARE_SOURCES "gpk-repo" 55 | #define GPK_ICON_SOFTWARE_INSTALLER "system-software-install" 56 | #define GPK_ICON_SOFTWARE_LOG "gpk-log" 57 | #define GPK_ICON_SOFTWARE_UPDATE_PREFS "gpk-prefs" 58 | 59 | /* any status that is slower than this will not be shown in the UI */ 60 | #define GPK_UI_STATUS_SHOW_DELAY 750 /* ms */ 61 | 62 | gchar *gpk_package_id_format_twoline (GtkStyleContext *style, 63 | const gchar *package_id, 64 | const gchar *summary); 65 | gchar *gpk_package_id_format_oneline (const gchar *package_id, 66 | const gchar *summary); 67 | gboolean gpk_check_privileged_user (const gchar *application_name, 68 | gboolean show_ui); 69 | gchar *gpk_strv_join_locale (gchar **array); 70 | gboolean gpk_window_set_size_request (GtkWindow *window, 71 | gint width, 72 | gint height); 73 | gboolean gpk_window_set_parent_xid (GtkWindow *window, 74 | guint32 xid); 75 | GPtrArray *pk_strv_to_ptr_array (gchar **array) 76 | G_GNUC_WARN_UNUSED_RESULT; 77 | 78 | G_END_DECLS 79 | 80 | #endif /* __GPK_COMMON_H */ 81 | -------------------------------------------------------------------------------- /src/gpk-debug.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2010 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | #include 27 | 28 | #include "config.h" 29 | 30 | static gboolean _verbose = FALSE; 31 | static gboolean _console = FALSE; 32 | 33 | static void 34 | gpk_debug_ignore_cb (const gchar *log_domain, GLogLevelFlags log_level, 35 | const gchar *message, gpointer user_data) 36 | { 37 | } 38 | 39 | #define CONSOLE_RESET 0 40 | #define CONSOLE_BLACK 30 41 | #define CONSOLE_RED 31 42 | #define CONSOLE_GREEN 32 43 | #define CONSOLE_YELLOW 33 44 | #define CONSOLE_BLUE 34 45 | #define CONSOLE_MAGENTA 35 46 | #define CONSOLE_CYAN 36 47 | #define CONSOLE_WHITE 37 48 | 49 | #define GPK_DEBUG_LOG_DOMAIN_LENGTH 20 50 | 51 | static void 52 | gpk_debug_handler_cb (const gchar *log_domain, GLogLevelFlags log_level, 53 | const gchar *message, gpointer user_data) 54 | { 55 | gchar str_time[255]; 56 | time_t the_time; 57 | guint len; 58 | guint i; 59 | 60 | /* time header */ 61 | time (&the_time); 62 | strftime (str_time, 254, "%H:%M:%S", localtime (&the_time)); 63 | 64 | /* no color please, we're British */ 65 | if (!_console) { 66 | if (log_level == G_LOG_LEVEL_DEBUG) { 67 | g_print ("%s\t%s\t%s\n", str_time, log_domain, message); 68 | } else { 69 | g_print ("***\n%s\t%s\t%s\n***\n", str_time, log_domain, message); 70 | } 71 | return; 72 | } 73 | 74 | /* time in green */ 75 | g_print ("%c[%dm%s\t", 0x1B, CONSOLE_GREEN, str_time); 76 | 77 | /* log domain in either blue */ 78 | if (g_strcmp0 (log_domain, G_LOG_DOMAIN) == 0) 79 | g_print ("%c[%dm%s%c[%dm", 0x1B, CONSOLE_BLUE, log_domain, 0x1B, CONSOLE_RESET); 80 | else 81 | g_print ("%c[%dm%s%c[%dm", 0x1B, CONSOLE_CYAN, log_domain, 0x1B, CONSOLE_RESET); 82 | 83 | /* pad with spaces */ 84 | len = strlen (log_domain); 85 | for (i=len; i 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __GPK_DEBUG_H__ 23 | #define __GPK_DEBUG_H__ 24 | 25 | #include 26 | 27 | GOptionGroup *gpk_debug_get_option_group (void); 28 | void gpk_debug_add_log_domain (const gchar *log_domain); 29 | 30 | #endif /* __GPK_DEBUG_H__ */ 31 | -------------------------------------------------------------------------------- /src/gpk-dialog.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __GPK_DIALOG_H 23 | #define __GPK_DIALOG_H 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | gboolean gpk_dialog_embed_package_list_widget (GtkDialog *dialog, 32 | GPtrArray *array); 33 | gboolean gpk_dialog_embed_file_list_widget (GtkDialog *dialog, 34 | GPtrArray *files); 35 | gboolean gpk_dialog_embed_do_not_show_widget (GtkDialog *dialog, 36 | const gchar *key); 37 | gchar *gpk_dialog_package_id_name_join_locale (gchar **package_ids); 38 | gboolean gpk_dialog_embed_tabbed_widget (GtkDialog *dialog, 39 | GtkNotebook *tabbed_widget); 40 | gboolean gpk_dialog_tabbed_package_list_widget (GtkWidget *tab_page, 41 | GPtrArray *array); 42 | gboolean gpk_dialog_tabbed_download_size_widget (GtkWidget *tab_page, 43 | const gchar *title, 44 | guint64 size); 45 | 46 | G_END_DECLS 47 | 48 | #endif /* __GPK_DIALOG_H */ 49 | -------------------------------------------------------------------------------- /src/gpk-enum.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007-2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __GPK_ENUM_H 23 | #define __GPK_ENUM_H 24 | 25 | #include 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | /** 31 | * GpkUpdateEnum: 32 | * 33 | * The update type 34 | **/ 35 | typedef enum { 36 | GPK_UPDATE_ENUM_ALL, 37 | GPK_UPDATE_ENUM_SECURITY, 38 | GPK_UPDATE_ENUM_NONE, 39 | GPK_UPDATE_ENUM_UNKNOWN 40 | } GpkUpdateEnum; 41 | 42 | typedef enum { 43 | GPK_INFO_ENUM_DOWNLOADING = PK_INFO_ENUM_DOWNLOADING, 44 | GPK_INFO_ENUM_UPDATING = PK_INFO_ENUM_UPDATING, 45 | GPK_INFO_ENUM_INSTALLING = PK_INFO_ENUM_INSTALLING, 46 | GPK_INFO_ENUM_REMOVING = PK_INFO_ENUM_REMOVING, 47 | GPK_INFO_ENUM_CLEANUP = PK_INFO_ENUM_CLEANUP, 48 | GPK_INFO_ENUM_OBSOLETING = PK_INFO_ENUM_OBSOLETING, 49 | GPK_INFO_ENUM_DOWNLOADED = PK_INFO_ENUM_UNKNOWN + PK_INFO_ENUM_DOWNLOADING, 50 | GPK_INFO_ENUM_UPDATED = PK_INFO_ENUM_UNKNOWN + PK_INFO_ENUM_UPDATING, 51 | GPK_INFO_ENUM_INSTALLED = PK_INFO_ENUM_UNKNOWN + PK_INFO_ENUM_INSTALLING, 52 | GPK_INFO_ENUM_REMOVED = PK_INFO_ENUM_UNKNOWN + PK_INFO_ENUM_REMOVING, 53 | GPK_INFO_ENUM_CLEANEDUP = PK_INFO_ENUM_UNKNOWN + PK_INFO_ENUM_CLEANUP, 54 | GPK_INFO_ENUM_OBSOLETED = PK_INFO_ENUM_UNKNOWN + PK_INFO_ENUM_OBSOLETING, 55 | GPK_INFO_ENUM_UNKNOWN 56 | } GpkInfoStatusEnum; 57 | 58 | const gchar *gpk_role_enum_to_localised_past (PkRoleEnum role) 59 | G_GNUC_CONST; 60 | const gchar *gpk_role_enum_to_icon_name (PkRoleEnum role); 61 | const gchar *gpk_media_type_enum_to_localised_text (PkMediaTypeEnum type) 62 | G_GNUC_CONST; 63 | const gchar *gpk_info_enum_to_localised_text (PkInfoEnum info) 64 | G_GNUC_CONST; 65 | const gchar *gpk_info_enum_to_localised_past (PkInfoEnum info) 66 | G_GNUC_CONST; 67 | const gchar *gpk_info_enum_to_icon_name (PkInfoEnum info); 68 | const gchar *gpk_status_enum_to_localised_text (PkStatusEnum status) 69 | G_GNUC_CONST; 70 | const gchar *gpk_status_enum_to_icon_name (PkStatusEnum status); 71 | const gchar *gpk_restart_enum_to_icon_name (PkRestartEnum restart); 72 | const gchar *gpk_restart_enum_to_dialog_icon_name (PkRestartEnum restart); 73 | const gchar *gpk_error_enum_to_localised_text (PkErrorEnum code) 74 | G_GNUC_CONST; 75 | const gchar *gpk_error_enum_to_localised_message (PkErrorEnum code); 76 | const gchar *gpk_restart_enum_to_localised_text (PkRestartEnum restart) 77 | G_GNUC_CONST; 78 | const gchar *gpk_restart_enum_to_localised_text_future(PkRestartEnum restart) 79 | G_GNUC_CONST; 80 | const gchar *gpk_group_enum_to_localised_text (PkGroupEnum group) 81 | G_GNUC_CONST; 82 | const gchar *gpk_group_enum_to_icon_name (PkGroupEnum group); 83 | const gchar *gpk_info_status_enum_to_string (GpkInfoStatusEnum info); 84 | const gchar *gpk_info_status_enum_to_icon_name (GpkInfoStatusEnum info); 85 | 86 | G_END_DECLS 87 | 88 | #endif /* __GPK_ENUM_H */ 89 | 90 | -------------------------------------------------------------------------------- /src/gpk-error.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include "config.h" 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | #include "gpk-common.h" 32 | #include "gpk-error.h" 33 | 34 | static void 35 | gpk_error_dialog_expanded_cb (GObject *object, GParamSpec *param_spec, GtkBuilder *builder) 36 | { 37 | GtkWindow *window; 38 | GtkExpander *expander; 39 | expander = GTK_EXPANDER (object); 40 | 41 | /* only resizable when expanded */ 42 | window = GTK_WINDOW (gtk_builder_get_object (builder, "dialog_error")); 43 | if (gtk_expander_get_expanded (expander)) 44 | gtk_window_set_resizable (window, TRUE); 45 | else 46 | gtk_window_set_resizable (window, FALSE); 47 | } 48 | 49 | /** 50 | * gpk_error_dialog_modal_with_time: 51 | * @window: the parent dialog 52 | * @title: the localized text to put in bold as a title 53 | * @message: the localized text to put as a message 54 | * @details: the geeky text to in the expander, or %NULL if nothing 55 | * 56 | * Shows a modal error, and blocks until the user clicks close 57 | **/ 58 | static gboolean 59 | gpk_error_dialog_modal_with_time (GtkWindow *window, const gchar *title, const gchar *message, const gchar *details, guint timestamp) 60 | { 61 | GtkWidget *widget; 62 | g_autoptr(GtkBuilder) builder = NULL; 63 | g_autoptr(GtkTextBuffer) buffer = NULL; 64 | guint retval; 65 | g_autoptr(GError) error = NULL; 66 | 67 | g_return_val_if_fail (message != NULL, FALSE); 68 | 69 | /* get UI */ 70 | builder = gtk_builder_new (); 71 | retval = gtk_builder_add_from_resource (builder, 72 | "/org/gnome/packagekit/gpk-error.ui", 73 | &error); 74 | if (retval == 0) { 75 | g_warning ("failed to load ui: %s", error->message); 76 | return FALSE; 77 | } 78 | 79 | /* connect up actions */ 80 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_error")); 81 | gtk_window_set_resizable (GTK_WINDOW (widget), FALSE); 82 | g_signal_connect_swapped (widget, "delete_event", G_CALLBACK (gtk_main_quit), NULL); 83 | 84 | /* never use a title */ 85 | gtk_window_set_title (GTK_WINDOW (widget), ""); 86 | 87 | /* make modal if window set */ 88 | if (window != NULL) 89 | gtk_window_set_transient_for (GTK_WINDOW (widget), window); 90 | else 91 | gtk_window_set_modal (GTK_WINDOW (widget), TRUE); 92 | 93 | /* set icon name */ 94 | gtk_window_set_icon_name (GTK_WINDOW (widget), GPK_ICON_SOFTWARE_INSTALLER); 95 | 96 | /* close button */ 97 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_close")); 98 | g_signal_connect_swapped (widget, "clicked", G_CALLBACK (gtk_main_quit), NULL); 99 | 100 | /* we become resizable when the expander is expanded */ 101 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "expander_details")); 102 | g_signal_connect (widget, "notify::expanded", G_CALLBACK (gpk_error_dialog_expanded_cb), builder); 103 | 104 | /* title */ 105 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "label_title")); 106 | gtk_label_set_label (GTK_LABEL (widget), title); 107 | 108 | /* message */ 109 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "label_message")); 110 | gtk_label_set_markup (GTK_LABEL (widget), message); 111 | 112 | /* show text in the expander */ 113 | if (details == NULL || details[0] == '\0') { 114 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "expander_details")); 115 | gtk_widget_hide (widget); 116 | } else { 117 | buffer = gtk_text_buffer_new (NULL); 118 | // text = g_markup_escape_text (details, -1); 119 | gtk_text_buffer_insert_at_cursor (buffer, details, strlen (details)); 120 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "textview_details")); 121 | gtk_text_view_set_buffer (GTK_TEXT_VIEW (widget), buffer); 122 | } 123 | 124 | /* show window */ 125 | widget = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_error")); 126 | gtk_window_present_with_time (GTK_WINDOW (widget), timestamp); 127 | gtk_window_set_icon_name (GTK_WINDOW (widget), GPK_ICON_SOFTWARE_INSTALLER); 128 | 129 | /* wait for button press */ 130 | gtk_main (); 131 | 132 | /* hide window */ 133 | if (GTK_IS_WIDGET (widget)) 134 | gtk_widget_hide (widget); 135 | return TRUE; 136 | } 137 | 138 | /** 139 | * gpk_error_dialog_modal: 140 | * @window: the parent dialog 141 | * @title: the localized text to put in bold as a title 142 | * @message: the localized text to put as a message 143 | * @details: the geeky text to in the expander, or %NULL if nothing 144 | * 145 | * Shows a modal error, and blocks until the user clicks close 146 | **/ 147 | gboolean 148 | gpk_error_dialog_modal (GtkWindow *window, const gchar *title, const gchar *message, const gchar *details) 149 | { 150 | return gpk_error_dialog_modal_with_time (window, title, message, details, 0); 151 | } 152 | -------------------------------------------------------------------------------- /src/gpk-error.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __GPK_ERROR_H 23 | #define __GPK_ERROR_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | gboolean gpk_error_dialog_modal (GtkWindow *window, 30 | const gchar *title, 31 | const gchar *message, 32 | const gchar *details); 33 | 34 | G_END_DECLS 35 | 36 | #endif /* __GPK_ERROR_H */ 37 | -------------------------------------------------------------------------------- /src/gpk-error.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | False 7 | 18 8 | 9 | 10 | 450 11 | True 12 | False 13 | 12 14 | 15 | 16 | True 17 | False 18 | start 19 | gtk-dialog-warning 20 | 6 21 | 22 | 23 | False 24 | False 25 | 0 26 | 27 | 28 | 29 | 30 | True 31 | False 32 | vertical 33 | 12 34 | 35 | 36 | True 37 | False 38 | start 39 | Failed to install package 40 | 41 | 42 | 43 | 44 | 45 | False 46 | False 47 | 0 48 | 49 | 50 | 51 | 52 | True 53 | False 54 | start 55 | The human readable error message. 56 | True 57 | 58 | 59 | False 60 | False 61 | 1 62 | 63 | 64 | 65 | 66 | True 67 | True 68 | 69 | 70 | 450 71 | 150 72 | True 73 | True 74 | in 75 | 76 | 77 | True 78 | True 79 | 6 80 | False 81 | word 82 | False 83 | False 84 | 85 | 86 | 87 | 88 | 89 | 90 | True 91 | False 92 | More details 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | True 101 | True 102 | 2 103 | 104 | 105 | 106 | 107 | False 108 | True 109 | 1 110 | 111 | 112 | 113 | 114 | 115 | 116 | True 117 | False 118 | 119 | 120 | _Force install 121 | True 122 | True 123 | Force installing package 124 | True 125 | 128 | 129 | 130 | 1 131 | 132 | 133 | 134 | 135 | gtk-close 136 | True 137 | True 138 | True 139 | True 140 | False 141 | end 142 | True 143 | 146 | 147 | 148 | end 149 | 150 | 151 | 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /src/gpk-eula.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | False 7 | 18 8 | 9 | 10 | True 11 | False 12 | 12 13 | 12 14 | 15 | 16 | True 17 | False 18 | start 19 | gtk-dialog-warning 20 | 6 21 | 22 | 23 | 0 24 | 0 25 | 3 26 | 27 | 28 | 29 | 30 | True 31 | False 32 | start 33 | <b>License required for foo-devel by Acme Corp.</b> 34 | True 35 | 36 | 37 | 1 38 | 0 39 | 40 | 41 | 42 | 43 | True 44 | False 45 | Please read the following important information before continuing. 46 | 47 | 48 | 1 49 | 1 50 | 51 | 52 | 53 | 54 | True 55 | True 56 | in 57 | 58 | 59 | True 60 | True 61 | 6 62 | False 63 | word 64 | False 65 | False 66 | 67 | 68 | 69 | 70 | 1 71 | 2 72 | 73 | 74 | 75 | 76 | 77 | 78 | True 79 | False 80 | License Agreement Required 81 | False 82 | 83 | 84 | gtk-cancel 85 | True 86 | True 87 | True 88 | True 89 | 90 | 91 | 92 | 93 | _Accept Agreement 94 | True 95 | True 96 | True 97 | True 98 | False 99 | True 100 | 103 | 104 | 105 | end 106 | 1 107 | 108 | 109 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /src/gpk-log.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | gpk-log.ui 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/gpk-log.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | False 7 | 18 8 | 9 | 10 | True 11 | False 12 | vertical 13 | 12 14 | 15 | 16 | True 17 | False 18 | 12 19 | 20 | 21 | True 22 | True 23 | 24 | 25 | True 26 | True 27 | 0 28 | 29 | 30 | 31 | 32 | Filter 33 | True 34 | True 35 | True 36 | 37 | 38 | False 39 | True 40 | 1 41 | 42 | 43 | 44 | 45 | False 46 | True 47 | 0 48 | 49 | 50 | 51 | 52 | True 53 | True 54 | in 55 | 56 | 57 | True 58 | True 59 | True 60 | False 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | True 69 | True 70 | 1 71 | 72 | 73 | 74 | 75 | 76 | 77 | True 78 | False 79 | Package Log 80 | False 81 | True 82 | 83 | 84 | True 85 | True 86 | True 87 | 88 | 89 | True 90 | False 91 | view-refresh-symbolic 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /src/gpk-prefs.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | gpk-prefs.ui 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/gpk-prefs.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | False 7 | 18 8 | 450 9 | 10 | 11 | True 12 | False 13 | 6 14 | 6 15 | vertical 16 | 6 17 | 18 | 19 | True 20 | False 21 | start 22 | 12 23 | A package source contains packages that can be installed on this computer. 24 | 25 | 26 | 27 | 28 | 29 | False 30 | False 31 | 0 32 | 33 | 34 | 35 | 36 | True 37 | never 38 | in 39 | 40 | 41 | True 42 | True 43 | False 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | True 52 | True 53 | 1 54 | 55 | 56 | 57 | 58 | _Show debug and development package sources 59 | True 60 | True 61 | False 62 | start 63 | True 64 | True 65 | 66 | 67 | False 68 | False 69 | 2 70 | 71 | 72 | 73 | 74 | True 75 | False 76 | center 77 | 6 78 | 12 79 | 80 | 81 | True 82 | False 83 | gtk-execute 84 | 6 85 | 86 | 87 | False 88 | True 89 | 0 90 | 91 | 92 | 93 | 94 | True 95 | False 96 | Action in progress… 97 | 98 | 99 | 100 | 101 | 102 | False 103 | True 104 | 1 105 | 106 | 107 | 108 | 109 | False 110 | True 111 | 3 112 | 113 | 114 | 115 | 116 | 117 | 118 | True 119 | False 120 | Package Sources 121 | False 122 | True 123 | 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /src/gpk-self-test.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007-2013 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include 23 | #include 24 | 25 | #include "gpk-common.h" 26 | #include "gpk-enum.h" 27 | #include "gpk-error.h" 28 | #include "gpk-task.h" 29 | 30 | static void 31 | gpk_test_enum_func (void) 32 | { 33 | guint i; 34 | const gchar *string; 35 | 36 | /* check we convert all the localized past role enums */ 37 | for (i = 0; i < PK_ROLE_ENUM_LAST; i++) { 38 | string = gpk_role_enum_to_localised_past (i); 39 | if (string == NULL) { 40 | g_warning ("failed to get %i", i); 41 | break; 42 | } 43 | } 44 | 45 | /* check we convert all the role icon name enums */ 46 | for (i = PK_ROLE_ENUM_UNKNOWN+1; i < PK_ROLE_ENUM_LAST; i++) { 47 | string = gpk_role_enum_to_icon_name (i); 48 | if (string == NULL || g_strcmp0 (string, "help-browser") == 0) { 49 | g_warning ("failed to get %s", pk_role_enum_to_string (i)); 50 | break; 51 | } 52 | } 53 | 54 | /* check we convert all the info icon names enums */ 55 | for (i = PK_INFO_ENUM_UNKNOWN+1; i < PK_INFO_ENUM_LAST; i++) { 56 | string = gpk_info_enum_to_icon_name (i); 57 | if (string == NULL || g_strcmp0 (string, "help-browser") == 0) { 58 | g_warning ("failed to get %s (got %s instead)", pk_info_enum_to_string (i), string); 59 | break; 60 | } 61 | } 62 | 63 | /* check we convert all the localized status enums */ 64 | for (i = 0; i < PK_STATUS_ENUM_LAST; i++) { 65 | string = gpk_status_enum_to_localised_text (i); 66 | if (string == NULL) { 67 | g_warning ("failed to get %i", i); 68 | break; 69 | } 70 | } 71 | 72 | /* check we convert all the status icon names enums */ 73 | for (i = PK_STATUS_ENUM_UNKNOWN+1; i < PK_STATUS_ENUM_LAST; i++) { 74 | string = gpk_status_enum_to_icon_name (i); 75 | if (string == NULL || g_strcmp0 (string, "help-browser") == 0) { 76 | g_warning ("failed to get %s", pk_status_enum_to_string (i)); 77 | break; 78 | } 79 | } 80 | 81 | /* check we convert all the restart icon names enums */ 82 | for (i = PK_RESTART_ENUM_UNKNOWN+1; i < PK_RESTART_ENUM_NONE; i++) { 83 | string = gpk_restart_enum_to_icon_name (i); 84 | if (string == NULL) { 85 | g_warning ("failed to get %s", pk_restart_enum_to_string (i)); 86 | break; 87 | } 88 | } 89 | 90 | /* check we convert all the localized error enums */ 91 | for (i = 0; i < PK_ERROR_ENUM_LAST; i++) { 92 | string = gpk_error_enum_to_localised_text (i); 93 | if (string == NULL) { 94 | g_warning ("failed to get %s", pk_error_enum_to_string(i)); 95 | break; 96 | } 97 | } 98 | 99 | /* check we convert all the localized error messages */ 100 | for (i = 0; i < PK_ERROR_ENUM_LAST; i++) { 101 | string = gpk_error_enum_to_localised_message (i); 102 | if (string == NULL) { 103 | g_warning ("failed to get %s", pk_error_enum_to_string(i)); 104 | break; 105 | } 106 | } 107 | 108 | /* check we convert all the localized restart enums */ 109 | for (i = PK_RESTART_ENUM_UNKNOWN+1; i < PK_RESTART_ENUM_LAST; i++) { 110 | string = gpk_restart_enum_to_localised_text (i); 111 | if (string == NULL) { 112 | g_warning ("failed to get %i", i); 113 | break; 114 | } 115 | } 116 | 117 | /* check we convert all the localized restart future enums */ 118 | for (i = PK_RESTART_ENUM_UNKNOWN+1; i < PK_RESTART_ENUM_LAST; i++) { 119 | string = gpk_restart_enum_to_localised_text_future (i); 120 | if (string == NULL) { 121 | g_warning ("failed to get %i", i); 122 | break; 123 | } 124 | } 125 | 126 | /* check we convert all the localized group enums */ 127 | for (i = 0; i < PK_GROUP_ENUM_LAST; i++) { 128 | string = gpk_group_enum_to_localised_text (i); 129 | if (string == NULL) { 130 | g_warning ("failed to get %i", i); 131 | break; 132 | } 133 | } 134 | 135 | /* check we convert all the group icon name enums */ 136 | for (i = PK_GROUP_ENUM_UNKNOWN+1; i < PK_GROUP_ENUM_LAST; i++) { 137 | string = gpk_group_enum_to_icon_name (i); 138 | if (string == NULL || g_strcmp0 (string, "help-browser") == 0) { 139 | g_warning ("failed to get %s", pk_group_enum_to_string (i)); 140 | break; 141 | } 142 | } 143 | 144 | } 145 | 146 | static void 147 | gpk_test_common_func (void) 148 | { 149 | gchar *text; 150 | 151 | /* package id pretty valid package id, no summary */ 152 | text = gpk_package_id_format_twoline (NULL, "simon;0.0.1;i386;data", NULL); 153 | g_assert_cmpstr (text, ==, "simon-0.0.1 (32-bit)"); 154 | g_free (text); 155 | 156 | /* package id pretty valid package id, no summary 2 */ 157 | text = gpk_package_id_format_twoline (NULL, "simon;0.0.1;;data", NULL); 158 | g_assert_cmpstr (text, ==, "simon-0.0.1"); 159 | g_free (text); 160 | 161 | /* package id pretty valid package id, no summary 3 */ 162 | text = gpk_package_id_format_twoline (NULL, "simon;;;data", NULL); 163 | g_assert_cmpstr (text, ==, "simon"); 164 | g_free (text); 165 | 166 | /* package id pretty valid package id, no summary 4 */ 167 | text = gpk_package_id_format_twoline (NULL, "simon;0.0.1;;data", "dude"); 168 | g_assert_cmpstr (text, ==, "dude\nsimon-0.0.1"); 169 | g_free (text); 170 | } 171 | 172 | int 173 | main (int argc, char **argv) 174 | { 175 | gtk_init (&argc, &argv); 176 | g_test_init (&argc, &argv, NULL); 177 | 178 | g_test_add_func ("/gnome-packagekit/enum", gpk_test_enum_func); 179 | g_test_add_func ("/gnome-packagekit/common", gpk_test_common_func); 180 | 181 | return g_test_run (); 182 | } 183 | -------------------------------------------------------------------------------- /src/gpk-task.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offtask: 8 -*- 2 | * 3 | * Copyright (C) 2009 Richard Hughes 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __GPK_TASK_H 23 | #define __GPK_TASK_H 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define GPK_TYPE_TASK (gpk_task_get_type ()) 32 | #define GPK_TASK(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPK_TYPE_TASK, GpkTask)) 33 | #define GPK_TASK_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GPK_TYPE_TASK, GpkTaskClass)) 34 | #define GPK_IS_TASK(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPK_TYPE_TASK)) 35 | #define GPK_IS_TASK_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPK_TYPE_TASK)) 36 | #define GPK_TASK_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPK_TYPE_TASK, GpkTaskClass)) 37 | 38 | typedef struct _GpkTaskPrivate GpkTaskPrivate; 39 | typedef struct _GpkTask GpkTask; 40 | typedef struct _GpkTaskClass GpkTaskClass; 41 | 42 | struct _GpkTask 43 | { 44 | PkTask parent; 45 | GpkTaskPrivate *priv; 46 | }; 47 | 48 | struct _GpkTaskClass 49 | { 50 | PkTaskClass parent_class; 51 | }; 52 | 53 | GType gpk_task_get_type (void); 54 | GQuark gpk_task_error_quark (void); 55 | GpkTask *gpk_task_new (void); 56 | gboolean gpk_task_set_parent_window (GpkTask *task, 57 | GtkWindow *window); 58 | 59 | G_END_DECLS 60 | 61 | #endif /* __GPK_TASK_H */ 62 | 63 | -------------------------------------------------------------------------------- /src/gpk-update-viewer.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | gpk-client.ui 5 | gpk-error.ui 6 | gpk-eula.ui 7 | gpk-signature.ui 8 | gpk-update-viewer.ui 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/meson.build: -------------------------------------------------------------------------------- 1 | cargs = ['-DG_LOG_DOMAIN="GnomePackageKit"'] 2 | 3 | gpk_application_resources = gnome.compile_resources( 4 | 'gpk-application-resources', 5 | 'gpk-application.gresource.xml', 6 | source_dir : '.', 7 | c_name : 'gpk' 8 | ) 9 | 10 | gpk_log_resources = gnome.compile_resources( 11 | 'gpk-log-resources', 12 | 'gpk-log.gresource.xml', 13 | source_dir : '.', 14 | c_name : 'gpk' 15 | ) 16 | 17 | gpk_prefs_resources = gnome.compile_resources( 18 | 'gpk-prefs-resources', 19 | 'gpk-prefs.gresource.xml', 20 | source_dir : '.', 21 | c_name : 'gpk' 22 | ) 23 | 24 | gpk_update_viewer_resources = gnome.compile_resources( 25 | 'gpk-update-viewer-resources', 26 | 'gpk-update-viewer.gresource.xml', 27 | source_dir : '.', 28 | c_name : 'gpk' 29 | ) 30 | 31 | shared_srcs = [ 32 | 'gpk-debug.c', 33 | 'gpk-enum.c', 34 | 'gpk-dialog.c', 35 | 'gpk-common.c', 36 | 'gpk-task.c', 37 | 'gpk-error.c', 38 | ] 39 | 40 | executable( 41 | 'gpk-application', 42 | gpk_application_resources, 43 | sources : [ 44 | 'gpk-application.c', 45 | shared_srcs 46 | ], 47 | include_directories : [ 48 | include_directories('..'), 49 | ], 50 | dependencies : [ 51 | packagekit, 52 | gio, 53 | gtk 54 | ], 55 | c_args : cargs, 56 | install : true, 57 | install_dir : 'bin' 58 | ) 59 | 60 | executable( 61 | 'gpk-prefs', 62 | gpk_prefs_resources, 63 | sources : [ 64 | 'gpk-prefs.c', 65 | shared_srcs 66 | ], 67 | include_directories : [ 68 | include_directories('..'), 69 | ], 70 | dependencies : [ 71 | packagekit, 72 | gio, 73 | gtk 74 | ], 75 | c_args : cargs, 76 | install : true, 77 | install_dir : 'bin' 78 | ) 79 | 80 | executable( 81 | 'gpk-log', 82 | gpk_log_resources, 83 | sources : [ 84 | 'gpk-log.c', 85 | shared_srcs 86 | ], 87 | include_directories : [ 88 | include_directories('..'), 89 | ], 90 | dependencies : [ 91 | packagekit, 92 | gio, 93 | gtk 94 | ], 95 | c_args : cargs, 96 | install : true, 97 | install_dir : 'bin' 98 | ) 99 | 100 | gpk_update_viewer_srcs = [ 101 | 'gpk-update-viewer.c', 102 | 'gpk-cell-renderer-size.c', 103 | 'gpk-cell-renderer-info.c', 104 | 'gpk-cell-renderer-restart.c', 105 | shared_srcs 106 | ] 107 | 108 | gpk_update_viewer_deps = [ 109 | packagekit, 110 | gio, 111 | gtk 112 | ] 113 | 114 | if get_option('systemd') 115 | gpk_update_viewer_srcs += 'systemd-proxy.c' 116 | gpk_update_viewer_deps += [systemd, polkit] 117 | endif 118 | 119 | executable( 120 | 'gpk-update-viewer', 121 | gpk_update_viewer_resources, 122 | sources : gpk_update_viewer_srcs, 123 | include_directories : [ 124 | include_directories('..'), 125 | ], 126 | dependencies : gpk_update_viewer_deps, 127 | c_args : cargs, 128 | install : true, 129 | install_dir : 'bin' 130 | ) 131 | 132 | if get_option('tests') 133 | e = executable( 134 | 'gpk-self-test', 135 | sources : [ 136 | 'gpk-self-test.c', 137 | shared_srcs 138 | ], 139 | include_directories : [ 140 | include_directories('..'), 141 | ], 142 | dependencies : [ 143 | packagekit, 144 | gio, 145 | gtk 146 | ], 147 | c_args : cargs 148 | ) 149 | test('gnome-packagekit-self-test', e) 150 | endif 151 | -------------------------------------------------------------------------------- /src/systemd-proxy.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2011 Matthias Clasen 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #include 23 | 24 | #include 25 | #include 26 | 27 | #include "systemd-proxy.h" 28 | 29 | #define SYSTEMD_DBUS_NAME "org.freedesktop.login1" 30 | #define SYSTEMD_DBUS_PATH "/org/freedesktop/login1" 31 | #define SYSTEMD_DBUS_INTERFACE "org.freedesktop.login1.Manager" 32 | #define SYSTEMD_REBOOT_ACTION "org.freedesktop.login1.reboot" 33 | 34 | struct _SystemdProxy { 35 | PolkitAuthority *authority; 36 | PolkitSubject *subject; 37 | }; 38 | 39 | SystemdProxy * 40 | systemd_proxy_new (void) 41 | { 42 | SystemdProxy *proxy; 43 | 44 | proxy = g_new0 (SystemdProxy, 1); 45 | 46 | proxy->authority = polkit_authority_get_sync (NULL, NULL); 47 | proxy->subject = polkit_unix_process_new_for_owner(getpid(), 0, -1); 48 | 49 | return proxy; 50 | } 51 | 52 | void 53 | systemd_proxy_free (SystemdProxy *proxy) 54 | { 55 | g_object_unref (proxy->authority); 56 | g_object_unref (proxy->subject); 57 | 58 | g_free (proxy); 59 | } 60 | 61 | gboolean 62 | systemd_proxy_can_restart (SystemdProxy *proxy, 63 | gboolean *can_restart, 64 | GError **error) 65 | { 66 | PolkitAuthorizationResult *res; 67 | GError *local_error = NULL; 68 | 69 | *can_restart = FALSE; 70 | res = polkit_authority_check_authorization_sync (proxy->authority, 71 | proxy->subject, 72 | SYSTEMD_REBOOT_ACTION, 73 | NULL, 74 | POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION, 75 | NULL, 76 | &local_error); 77 | if (res == NULL) { 78 | g_propagate_error (error, local_error); 79 | return FALSE; 80 | } 81 | 82 | *can_restart = polkit_authorization_result_get_is_authorized (res) || 83 | polkit_authorization_result_get_is_challenge (res); 84 | 85 | g_object_unref (res); 86 | 87 | return TRUE; 88 | } 89 | 90 | gboolean 91 | systemd_proxy_restart (SystemdProxy *proxy, 92 | GError **error) 93 | { 94 | g_autoptr(GDBusConnection) bus = NULL; 95 | 96 | bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL); 97 | g_dbus_connection_call_sync (bus, 98 | SYSTEMD_DBUS_NAME, 99 | SYSTEMD_DBUS_PATH, 100 | SYSTEMD_DBUS_INTERFACE, 101 | "Reboot", 102 | g_variant_new ("(b)", TRUE), 103 | NULL, 0, G_MAXINT, NULL, NULL); 104 | return TRUE; 105 | } 106 | -------------------------------------------------------------------------------- /src/systemd-proxy.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2011 Matthias Clasen 4 | * 5 | * Licensed under the GNU General Public License Version 2 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | 22 | #ifndef __SYSTEMD_PROXY_H__ 23 | #define __SYSTEMD_PROXY_H__ 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | typedef struct _SystemdProxy SystemdProxy; 30 | 31 | SystemdProxy *systemd_proxy_new (void); 32 | void systemd_proxy_free (SystemdProxy *proxy); 33 | gboolean systemd_proxy_can_restart (SystemdProxy *proxy, 34 | gboolean *can_restart, 35 | GError **error); 36 | gboolean systemd_proxy_restart (SystemdProxy *proxy, 37 | GError **error); 38 | 39 | G_END_DECLS 40 | 41 | #endif /* __SYSTEMD_PROXY_H__ */ 42 | --------------------------------------------------------------------------------