rpms/logjam/EL-4 logjam-4.5.3-rhythmbox-fix.patch, NONE, 1.1 logjam_docklet_context_menu.diff, NONE, 1.1 logjam.spec, 1.16, 1.17

Tom Callaway (spot) fedora-extras-commits at redhat.com
Fri Jul 20 20:08:33 UTC 2007


Author: spot

Update of /cvs/extras/rpms/logjam/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3422

Modified Files:
	logjam.spec 
Added Files:
	logjam-4.5.3-rhythmbox-fix.patch 
	logjam_docklet_context_menu.diff 
Log Message:

sync


logjam-4.5.3-rhythmbox-fix.patch:

--- NEW FILE logjam-4.5.3-rhythmbox-fix.patch ---
--- logjam-4.5.3/src/music.c.BAD	2007-01-18 17:27:45.000000000 -0600
+++ logjam-4.5.3/src/music.c	2007-01-18 17:27:59.000000000 -0600
@@ -14,7 +14,7 @@
 const CommandList music_commands[] = {
 	{ N_("None"), NULL },
 	{ "Music Player Daemon", "sh -c \"mpc | grep -v '^volume: .* repeat: .* random: .*'\"" },
-	{ "Rhythmbox", "rhythmbox --print-playing" },
+	{ "Rhythmbox", "rhythmbox-client --print-playing" },
 	{ "XMMS / Beep", "logjam-xmms-client" },
 	{ "amaroK", "dcop amarok player nowPlaying" },
 	{ NULL, NULL }

logjam_docklet_context_menu.diff:

--- NEW FILE logjam_docklet_context_menu.diff ---
diff -ru logjam-4.5.3.orig/src/docklet.c logjam-4.5.3/src/docklet.c
--- logjam-4.5.3.orig/src/docklet.c	Mon Feb 21 18:27:51 2005
+++ logjam-4.5.3/src/docklet.c	Mon Jul 24 16:13:32 2006
@@ -8,19 +8,84 @@
 
 #include "gtk-all.h"
 
+#include "jam.h"
 #include "conf.h"
 #include "eggtrayicon.h"
+#include "settings.h"
 
 static void
 docklet_destroy_cb(GtkWidget *widget) {
 	app.docklet = NULL;
 }
 
+void about_dlg(GtkWidget *mainwin);
+void menu_friends_manager(JamWin *jw);
+
+static void
+docklet_menu(GtkWidget *win) {
+	static GtkWidget *menu = NULL;
+	GtkWidget *entry;
+	GtkWidget *menuitem;
+	GtkWidget *image;
+
+	if (menu) {
+		gtk_widget_destroy(menu);
+	}
+
+	menu = gtk_menu_new();
+
+ 	{ /* About... */
+		menuitem = gtk_image_menu_item_new_with_mnemonic(_("About LogJam..."));
+		image = gtk_image_new_from_stock("logjam-goat", GTK_ICON_SIZE_MENU);
+		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menuitem), image);
+		gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
+		g_signal_connect_swapped(G_OBJECT(menuitem), "activate", G_CALLBACK(about_dlg), win);
+		gtk_widget_show_all(menuitem);
+	}
+
+	{ /* Friends... */
+		menuitem = gtk_menu_item_new_with_mnemonic(_("Friends..."));
+		gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
+		g_signal_connect_swapped(G_OBJECT(menuitem), "activate", G_CALLBACK(menu_friends_manager), win);
+		gtk_widget_show_all(menuitem);
+	}
+
+	{ /* Preferences... */
+		menuitem = gtk_image_menu_item_new_with_mnemonic(_("Preferences..."));
+		image = gtk_image_new_from_stock(GTK_STOCK_PREFERENCES, GTK_ICON_SIZE_MENU);
+		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menuitem), image);
+		gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
+		g_signal_connect_swapped(G_OBJECT(menuitem), "activate", G_CALLBACK(settings_run), win);
+		gtk_widget_show_all(menuitem);
+	}
+
+	{ /* -------------- */
+		menuitem = gtk_separator_menu_item_new();
+		gtk_widget_show(menuitem);
+		gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
+	}
+
+	{ /* Quit */
+		menuitem = gtk_image_menu_item_new_with_mnemonic(_("Quit"));
+		image = gtk_image_new_from_stock(GTK_STOCK_QUIT, GTK_ICON_SIZE_MENU);
+		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menuitem), image);
+		gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
+		g_signal_connect_swapped(G_OBJECT(menuitem), "activate", G_CALLBACK(jam_quit), win);
+		gtk_widget_show_all(menuitem);
+	}
+
+	gtk_widget_show_all(menu);
+	gtk_menu_popup(GTK_MENU(menu), NULL, NULL,
+	              NULL /*ui_ops->position_menu*/,
+                  NULL, 0, gtk_get_current_event_time());
+
+}
+
 static gboolean
 click_cb(GtkWidget* w, GdkEventButton *ev, GtkWidget *win) {
 	/* right-clicks start context menu (note: this case is terminal) */
 	if (ev->button == 3) {
-		//cf_context_menu(cfi, ev);
+		docklet_menu(win);
 		return TRUE;
 	}
 
diff -ru logjam-4.5.3.orig/src/menu.c logjam-4.5.3/src/menu.c
--- logjam-4.5.3.orig/src/menu.c	Sun Oct 23 17:11:08 2005
+++ logjam-4.5.3/src/menu.c	Mon Jul 24 13:45:02 2006
@@ -289,7 +289,7 @@
 	console_dialog_run(GTK_WINDOW(jw), JAM_ACCOUNT_LJ(jw->account));
 }
 
-static void
+void
 menu_friends_manager(JamWin *jw) {
 	g_assert(JAM_ACCOUNT_IS_LJ(jw->account));
 	friends_manager_show(GTK_WINDOW(jw), JAM_ACCOUNT_LJ(jw->account));


Index: logjam.spec
===================================================================
RCS file: /cvs/extras/rpms/logjam/EL-4/logjam.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- logjam.spec	6 Apr 2006 22:27:36 -0000	1.16
+++ logjam.spec	20 Jul 2007 20:08:00 -0000	1.17
@@ -2,7 +2,7 @@
 
 Name:		logjam
 Version:	4.5.3
-Release:	3%{?dist}
+Release:	8%{?dist}
 Epoch:		1
 Summary:	GTK2 client for LiveJournal
 License:	GPL
@@ -15,7 +15,8 @@
 %endif
 BuildRequires:	curl-devel, gtk2-devel, gtkspell-devel, gtkhtml3-devel
 BuildRequires:	gettext, desktop-file-utils, aspell-devel, librsvg2-devel
-BuildRequires:	libsoup-devel, gnutls-devel, libgcrypt-devel
+BuildRequires:	libsoup-devel, sqlite-devel, gnutls-devel, libgcrypt-devel
+BuildRequires:	autoconf, intltool
 Obsoletes:	loserjabber, logjam-gnome
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch2:		logjam-4.4.1-backdated.patch
@@ -25,6 +26,8 @@
 Patch6:		logjam-4.5.2-gtkhtml38.patch
 Patch7:		logjam-4.4.1-ru.po.asp.patch
 Patch8:		logjam-4.5.3-gtkspell.patch
+Patch9:		http://people.freebsd.org/~novel/patches/non-freebsd/logjam_docklet_context_menu.diff
+Patch10:	logjam-4.5.3-rhythmbox-fix.patch
 
 %description
 This is the new GTK2 client for LiveJournal (http://www.livejournal.com).
@@ -50,10 +53,12 @@
 %patch6 -p1 -b .gtkhtml38
 %patch7 -p1 -b .ru.po
 %patch8 -p1 -b .bz186906
+%patch9 -p1 -b .docklet-context-menu
+%patch10 -p1 -b .rhythmboxfix
 
 %build
 autoconf
-%configure \
+%configure --with-sqlite3 \
 %if %{use_xmms}
 	--with-xmms
 %endif
@@ -62,7 +67,9 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT
-%makeinstall
+make DESTDIR=$RPM_BUILD_ROOT install
+# Rename locale dir, bugzilla 210206
+mv $RPM_BUILD_ROOT%{_datadir}/locale/en_US.UTF-8 $RPM_BUILD_ROOT%{_datadir}/locale/en_US
 %find_lang %{name}
 desktop-file-install --vendor fedora                    \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications         \
@@ -87,6 +94,19 @@
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Jan 18 2007 Tom "spot" Callaway <tcallawa at redhat.com> 1:4.5.3-8
+- Rename a locale directory to resolve bugzilla 210206
+
+* Thu Jan 18 2007 Tom "spot" Callaway <tcallawa at redhat.com> 1:4.5.3-7
+- fix rhythmbox music detection
+
+* Mon Sep 11 2006 Tom "spot" Callaway <tcallawa at redhat.com> 1:4.5.3-5
+- add docklet context menu patch
+- fix BR: autoconf, intltool
+
+* Fri Jun 16 2006 Tom "spot" Callaway <tcallawa at redhat.com> 1:4.5.3-4
+- bump for gnutls change in devel
+
 * Thu Apr  6 2006 Tom "spot" Callaway <tcallawa at redhat.com> 1:4.5.3-3
 - fix gtkspell language settings, bz 186906
 




More information about the fedora-extras-commits mailing list