all repos — openbox @ 163950b23bf796a39870044417ca54d667b6b470

openbox fork - make it a bit more like ryudo

Merge branch 'backport' into work

Conflicts:

	Makefile.am
Mikael Magnusson mikachu@comhem.se
commit

163950b23bf796a39870044417ca54d667b6b470

parent

f857b0eb99471c9123d6e641afafeab5f47700e2

3 files changed, 10 insertions(+), 13 deletions(-)

jump to
M Makefile.amMakefile.am

@@ -33,7 +33,7 @@ bin_PROGRAMS = \

openbox/openbox \ tools/gnome-panel-control/gnome-panel-control -secretbin_SCRIPTS = \ +dist_secretbin_SCRIPTS = \ tools/xdg-autostart/xdg-autostart nodist_bin_SCRIPTS = \

@@ -417,8 +417,10 @@

dist_pixmap_DATA = \ data/openbox.png +nodist_rc_DATA = \ + data/autostart.sh + dist_rc_DATA = \ - data/autostart.sh \ data/rc.xml \ data/menu.xml

@@ -457,6 +459,7 @@ data/xsession/openbox-gnome.desktop \

data/xsession/openbox-kde.desktop dist_noinst_DATA = \ + data/autostart.sh.in \ data/rc.xsd \ data/menu.xsd \ data/xsession/openbox.desktop.in \
M openbox/actions/execute.copenbox/actions/execute.c

@@ -76,6 +76,7 @@ g_free(o->cmd);

g_free(o->sn_name); g_free(o->sn_icon); g_free(o->sn_wmclass); + g_free(o->prompt); g_free(o); } }

@@ -94,20 +95,13 @@ }

static gboolean run_func(ObActionsData *data, gpointer options); -static void prompt_cb(ObPrompt *p, gint result, gpointer data) +static void prompt_cb(ObPrompt *p, gint result, gpointer options) { - Options *options = data; - if (result) run_func(NULL, options); prompt_unref(p); - - g_free(options->cmd); - g_free(options->sn_name); - g_free(options->sn_icon); - g_free(options->sn_wmclass); - g_free(options); + free_func(options); } /* Always return FALSE because its not interactive */
M openbox/actions/exit.copenbox/actions/exit.c

@@ -43,8 +43,8 @@

if (o->prompt) { ObPrompt *p; ObPromptAnswer answers[] = { - { _("No"), 0 }, - { _("Yes"), 1 } + { _("Cancel"), 0 }, + { _("Exit"), 1 } }; p = prompt_new(_("Are you sure you want to exit Openbox?"),