diff --git a/lxterminal-0.1.8-hide_menu_bar-sf3032519.patch b/lxterminal-0.1.8-hide_menu_bar-sf3032519.patch new file mode 100644 index 0000000..7580d9d --- /dev/null +++ b/lxterminal-0.1.8-hide_menu_bar-sf3032519.patch @@ -0,0 +1,20 @@ +diff --git a/src/lxterminal.c b/src/lxterminal.c +index dc63796..a263150 100644 +--- a/src/lxterminal.c ++++ b/src/lxterminal.c +@@ -1244,12 +1244,12 @@ LXTerminal * lxterminal_initialize(LXTermWindow * lxtermwin, CommandArguments * + /* Initialize accelerators. */ + terminal_accelerator_initialize(terminal); + +- /* Update terminal settings. */ +- terminal_settings_apply(terminal); +- + /* Show the widget, so it is realized and has a window. */ + gtk_widget_show_all(terminal->window); + ++ /* Update terminal settings. */ ++ terminal_settings_apply(terminal); ++ + /* Initialize the geometry hints. */ + gdk_window_get_geometry_hints(GTK_WIDGET(term->vte)->window, &terminal->geometry, &terminal->geometry_mask); + diff --git a/lxterminal.changes b/lxterminal.changes index 541c097..66d7753 100644 --- a/lxterminal.changes +++ b/lxterminal.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 21 10:07:47 UTC 2010 - andrea@opensuse.org + +- added lxterminal-0.1.8-hide_menu_bar-sf3032519.patch to fix + bug sf#3032519 + ------------------------------------------------------------------- Tue Jul 20 07:42:08 UTC 2010 - andrea@opensuse.org diff --git a/lxterminal.spec b/lxterminal.spec index 75fa79a..4865be1 100644 --- a/lxterminal.spec +++ b/lxterminal.spec @@ -32,6 +32,10 @@ Patch0: %name-0.1.8-disable-f10.patch # PATCH-FIX-UPSTREAM lxterminal-0.1.8-fix-alt_n-sf3006779.patch andrea@opensuse.org # upstream patch to fix sf#3006779 (enable/disable Alt+n) Patch1: %name-0.1.8-fix-alt_n-sf3006779.patch.bz2 +# PATCH-FIX-UPSTREAM lxterminal-0.1.8-hide_menu_bar-sf3032519.patch andrea@opensuse.org +# upstream patch to fix sf#3032519 if toggle on hide menu bar in preference, then exit +# and restart lxterminal, lxterminal will not hide menu bar, This patch fix this problem +Patch2: %name-0.1.8-hide_menu_bar-sf3032519.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes gtk2-devel intltool pkg-config update-desktop-files BuildRequires: docbook-utils docbook-xsl-stylesheets libxslt-devel vte-devel @@ -48,6 +52,7 @@ of the LXDE project %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build export CFLAGS="$RPM_OPT_FLAGS"