[gmrun] - Multi-head fix.
Gilboa Davara
gilboa at fedoraproject.org
Wed Nov 16 13:16:27 UTC 2011
commit 0a5bce02ceae25a9885f2cbcde3b03514584b8e2
Author: Gilboa Davara <gilboa at gilboa-home-dev.localdomain>
Date: Wed Nov 16 15:16:19 2011 +0200
- Multi-head fix.
gmrun-0.9.2-multihead.patch | 34 ++++++++++++++++++++++++++++++++++
gmrun.spec | 7 ++++++-
2 files changed, 40 insertions(+), 1 deletions(-)
---
diff --git a/gmrun-0.9.2-multihead.patch b/gmrun-0.9.2-multihead.patch
new file mode 100644
index 0000000..f34dab2
--- /dev/null
+++ b/gmrun-0.9.2-multihead.patch
@@ -0,0 +1,34 @@
+--- gmrun-0.9.2/src/main.cc.old 2011-11-16 15:06:39.421653557 +0200
++++ gmrun-0.9.2/src/main.cc 2011-11-16 15:06:41.709647512 +0200
+@@ -542,7 +542,6 @@
+ gtk_widget_set_name(win, "Msh_Run_Window");
+ gtk_window_set_title(GTK_WINDOW(win), "Execute program feat. completion");
+ gtk_window_set_policy(GTK_WINDOW(win), FALSE, FALSE, TRUE);
+- // gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER);
+ gtk_container_set_border_width(GTK_CONTAINER(win), 4);
+ gtk_signal_connect(GTK_OBJECT(win), "destroy",
+ GTK_SIGNAL_FUNC(gtk_main_quit), NULL);
+@@ -654,7 +653,10 @@
+ }
+ else
+ {
+- gtk_widget_set_uposition(win, prefs_left, prefs_top);
++ if ((prefs_top == -1) && (prefs_left == -1))
++ gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER);
++ else
++ gtk_widget_set_uposition(win, prefs_left, prefs_top);
+ }
+
+ gtk_widget_show(win);
+--- gmrun-0.9.2/config/gmrunrc.old 2011-11-16 15:06:20.717702968 +0200
++++ gmrun-0.9.2/config/gmrunrc 2011-11-16 15:06:31.805673674 +0200
+@@ -7,7 +7,8 @@
+ TermExec = ${Terminal} -e
+ AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man
+
+-# Set window geometry (except height)
++# Set window geometry (except height).
++# Top / Left = -1: Center dialog box in the current screen.
+ Width = 400
+ Top = 100
+ Left = 200
diff --git a/gmrun.spec b/gmrun.spec
index 0b03ee9..869cb1d 100644
--- a/gmrun.spec
+++ b/gmrun.spec
@@ -1,6 +1,6 @@
Name: gmrun
Version: 0.9.2
-Release: 24%{?dist}
+Release: 25%{?dist}
Summary: Lightweight "Run program" dialog box with search history and tab completion
%if 0%{?rhel} != 0
@@ -23,6 +23,7 @@ Patch2: gmrun-0.9.2-mousewheel.patch
%if %{new_version} == 1
Patch3: gmrun-0.9.2-f12.patch
%endif
+Patch4: gmrun-0.9.2-multihead.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %{new_version} == 1
BuildRequires: popt-devel
@@ -55,6 +56,7 @@ prefix.
%if %{new_version} == 1
%patch3 -p1 -b .f12_support
%endif
+%patch4 -p1 -b .multihead
%build
@@ -79,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Tue Nov 16 2011 Gilboa Davara <gilboad[AT]gmail.com> - 0.9.2-25
+- Multi-head fix. (#746187, initial patch by Jens Petersen)
+
* Mon Jul 25 2011 Gilboa Davara <gilboad[AT]gmail.com> - 0.9.2-24
- EL6 support.
- Cleaner spec.
More information about the scm-commits
mailing list