summaryrefslogtreecommitdiff
path: root/desktop/gmrun/patches
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gmrun/patches')
-rw-r--r--desktop/gmrun/patches/gmrun-0.9.2-gcc43.patch44
-rw-r--r--desktop/gmrun/patches/gmrun-0.9.2-mousewheel.patch68
-rw-r--r--desktop/gmrun/patches/gmrun-gmrunrc.patch37
-rw-r--r--desktop/gmrun/patches/gtkcompletionline.cc.patch11
4 files changed, 160 insertions, 0 deletions
diff --git a/desktop/gmrun/patches/gmrun-0.9.2-gcc43.patch b/desktop/gmrun/patches/gmrun-0.9.2-gcc43.patch
new file mode 100644
index 0000000000..5f889d4e1e
--- /dev/null
+++ b/desktop/gmrun/patches/gmrun-0.9.2-gcc43.patch
@@ -0,0 +1,44 @@
+diff -ur gmrun-0.9.2/src/ci_string.h gmrun-0.9.2.new/src/ci_string.h
+--- gmrun-0.9.2/src/ci_string.h 2001-05-16 17:39:31.000000000 +0300
++++ gmrun-0.9.2.new/src/ci_string.h 2008-01-15 09:10:39.000000000 +0200
+@@ -7,6 +7,7 @@
+ #define __CI_STRING_H__
+
+ #include <string>
++#include <string.h>
+ #include <ctype.h>
+
+ struct ci_char_traits : public std::char_traits<char>
+diff -ur gmrun-0.9.2/src/gtkcompletionline.cc gmrun-0.9.2.new/src/gtkcompletionline.cc
+--- gmrun-0.9.2/src/gtkcompletionline.cc 2003-11-16 12:55:07.000000000 +0200
++++ gmrun-0.9.2.new/src/gtkcompletionline.cc 2008-01-15 09:10:39.000000000 +0200
+@@ -24,6 +24,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++#include <string.h>
+
+ #include <iostream>
+ #include <set>
+diff -ur gmrun-0.9.2/src/main.cc gmrun-0.9.2.new/src/main.cc
+--- gmrun-0.9.2/src/main.cc 2003-11-16 12:55:07.000000000 +0200
++++ gmrun-0.9.2.new/src/main.cc 2008-01-15 09:10:39.000000000 +0200
+@@ -20,6 +20,7 @@
+ #include <algorithm>
+ #include <iterator>
+ #include <popt.h>
++#include <string.h>
+
+ using namespace std;
+
+diff -ur gmrun-0.9.2/src/prefs.cc gmrun-0.9.2.new/src/prefs.cc
+--- gmrun-0.9.2/src/prefs.cc 2002-08-16 13:48:22.000000000 +0300
++++ gmrun-0.9.2.new/src/prefs.cc 2008-01-16 19:48:39.000000000 +0200
+@@ -13,6 +13,7 @@
+ #include <fstream>
+ #include <iostream>
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include <list>
+
diff --git a/desktop/gmrun/patches/gmrun-0.9.2-mousewheel.patch b/desktop/gmrun/patches/gmrun-0.9.2-mousewheel.patch
new file mode 100644
index 0000000000..ac1f843223
--- /dev/null
+++ b/desktop/gmrun/patches/gmrun-0.9.2-mousewheel.patch
@@ -0,0 +1,68 @@
+diff -ur gmrun-0.9.2/src/gtkcompletionline.cc gmrun-0.9.2.new/src/gtkcompletionline.cc
+--- gmrun-0.9.2/src/gtkcompletionline.cc 2010-01-11 12:20:16.076644635 +0200
++++ gmrun-0.9.2.new/src/gtkcompletionline.cc 2010-01-11 12:21:11.815581518 +0200
+@@ -75,6 +75,8 @@
+
+ static gboolean
+ on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data);
++static gboolean
++on_scroll(GtkCompletionLine *cl, GdkEventScroll *event, gpointer data);
+
+ /* get_type */
+ guint gtk_completion_line_get_type(void)
+@@ -204,6 +206,8 @@
+ GTK_SIGNAL_FUNC(on_key_press), NULL);
+ gtk_signal_connect(GTK_OBJECT(object), "key_release_event",
+ GTK_SIGNAL_FUNC(on_key_press), NULL);
++ gtk_signal_connect(GTK_OBJECT(object), "scroll-event",
++ GTK_SIGNAL_FUNC(on_scroll), NULL);
+
+ object->hist = new HistoryFile();
+
+@@ -954,6 +958,45 @@
+ }
+
+ static gboolean
++on_scroll(GtkCompletionLine *cl, GdkEventScroll *event, gpointer data)
++{
++ if (event->direction == GDK_SCROLL_UP) {
++ if (cl->win_compl != NULL) {
++ int &item = cl->list_compl_items_where;
++ item--;
++ if (item < 0) {
++ item = 0;
++ } else {
++ complete_from_list(cl);
++ }
++ } else {
++ up_history(cl);
++ }
++ if (MODE_SRC) {
++ search_off(cl);
++ }
++ return TRUE;
++ } else if (event->direction == GDK_SCROLL_DOWN) {
++ if (cl->win_compl != NULL) {
++ int &item = cl->list_compl_items_where;
++ item++;
++ if (item >= cl->list_compl_nr_rows) {
++ item = cl->list_compl_nr_rows - 1;
++ } else {
++ complete_from_list(cl);
++ }
++ } else {
++ down_history(cl);
++ }
++ if (MODE_SRC) {
++ search_off(cl);
++ }
++ return TRUE;
++ }
++ return FALSE;
++}
++
++static gboolean
+ on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data)
+ {
+ static gint tt_id = -1;
+Only in gmrun-0.9.2.new/src: gtkcompletionline.cc.orig
diff --git a/desktop/gmrun/patches/gmrun-gmrunrc.patch b/desktop/gmrun/patches/gmrun-gmrunrc.patch
new file mode 100644
index 0000000000..6a53462590
--- /dev/null
+++ b/desktop/gmrun/patches/gmrun-gmrunrc.patch
@@ -0,0 +1,37 @@
+--- gmrun-0.9.2/config/gmrunrc.old 2003-11-16 12:43:41.000000000 +0200
++++ gmrun-0.9.2/config/gmrunrc 2007-01-18 16:05:47.000000000 +0200
+@@ -3,7 +3,7 @@
+ # GPL v2.0 applies
+
+ # Set terminal
+-Terminal = gnome-terminal --start-factory-server --use-factory
++Terminal = xterm
+ TermExec = ${Terminal} -e
+ AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man
+
+@@ -32,18 +32,14 @@
+ # - %u gets replaced with the whole URL ("http://www.google.com")
+ # - %s gets replaced with "//www.google.com". This is useful for URL-s
+ # like "man:printf" --> %s will get replaced with "printf"
+-URL_http = mozilla -remote "openURL(%u, new-window)"
+-URL_mailto = mozilla -remote "mailto(%s)"
++URL_http = xdg-open %u
++URL_mailto = xdg-email %u
++URL_file = xdg-open %s
+ URL_man = ${TermExec} 'man %s'
+ URL_info = ${TermExec} 'info %s'
+-URL_pd = ${TermExec} 'perldoc %s'
+-URL_file = nautilus %s
+-URL_readme = ${TermExec} 'less /usr/doc/%s/README'
+-URL_info = ${TermExec} 'info %s'
+-URL_sh = sh -c '%s'
++URL_search = xdg-open 'http://www.google.com/search?q=%s'
+
+ # extension handlers
+-EXT:doc,rtf = AbiWord %s
+-EXT:txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am = emacs %s
+-EXT:ps = gv %s
+-EXT:pdf = xpdf %s
++# Customize your own extension handler.
++EXT:doc,rtf,txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am,ps,pdf = xdg-open %s
++
diff --git a/desktop/gmrun/patches/gtkcompletionline.cc.patch b/desktop/gmrun/patches/gtkcompletionline.cc.patch
new file mode 100644
index 0000000000..989183b2be
--- /dev/null
+++ b/desktop/gmrun/patches/gtkcompletionline.cc.patch
@@ -0,0 +1,11 @@
+--- gmrun-0.9.2/src/gtkcompletionline.cc.orig 2009-06-19 22:38:14.000000000 +0400
++++ gmrun-0.9.2/src/gtkcompletionline.cc 2009-06-19 22:37:14.000000000 +0400
+@@ -376,7 +377,7 @@
+ return 0;
+ }
+
+-int my_alphasort(const void* va, const void* vb) {
++int my_alphasort(const dirent** va, const dirent** vb) {
+ const struct dirent** a = (const struct dirent**)va;
+ const struct dirent** b = (const struct dirent**)vb;
+