diff --git a/02_pager-size-for-viewport.patch b/02_pager-size-for-viewport.patch new file mode 100644 index 0000000000000000000000000000000000000000..f49f32d20ef761433609529094cd4e7f7971d40c --- /dev/null +++ b/02_pager-size-for-viewport.patch @@ -0,0 +1,25 @@ +Description: Fix workspace miniature size calculation wrong for viewport mode +Author: Bin Guo +Debian-Bug: https://bugs.debian.org/785582 + +--- a/plugins/pager/pager.c ++++ b/plugins/pager/pager.c +@@ -662,6 +662,18 @@ pager_plugin_get_preferred_width (GtkWid + else if (plugin->miniature_view) + { + n_workspaces = wnck_screen_get_workspace_count (plugin->wnck_screen); ++ if (n_workspaces == 1) ++ { ++ WnckWorkspace *active_ws; ++ /* check if we ware in viewport mode */ ++ active_ws = wnck_screen_get_active_workspace (plugin->wnck_screen); ++ if (wnck_workspace_is_virtual (active_ws)) ++ { ++ /* number of rows * number of columns */ ++ n_workspaces = (wnck_workspace_get_width (active_ws) / wnck_screen_get_width (plugin->wnck_screen)) ++ * (wnck_workspace_get_height (active_ws) / wnck_screen_get_height (plugin->wnck_screen)); ++ } ++ } + n_cols = MAX (1, (n_workspaces + plugin->rows - 1) / plugin->rows); + min_width = nat_width = (gint) (xfce_panel_plugin_get_size (XFCE_PANEL_PLUGIN (plugin)) / plugin->rows * plugin->ratio * n_cols); + } diff --git a/xfce4-clock.png b/xfce4-clock.png new file mode 100644 index 0000000000000000000000000000000000000000..dc932ec84c8ae05d9cbe8c5e5713750e373ba3c8 Binary files /dev/null and b/xfce4-clock.png differ diff --git a/xfce4-clock.svg b/xfce4-clock.svg new file mode 100644 index 0000000000000000000000000000000000000000..62f68b4fc35e0f18d2ebff2a3cc3dc915406d4ae --- /dev/null +++ b/xfce4-clock.svg @@ -0,0 +1,861 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 12 + 12 + 6 + 6 + 3 + 3 + 9 + 9 + + + + + + + + + + + + + + + + + diff --git a/xfce4-panel-4.14.4.tar.bz2 b/xfce4-panel-4.14.4.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..b5c00c505b4301b7a1146ae343697341cf6ca5a9 Binary files /dev/null and b/xfce4-panel-4.14.4.tar.bz2 differ diff --git a/xfce4-panel.spec b/xfce4-panel.spec new file mode 100644 index 0000000000000000000000000000000000000000..d9df8e5462432f8c206748fd2bf6e3d055f06e4c --- /dev/null +++ b/xfce4-panel.spec @@ -0,0 +1,129 @@ +%global xfceversion 4.14 +# Don't check .so files in /lib64/xfce4/panel/plugins +%global __provides_exclude_from ^%{_libdir}/xfce4/panel/plugins/.*\\.so$ +%global _with_vala 0 + +Name: xfce4-panel +Version: 4.14.4 +Release: 1%{?dist} +Summary: panel for Xfce4 desktop environment +License: GPLv2+ and LGPLv2+ +#Group: Development/Libraries +URL: http://www.xfce.org/ +Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2 + +# clock icon taken from system-config-date, license is GPLv2+ +Source1: xfce4-clock.png +Source2: xfce4-clock.svg +# patch from Debian +Patch1: 02_pager-size-for-viewport.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#BuildArch: noarch +BuildRequires: gcc-c++ +BuildRequires: gtk3-devel +BuildRequires: libxfce4ui-devel >= %{xfceversion} +BuildRequires: xfconf-devel >= %{xfceversion} +BuildRequires: garcon-devel >= 0.6.0 +BuildRequires: libxml2-devel >= 2.4.0 +BuildRequires: startup-notification-devel +BuildRequires: exo-devel >= 0.3.93 +BuildRequires: libwnck3-devel >= 3.14 +BuildRequires: gettext +BuildRequires: intltool +BuildRequires: desktop-file-utils +BuildRequires: gtk-doc +BuildRequires: gobject-introspection-devel +%if %{_with_vala} +BuildRequires: vala +%endif + +%description +This package includes the panel for the Xfce desktop environment. + +%package devel +Summary: Xfce4 panel development files +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +Requires: libxfce4util-devel >= %{xfceversion} +Requires: libxfce4ui-devel >= %{xfceversion} + +%description devel +This package includes the header files you will need to build +plugins for xfce4-panel. + +%prep +%setup -q +%patch1 -p1 -b .default + +# Fix icon in 'Add new panel item' dialog +sed -i 's|Icon=office-calendar|Icon=xfce4-clock|g' plugins/clock/clock.desktop.in.in + +%build +%configure --enable-gtk-doc --disable-static + +# Remove rpaths +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +# The LD_LIBRARY_PATH hack is needed for --enable-gtk-doc +# because lt-libxfce4panel-scan is linked against libxfce4panel +export LD_LIBRARY_PATH="`pwd`/libxfce4panel/.libs" + +%make_build + +%install +%make_install + +# fix permissions for installed libs +chmod 755 %{buildroot}%{_libdir}/*.so + +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +# remove duplicate docs +rm -f %{buildroot}%{_docdir}/xfce4-panel/README.gtkrc-2.0 + +# FIXME: We need to own these dirs until all plugins are ported to Xfce 4.8 +mkdir -p %{buildroot}%{_libexecdir}/xfce4/panel-plugins +mkdir -p %{buildroot}%{_libdir}/xfce4/panel-plugins +mkdir -p %{buildroot}%{_datadir}/xfce4/panel-plugins + +%find_lang %{name} + +desktop-file-validate %{buildroot}/%{_datadir}/applications/panel-desktop-handler.desktop +desktop-file-validate %{buildroot}/%{_datadir}/applications/panel-preferences.desktop + +# install additional icons +install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/ +install -pm 0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ + +%files -f %{name}.lang +%license COPYING +%doc AUTHORS ChangeLog NEWS README docs/README.gtkrc-2.0 +%config(noreplace) %{_sysconfdir}/xdg/xfce4/panel/default.xml +%{_bindir}/* +%{_libdir}/libxfce4panel-*.so.* +%{_libdir}/xfce4/panel/ +%{_libdir}/girepository-1.0/libxfce4panel-2.0.typelib +%{_datadir}/gir-1.0/libxfce4panel-2.0.gir +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/xfce4/panel/ +%{_datadir}/applications/*.desktop +%if %{_with_vala} +%{_datadir}/vala/vapi/libxfce4panel-2.0.deps +%{_datadir}/vala/vapi/libxfce4panel-2.0.vapi +%endif +# FIXME: Remove these when no longer needed +%dir %{_libexecdir}/xfce4/panel-plugins/ +%dir %{_libdir}/xfce4/panel-plugins +%dir %{_datadir}/xfce4/panel-plugins + +%files devel +%{_libdir}/pkgconfig/* +%{_libdir}/libxfce4panel-*.so +%doc %{_datadir}/gtk-doc/html/libxfce4panel-*/ +%{_includedir}/xfce4/libxfce4panel-*/ + +%changelog +* Thu Jul 9 2020 Dillon Chen - 4.14.4-1 +- Init package