rpms/openbox/F-8 menu.xml, NONE, 1.1 openbox-3.4.7.2-numdesks.patch, NONE, 1.1 xdg-menu, NONE, 1.1 .cvsignore, 1.11, 1.12 openbox.spec, 1.33, 1.34 sources, 1.13, 1.14

Miroslav Lichvar (mlichvar) fedora-extras-commits at redhat.com
Wed May 14 17:07:48 UTC 2008


Author: mlichvar

Update of /cvs/pkgs/rpms/openbox/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6912

Modified Files:
	.cvsignore openbox.spec sources 
Added Files:
	menu.xml openbox-3.4.7.2-numdesks.patch xdg-menu 
Log Message:
- Update to 3.4.7.2
- Use gnome menus by default (Luke Macken) (#443548)
- Force setting number of desktops (#444135)



--- NEW FILE menu.xml ---
<?xml version="1.0" encoding="UTF-8"?>

<openbox_menu xmlns="http://openbox.org/3.4/menu">

<menu id="applications-menu" label="Applications" execute="_XDGMENU_ applications"/>
<menu id="preferences-menu" label="Preferences" execute="_XDGMENU_ preferences"/>
<menu id="administration-menu" label="Administration" execute="_XDGMENU_ system-settings"/>

<menu id="apps-term-menu" label="Terminals">
  <item label="Rxvt Unicode">
    <action name="Execute">
      <command>urxvt</command>
    </action>
  </item>
  <item label="Gnome Terminal">
    <action name="Execute">
      <command>gnome-terminal</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Xfce Terminal">
    <action name="Execute">
      <command>xfce4-terminal</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Konsole">
    <action name="Execute">
      <command>konsole</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Xterm">
    <action name="Execute"><command>xterm</command></action>
  </item>
</menu>

<menu id="root-menu" label="Openbox 3">
  <separator label="Openbox"/>
  <menu id="applications-menu"/>
  <menu id="preferences-menu"/>
  <menu id="administration-menu"/>
  <separator/>
  <menu id="apps-term-menu"/>
  <separator/>
  <item label="Reconfigure">
    <action name="Reconfigure" />
  </item>
  <item label="Exit">
    <action name="Exit">
      <prompt>yes</prompt>
    </action>
  </item>
  <separator/>
  <item label="Log Out">
    <action name="SessionLogout">
      <prompt>yes</prompt>
    </action>
  </item>
</menu>

</openbox_menu>

openbox-3.4.7.2-numdesks.patch:

--- NEW FILE openbox-3.4.7.2-numdesks.patch ---
diff -up openbox-3.4.7.2/openbox/screen.c.numdesks openbox-3.4.7.2/openbox/screen.c
--- openbox-3.4.7.2/openbox/screen.c.numdesks	2008-04-14 01:22:12.000000000 +0200
+++ openbox-3.4.7.2/openbox/screen.c	2008-05-14 15:53:39.000000000 +0200
@@ -401,7 +401,7 @@ void screen_startup(gboolean reconfig)
        this will also set the default names from the config file up for
        desktops that don't have names yet */
     screen_num_desktops = 0;
-    if (PROP_GET32(RootWindow(ob_display, ob_screen),
+    if (0 && PROP_GET32(RootWindow(ob_display, ob_screen),
                    net_number_of_desktops, cardinal, &d))
     {
         if (d != config_desktops_num) {


--- NEW FILE xdg-menu ---
#!/usr/bin/env python

import gmenu, sys
from xml.sax.saxutils import escape

def walk_menu(entry):
	if entry.get_type() == gmenu.TYPE_DIRECTORY:
		print '<menu id="%s" label="%s">' \
			% (escape(entry.menu_id), escape(entry.get_name()))
		map(walk_menu, entry.get_contents())
		print '</menu>'
	elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
		print """
	<item label="%s">
		<action name="Execute"><command>%s</command></action>
	</item>	""" % (escape(entry.get_name()), escape(entry.get_exec()))

if len(sys.argv) > 1:
	menu = sys.argv[1] + '.menu'
else:
	menu = 'applications.menu'

print '<?xml version="1.0" encoding="UTF-8"?>'
print '<openbox_pipe_menu>'
map(walk_menu, gmenu.lookup_tree(menu).root.get_contents())
print '</openbox_pipe_menu>'


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/openbox/F-8/.cvsignore,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- .cvsignore	17 Apr 2008 11:50:43 -0000	1.11
+++ .cvsignore	14 May 2008 17:07:09 -0000	1.12
@@ -1,2 +1,2 @@
 setlayout.c
-openbox-3.4.7.1.tar.gz
+openbox-3.4.7.2.tar.gz


Index: openbox.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openbox/F-8/openbox.spec,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- openbox.spec	17 Apr 2008 11:50:43 -0000	1.33
+++ openbox.spec	14 May 2008 17:07:09 -0000	1.34
@@ -1,5 +1,5 @@
 Name:		openbox
-Version:	3.4.7.1
+Version:	3.4.7.2
 Release:	1%{?dist}
 Summary:	A highly configurable and standards-compliant X11 window manager
 
@@ -8,8 +8,11 @@
 URL:		http://icculus.org/openbox
 Source0:	http://icculus.org/openbox/releases/%{name}-%{version}.tar.gz
 Source1:	http://icculus.org/openbox/tools/setlayout.c
+Source2:	xdg-menu
+Source3:	menu.xml
 
 Patch0:		openbox-3.4.7.1-autostartdir.patch
+Patch1:		openbox-3.4.7.2-numdesks.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -63,6 +66,7 @@
 %prep
 %setup -q
 %patch0 -p1 -b .autostartdir
+%patch1 -p1 -b .numdesks
 
 
 %build
@@ -78,7 +82,11 @@
 %install
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
+
 install setlayout %{buildroot}%{_bindir}
+install -p %{SOURCE2} %{buildroot}%{_datadir}/%{name}/xdg-menu
+sed 's|_XDGMENU_|%{_datadir}/%{name}/xdg-menu|g' < %{SOURCE3} \
+	> %{buildroot}%{_sysconfdir}/xdg/%{name}/menu.xml
 
 %find_lang %{name}
 rm -f %{buildroot}%{_libdir}/*.la
@@ -92,7 +100,7 @@
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS CHANGELOG COMPLIANCE COPYING README
-%doc data/*.xsd doc/rc-mouse-focus.xml
+%doc data/*.xsd data/menu.xml doc/rc-mouse-focus.xml
 %dir %{_sysconfdir}/xdg/%{name}/
 %config(noreplace) %{_sysconfdir}/xdg/%{name}/*
 %{_bindir}/gnome-panel-control
@@ -101,6 +109,7 @@
 %{_bindir}/setlayout
 %dir %{_datadir}/openbox
 %{_datadir}/openbox/xdg-autostart
+%{_datadir}/openbox/xdg-menu
 %{_datadir}/themes/*/
 %{_datadir}/pixmaps/%{name}.png
 %{_datadir}/gnome/wm-properties/
@@ -125,6 +134,11 @@
 
 
 %changelog
+* Wed May 14 2008 Miroslav Lichvar <mlichvar at redhat.com> - 3.4.7.2-1
+- Update to 3.4.7.2
+- Use gnome menus by default (Luke Macken) (#443548)
+- Force setting number of desktops (#444135)
+
 * Thu Apr 17 2008 Miroslav Lichvar <mlichvar at redhat.com> - 3.4.7.1-1
 - Update to 3.4.7.1
 - Don't require /usr/share/themes


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/openbox/F-8/sources,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- sources	17 Apr 2008 11:50:43 -0000	1.13
+++ sources	14 May 2008 17:07:09 -0000	1.14
@@ -1,2 +1,2 @@
 76f263e1550532ae54fd53c3a49b2c71  setlayout.c
-7012f5690264556890a7b812f892beef  openbox-3.4.7.1.tar.gz
+9e7589e90519bc6ac2f4656ea6869439  openbox-3.4.7.2.tar.gz




More information about the fedora-extras-commits mailing list