Compare commits

..

18 commits

Author SHA1 Message Date
Rahul
e309ad14db Package is retired 2011-03-28 01:57:26 +05:30
Rahul
6146e45c4a wp_tray is dead 2011-03-28 01:56:41 +05:30
Fedora Release Engineering
308ceebd1c dist-git conversion 2010-07-29 15:25:37 +00:00
Denis Leroy
df4e941e5f Added libboost_system to make new DSO link happy 2010-02-18 07:25:53 +00:00
Rahul Sundaram
c06744a1c0 - Rebuild for Boost soname bump 2010-01-21 20:23:26 +00:00
Bill Nottingham
42e902969c Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:43:16 +00:00
Jesse Keating
9798b3eacf - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 07:26:46 +00:00
Jesse Keating
2fd6174d23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-26 07:11:16 +00:00
Benjamin Kosnik
76a8aac155 - Rebuild for boost-1.37.0. 2008-12-18 02:01:28 +00:00
Denis Leroy
9e0c08a1bb Fixed boost patch 2008-10-01 22:19:31 +00:00
Denis Leroy
036ec5b212 Unfuzzed patches 2008-08-29 12:34:33 +00:00
Jesse Keating
eb8951fa62 - Autorebuild for GCC 4.3 2008-02-19 01:22:40 +00:00
Denis Leroy
777d61371a Added patch to fix missing dir crash 2007-12-13 23:47:31 +00:00
Denis Leroy
0fea6c3085 Changed License field to new guidelines, Added patch to support new boost
library
2007-08-21 19:00:57 +00:00
Denis Leroy
c5f7a1275b - Added patch to make change lib-notifications optional
- Cleaned up gnomewp patch
2007-05-09 22:36:00 +00:00
Denis Leroy
556a568473 Added patch to make gnome wp addition optional, minor glade fixes 2007-05-08 21:57:34 +00:00
Denis Leroy
c544b51ea5 Added libxml++ and libnotify dependencies 2006-12-08 17:45:30 +00:00
Denis Leroy
6ac0e31909 Update to 0.5.3, patches integrated upstream 2006-12-08 17:31:49 +00:00
7 changed files with 1 additions and 280 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
wp_tray-0.5.1.tar.gz

1
dead.package Normal file
View file

@ -0,0 +1 @@
Package is retired

View file

@ -1 +0,0 @@
b94b32245558cadd384538ff7d8df403 wp_tray-0.5.1.tar.gz

View file

@ -1,67 +0,0 @@
--- wp_tray-0.5.1/src/applet.cc.orig 2006-09-10 15:05:32.000000000 +0200
+++ wp_tray-0.5.1/src/applet.cc 2006-09-11 10:24:21.000000000 +0200
@@ -91,7 +91,7 @@
// set up the gconf client
m_ref_gconf_client = Gnome::Conf::Client::get_default_client();
- m_ref_gconf_client->add_dir("/apps/wp_tray/");
+ m_ref_gconf_client->add_dir("/apps/wp_tray");
// add our directory to the list of directories the GConfClient will watch
m_ref_gconf_client->add_dir("/desktop/gnome/background");
--- wp_tray-0.5.1/src/main.cc.orig 2006-09-10 15:05:32.000000000 +0200
+++ wp_tray-0.5.1/src/main.cc 2006-09-11 10:04:47.000000000 +0200
@@ -61,4 +61,5 @@
{
std::cerr << ex.what() << std::endl;
}
+ return 0;
}
--- wp_tray-0.5.1/src/wallpapers.cc.orig 2006-09-10 15:05:32.000000000 +0200
+++ wp_tray-0.5.1/src/wallpapers.cc 2006-09-10 16:25:03.000000000 +0200
@@ -12,14 +12,17 @@
#include <cstdlib>
#include "boost/filesystem/exception.hpp"
+bool name_check_yes(const std::string&) { return true; }
+
// definitions //
//
c_wallpapers::c_wallpapers ()
{
+ boost::filesystem::path::default_name_check(name_check_yes);
// set up the gconf client
m_ref_gconf_client = Gnome::Conf::Client::get_default_client();
- m_ref_gconf_client->add_dir("/apps/wp_tray/");
+ m_ref_gconf_client->add_dir("/apps/wp_tray");
// seed random number generator
std::srand(std::time(NULL));
@@ -124,10 +127,10 @@
{
fs::directory_iterator end_iter;
- for(fs::directory_iterator dir_itr(path_current); dir_itr != end_iter; ++ dir_itr)
- {
try
{
+ for(fs::directory_iterator dir_itr(path_current); dir_itr != end_iter; ++ dir_itr)
+ {
if(fs::is_directory(*dir_itr))
{
if(fs::symbolic_link_exists(*dir_itr))
@@ -151,11 +154,11 @@
++ n_file_count;
}// end else
}// end try
+ }// end for
catch(const std::exception & ex)
{
- std::cerr << "c_wallpapers::count_entries_in_directory() : " << dir_itr->leaf() << " " << ex.what() << std::endl;
+ std::cerr << "c_wallpapers::count_entries_in_directory() : " << ex.what() << std::endl;
}// end catch
- }// end for
return n_file_count;
}// end c_wallpapers::count_directory_entries

View file

@ -1,50 +0,0 @@
--- wp_tray-0.5.1/src/search_dialog.cc.orig 2006-09-10 15:05:32.000000000 +0200
+++ wp_tray-0.5.1/src/search_dialog.cc 2006-09-11 11:37:21.000000000 +0200
@@ -85,23 +85,39 @@
{
std::list<Glib::ustring> ls_wp_dir, ls_results;
- if(m_p_entry_search_string->get_text().length() == 0)
- return false;
-
ls_wp_dir = m_ref_gconf_client->get_string_list("/apps/wp_tray/dir_list");
+ boost::regex regex;
+ Glib::ustring rstring;
+
+ try {
+ rstring += ".*";
+ rstring += m_p_entry_search_string->get_text();
+ rstring += ".*";
+ regex = boost::regex(rstring.c_str(), boost::regex::perl | boost::regex::icase);
+ } catch (...) {
+ Gtk::MessageDialog d(_("Incorrect regular expression.\n"
+ "Please use Perl-style format."), false,
+ Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
+ d.run();
+ return true;
+ }
+
// search each directory
for(std::list<Glib::ustring>::iterator it = ls_wp_dir.begin(); it != ls_wp_dir.end(); ++ it)
{
// do the boost regex search
// TODO: C string conversion is 'orrible :/
- c_search_dialog::wallpaper_search (
- fs::path(*it),
- boost::regex(m_p_entry_search_string->get_text().c_str(), boost::regex::icase),
- ls_results
- );
+ c_search_dialog::wallpaper_search(fs::path(*it), regex, ls_results);
}// end for
+ if (ls_results.size() == 0) {
+ Gtk::MessageDialog d(_("\nNo wallpapers found."), false, Gtk::MESSAGE_INFO,
+ Gtk::BUTTONS_OK, true);
+ d.run();
+ return true;
+ }
+
// clear list store
m_ref_liststore->clear();

View file

@ -1,76 +0,0 @@
--- wp_tray-0.5.1/src/applet.cc.orig 2006-09-10 15:05:32.000000000 +0200
+++ wp_tray-0.5.1/src/applet.cc 2006-09-11 10:24:21.000000000 +0200
@@ -368,6 +368,15 @@
{
Glib::RefPtr<Gdk::Pixbuf> gdk_pixbuf = Glib::RefPtr<Gdk::Pixbuf>();
+ int targetw, targeth;
+ if (c_applet::horizontal()) {
+ targetw = (int)(c_applet::get_size() * 1.3);
+ targeth = c_applet::get_size();
+ } else {
+ targetw = c_applet::get_size();
+ targeth = (int)(c_applet::get_size() * 0.77);
+ }
+
try
{
gdk_pixbuf =
@@ -376,16 +385,9 @@
catch(...)
{
// bugger, slap a black square in there for now
- if(c_applet::horizontal() == true)
- {
- gdk_pixbuf =
- Gdk::Pixbuf::create(Gdk::COLORSPACE_RGB, 0, 8, static_cast<int>(c_applet::get_size() * 1.3f), c_applet::get_size());
- }// end if
- else
- {
- gdk_pixbuf =
- Gdk::Pixbuf::create(Gdk::COLORSPACE_RGB, 0, 8, c_applet::get_size(), static_cast<int>(c_applet::get_size() * 1.3f));
- }// end else
+ gdk_pixbuf =
+ Gdk::Pixbuf::create(Gdk::COLORSPACE_RGB, 0, 8, targetw,
+ targeth);
gdk_pixbuf->fill(0x000000ff);
@@ -396,24 +398,19 @@
Glib::RefPtr<Gdk::Pixbuf> gdk_pixbuf_scaled = Glib::RefPtr<Gdk::Pixbuf>();
- if(c_applet::horizontal() == true)
- {
- gdk_pixbuf_scaled =
- Gnome::UI::thumbnail_scale_down_pixbuf( gdk_pixbuf,
- static_cast<int>(c_applet::get_size() * 1.3f),
- c_applet::get_size());
- }// end if
- else
- {
- // PIXBUF_ROTATE_COUNTERCLOCKWISE
- // PIXBUF_ROTATE_CLOCKWISE
- /*
- gdk_pixbuf_scaled =
- Gnome::UI::thumbnail_scale_down_pixbuf( gdk_pixbuf_scaled->rotate_simple(Gnome::UI::PIXBUF_ROTATE_CLOCKWISE),
- c_applet::get_size(),
- static_cast<int>(c_applet::get_size() * 1.3f));
- */
- }// end else
+ // Only scale down if we're sure the starting image is
+ // completely larger than the destination size (or it will
+ // abort).
+ if (gdk_pixbuf->get_width() < targetw ||
+ gdk_pixbuf->get_height() < targeth) {
+ gdk_pixbuf_scaled = gdk_pixbuf;
+ } else {
+
+ gdk_pixbuf_scaled =
+ Gnome::UI::thumbnail_scale_down_pixbuf(gdk_pixbuf,
+ targetw,
+ targeth);
+ }
m_gtk_image.set(gdk_pixbuf_scaled);
}// end c_applet::render_thumbnail

View file

@ -1,85 +0,0 @@
Name: wp_tray
Version: 0.5.1
Release: 4%{?dist}
Summary: A wallpaper-changing applet for GNOME
Group: Amusements/Graphics
License: GPL
URL: http://planetearthworm.com/projects/wp_tray/
Source0: http://planetearthworm.com/projects/wp_tray/files/%{name}-%{version}.tar.gz
Patch0: wp_tray-0.5.1-thumbs.patch
Patch1: wp_tray-0.5.1-search.patch
Patch2: wp_tray-0.5.1-miscfixes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext libglademm24-devel libgnomecanvasmm26-devel
BuildRequires: gconfmm26-devel libgnomemm26-devel libgnomeuimm26-devel
BuildRequires: gnome-panel-devel boost-devel
%description
Wallpaper Tray is a GNOME applet used for changing your wallpaper.
%prep
%setup -q
%patch0 -p1 -b .thumbs
%patch1 -p1 -b .search
%patch2 -p1 -b .miscfixes
%build
%configure --with-boostfilesystem=%{_libdir}/libboost_filesystem.so \
--with-boostregex=%{_libdir}/libboost_regex.so
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/wp_tray.schemas > /dev/null || :
killall -HUP gconfd-2 &>/dev/null || :
%postun
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/wp_tray.schemas >/dev/null || :
killall -HUP gconfd-2 &>/dev/null || :
fi
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/wp_tray.schemas > /dev/null || :
killall -HUP gconfd-2 &>/dev/null || :
fi
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_libdir}/bonobo/servers/*.server
%{_libexecdir}/*
%{_sysconfdir}/gconf/schemas/*.schemas
%changelog
* Mon Sep 11 2006 Denis Leroy <denis@poolshark.org> - 0.5.1-4
- Added patches to fix many bugs (see bug 205869)
* Sun Sep 3 2006 Denis Leroy <denis@poolshark.org> - 0.5.1-3
- FE6 Rebuild
* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.5.1-2
- Rebuild for Fedora Extras 5
* Tue Jan 17 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.5.1-1
- Upstream update
- Merge Chris Chabot's spec file changes
* Mon Jan 2 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.4.6-1
- Initial RPM release