[gshutdown/f15/master] add these in

Caolan McNamara caolanm at fedoraproject.org
Thu Apr 14 08:07:56 UTC 2011


commit 79d27a7e384b700d22674c227bba434eb007cd6c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Apr 14 09:07:59 2011 +0100

    add these in

 gshutdown-0.2.explicitlink.patch  |   11 +++++++++++
 gshutdown-0.2.libnotify-api.patch |   19 +++++++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/gshutdown-0.2.explicitlink.patch b/gshutdown-0.2.explicitlink.patch
new file mode 100644
index 0000000..c695f05
--- /dev/null
+++ b/gshutdown-0.2.explicitlink.patch
@@ -0,0 +1,11 @@
+--- gshutdown-0.2/src/Makefile.in.orig	2011-04-07 10:33:46.724734365 +0100
++++ gshutdown-0.2/src/Makefile.in	2011-04-07 10:33:54.083822142 +0100
+@@ -216,7 +216,7 @@
+ 	bacon.c bacon.h \
+ 	eggtrayicon.c eggtrayicon.h
+ 
+-gshutdown_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
++gshutdown_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) -lXau -lX11
+ gshutdown_LDFLAGS = -Wl,-export-dynamic
+ sharedir = $(pkgdatadir)
+ share_DATA = tray_icon2.png tray_icon.png gshutdown.png clock.png gshutdown.glade
diff --git a/gshutdown-0.2.libnotify-api.patch b/gshutdown-0.2.libnotify-api.patch
new file mode 100644
index 0000000..c2a8fd7
--- /dev/null
+++ b/gshutdown-0.2.libnotify-api.patch
@@ -0,0 +1,19 @@
+--- gshutdown-0.2/src/gui.c	2011-04-07 10:28:47.586163596 +0100
++++ gshutdown-0.2/src/gui.c	2011-04-07 10:29:06.927394636 +0100
+@@ -154,15 +154,11 @@
+     gint delay;
+     gchar *path;
+     GdkPixbuf *pixbuf;
+-    GtkWidget *widget = NULL;
+ 
+     if(values.show_notifications == FALSE)
+         return;
+ 
+-    if(gui_systray_icon_is_showed())
+-        widget = GTK_WIDGET(tray_icon);
+-
+-    notify = notify_notification_new("GShutdown", message, NULL, GTK_WIDGET(widget));
++    notify = notify_notification_new("GShutdown", message, NULL);
+ 
+     if(show_icon == NOTIFICATION_ICON_TIME) {
+         path = data_path("clock.png");


More information about the scm-commits mailing list