Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6fc1568667694ebf1b450440f041ec9262abdb31

commit 6fc1568667694ebf1b450440f041ec9262abdb31
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Jan 14 09:27:46 2011 +0000

frugalware-tweak-0.2.4-2-i686

Download patch

diff --git a/source/xapps-extra/frugalware-tweak/FrugalBuild 
b/source/xapps-extra/frugalware-tweak/FrugalBuild
index a8b5c29..dfa9be8 100644
--- a/source/xapps-extra/frugalware-tweak/FrugalBuild
+++ b/source/xapps-extra/frugalware-tweak/FrugalBuild
@@ -12,7 +12,7 @@ pkgrel=2
url="http://ftp.frugalware.org/pub/other/people/bouleetbil/frugal-tweak/";
up2date="Flasttar $url/releases/"
source=($url/releases/$_F_archive_name-$pkgver.tar.bz2 \
-       systray.diff)
+       $url/patchs/systray.diff)
pkgdesc="Frugalware configuration utility"
depends=('mono>=2.8' 'gtk2-sharp' 'notify-sharp' 'webkit-sharp>=0.3' 
'vte-python' 'smartirc' 'libindicate-mono')
makedepends=('vala')
diff --git a/source/xapps-extra/frugalware-tweak/systray.diff 
b/source/xapps-extra/frugalware-tweak/systray.diff
deleted file mode 100644
index 1e27fc2..0000000
--- a/source/xapps-extra/frugalware-tweak/systray.diff
+++ /dev/null
@@ -1,77 +0,0 @@
-From b513a493dc265854bcfe3b4c784b414f5c0ee0db Mon Sep 17 00:00:00 2001
-From: bouleetbil <bouleet...@frogdev.info>
-Date: Thu, 13 Jan 2011 22:02:15 +0100
-Subject: [PATCH] *fixes red icon when system is updated
-
----
- frugal-tweak-vala/src/MainClient.vala |    6 +++++-
- frugal-tweak-vala/src/systray.vala    |   12 ++++++------
- 2 files changed, 11 insertions(+), 7 deletions(-)
-
-diff --git a/frugal-tweak-vala/src/MainClient.vala 
b/frugal-tweak-vala/src/MainClient.vala
-index 12de4f9..576bbc6 100644
---- a/frugal-tweak-vala/src/MainClient.vala
-+++ b/frugal-tweak-vala/src/MainClient.vala
-@@ -51,9 +51,13 @@ void* func()
-                       pacman pacmang2 = new pacman();
-                       if(pacmang2.CheckUpdate())
-                       {
--                              //delegateInform InformUpdate = informUpdate;
-                               informUpdate();
-                       }
-+                      else
-+                      {
-+                              Systray.Change_Ico change_ico = 
systrayIcon.SetIco;
-+                              change_ico(Systray.defaultIco);
-+                      }
-               }
-               Thread.usleep(1800000000);      //1/2 hour
-               //roadmap.GetDateRelease();
-diff --git a/frugal-tweak-vala/src/systray.vala 
b/frugal-tweak-vala/src/systray.vala
-index 6108f10..7daa2d1 100644
---- a/frugal-tweak-vala/src/systray.vala
-+++ b/frugal-tweak-vala/src/systray.vala
-@@ -22,26 +22,26 @@ using GLib;
-
- public class Systray
- {
-+      public static const string defaultIco = 
"/usr/share/frugalware-tweak/pictures/frugalware-tweak.png";
-       private StatusIcon _trayicon ;
-       private Menu _popup;
-       private Window _window;
--      private string _defaultIco = 
"/usr/share/frugalware-tweak/pictures/frugalware-tweak.png";
-       private string _ico ="";
-       private Configuration conf = new Configuration();
-       public Systray()
-       {
-               _window = GtkObj.MainWindow;
--              _ico=_defaultIco;
-+              _ico=defaultIco;
-                /* Create tray icon */
-               try
-               {
--                      _trayicon =new StatusIcon.from_file(_defaultIco);
--                      _window.set_icon_from_file(_defaultIco);
-+                      _trayicon =new StatusIcon.from_file(_ico);
-+                      _window.set_icon_from_file(_ico);
-               }
-               catch(GLib.Error err)
-               {
-                       var msg = new 
Gtk.MessageDialog(null,Gtk.DialogFlags.MODAL,Gtk.MessageType.ERROR,
--                                                                              
Gtk.ButtonsType.OK,"Failed to load "+_defaultIco+"\n"+err.message);
-+                                                                              
Gtk.ButtonsType.OK,"Failed to load "+_ico+"\n"+err.message);
-                       msg.run();
-                       msg.destroy();
-               }
-@@ -103,7 +103,7 @@ public class Systray
-               catch(GLib.Error err)
-               {
-                       var msg = new 
Gtk.MessageDialog(null,Gtk.DialogFlags.MODAL,Gtk.MessageType.ERROR,
--                                                                              
Gtk.ButtonsType.OK,"Failed to load "+_defaultIco+"\n"+err.message);
-+                                                                              
Gtk.ButtonsType.OK,"Failed to load "+_ico+"\n"+err.message);
-                       msg.run();
-               }
-       }
---
-1.6.5.3
-
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to