- Use gnome menus by default (Luke Macken) (#443548) - Force setting number of desktops (#444135)epel9
parent
394bf5b713
commit
3f61e81242
@ -1,2 +1,2 @@
|
||||
setlayout.c
|
||||
openbox-3.4.7.1.tar.gz
|
||||
openbox-3.4.7.2.tar.gz
|
||||
|
@ -0,0 +1,68 @@
|
||||
<?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>
|
@ -0,0 +1,12 @@
|
||||
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) {
|
@ -1,2 +1,2 @@
|
||||
76f263e1550532ae54fd53c3a49b2c71 setlayout.c
|
||||
7012f5690264556890a7b812f892beef openbox-3.4.7.1.tar.gz
|
||||
9e7589e90519bc6ac2f4656ea6869439 openbox-3.4.7.2.tar.gz
|
||||
|
@ -0,0 +1,26 @@
|
||||
#!/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>'
|
Loading…
Reference in new issue