[gromit: 5/13] Import of gromit history
- From: Simon Budig <simon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gromit: 5/13] Import of gromit history
- Date: Tue, 16 Mar 2010 22:23:52 +0000 (UTC)
commit eb17303052ac547bf903ebc1090df32fe92488cf
Author: Simon Budig <simon budig de>
Date: Thu Dec 28 12:00:00 2000 +0100
Import of gromit history
README | 3 +++
gromit.c | 5 ++++-
sawfish-config | 9 +++++++--
3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/README b/README
index 9bcec97..24e7a18 100644
--- a/README
+++ b/README
@@ -129,6 +129,9 @@ pattern on screen. Especially terminal-programs tend to scroll
incredibly slow if something is painted over their window. There is
nothing I can do about this.
+Gromit may disable DnD, since this interferes with the special Selection-Code.
+Unfortunately I have no better idea for the (de)activation of Gromit.
+Hopefully I can find a way to work around this.
This Program is distributed under the Gnu General Public License. See
the file COPYING for details.
diff --git a/gromit.c b/gromit.c
index 3132b07..eebd276 100644
--- a/gromit.c
+++ b/gromit.c
@@ -164,7 +164,7 @@ gromit_paint_context_print (gchar *name, GromitPaintContext *context)
default:
g_printerr ("UNKNOWN, "); break;
};
- g_printerr ("width: %2d, ", context->width);
+ g_printerr ("width: %3d, ", context->width);
g_printerr ("color: #%02X%02X%02X\n", context->fg_color->red >> 8,
context->fg_color->green >> 8, context->fg_color->blue >> 8);
}
@@ -380,6 +380,7 @@ proximity_in (GtkWidget *win, GdkEventProximity *ev, gpointer user_data)
gint x, y;
GdkModifierType state;
+ g_printerr ("proximity_in\n");
gdk_window_get_pointer (data->win->window, &x, &y, &state);
gromit_select_tool (data, ev->deviceid, state);
return 0;
@@ -391,6 +392,7 @@ proximity_out (GtkWidget *win, GdkEventProximity *ev, gpointer user_data)
{
GromitData *data = (GromitData *) user_data;
+ g_printerr ("proximity_out\n");
data->cur_context = data->default_pen;
if (data->cur_context->type == GROMIT_ERASER)
@@ -408,6 +410,7 @@ paint (GtkWidget *win, GdkEventButton *ev, gpointer user_data)
{
GromitData *data = (GromitData *) user_data;
+ g_printerr ("Button %d\n", ev->button);
/* See GdkModifierType. Am I fixing a Gtk misbehaviour??? */
ev->state |= 1 << (ev->button + 7);
if (ev->state != data->state || ev->deviceid != data->deviceid)
diff --git a/sawfish-config b/sawfish-config
index 8d6a55d..2eb56ed 100755
--- a/sawfish-config
+++ b/sawfish-config
@@ -1,5 +1,10 @@
#!/bin/sh
+case $0 in
+ /*) LOCATION=`dirname $0` ;;
+ *) LOCATION="$PWD"/`dirname $0` ;;
+esac
+
sawfish-client -- >/dev/null <<ENDOFSAWFISHCONFIG
(defun gromit-toggle-grab ()
@@ -7,7 +12,7 @@ sawfish-client -- >/dev/null <<ENDOFSAWFISHCONFIG
(ungrab-pointer)
(ungrab-keyboard)
(sync-server)
- (system "/home/simon/src/gromit/gromit --toggle &")
+ (system "cd \"$LOCATION\" ; ./gromit --toggle &")
)
(defun gromit-clear-screen ()
@@ -15,7 +20,7 @@ sawfish-client -- >/dev/null <<ENDOFSAWFISHCONFIG
(ungrab-pointer)
(ungrab-keyboard)
(sync-server)
- (system "/home/simon/src/gromit/gromit --clear &")
+ (system "cd \"$LOCATION\" ; ./gromit --clear &")
)
(bind-keys global-keymap "Pause" 'gromit-toggle-grab)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]