diff options
author | Federico Mena Quintero <federico@redhat.com> | 1999-11-03 05:48:52 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-11-03 05:48:52 +0800 |
commit | 510e8547bba307dc1e7dd72bd1484faa27db1a4f (patch) | |
tree | 51f24323e3c5bd756b32322bf20562bba6b036a9 /widgets/misc/pixmaps | |
parent | c5e2fd8592f00928776550e078f9eeba31caa163 (diff) | |
download | gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.tar gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.tar.gz gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.tar.bz2 gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.tar.lz gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.tar.xz gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.tar.zst gsoc2013-evolution-510e8547bba307dc1e7dd72bd1484faa27db1a4f.zip |
Renamed the move modes to MODE_MOVE and MOVE_MODE_DRAGGING.
1999-11-02 Federico Mena Quintero <federico@redhat.com>
* src/print-preview.c (PreviewMode): Renamed the move modes to
MODE_MOVE and MOVE_MODE_DRAGGING.
(preview_canvas_button_press): Split the event handling code
between several functions. Rationale: we will want drag-zoom and
we need different modes for this, and the code in a single
function would get unwieldy. In addition, grab the pointer and
use GDK_POINTER_MOTION_HINT_MASK for better behavior.
(PrintPreview): Added fields for drag anchor and drag offset.
(drag_to): New function to drag/scroll.
(create_preview_canvas): Connect to the different event handlers.
(do_zoom): We do not need to re-render the page; just set the zoom
factor. Also, use exponential zooming for better behavior.
* src/cursors.h: Moved the cursor #defines to an enum. This way
we can check for a max value in cursor_get(). Moved the cursor
array to the .c file and made it private.
* src/cursors.c (cursors_init): Added sanity check so that all
cursors are defined.
(cursor_get): New function to get a cursor based on its type.
(cursors): Added hand cursors.
* src/pixmaps/cursor_hand_{open,closed}.xpm: Added hand cursors.
svn path=/trunk/; revision=1365
Diffstat (limited to 'widgets/misc/pixmaps')
-rw-r--r-- | widgets/misc/pixmaps/cursor_hand_closed.xpm | 38 | ||||
-rw-r--r-- | widgets/misc/pixmaps/cursor_hand_open.xpm | 38 |
2 files changed, 76 insertions, 0 deletions
diff --git a/widgets/misc/pixmaps/cursor_hand_closed.xpm b/widgets/misc/pixmaps/cursor_hand_closed.xpm new file mode 100644 index 0000000000..61a6de4b88 --- /dev/null +++ b/widgets/misc/pixmaps/cursor_hand_closed.xpm @@ -0,0 +1,38 @@ +/* XPM */ +static char * cursor_hand_closed_xpm[] = { +"32 32 3 1", +" c None", +". c #000000", +"+ c #FFFFFF", +" ", +" ", +" ", +" ", +" ", +" .. ", +" ..++... ", +" .+++++++.. ", +" .+++++++++. ", +" ...+++++++++. ", +" .++.+++++++++. ", +" .++++++++++++. ", +" .+++++++++++. ", +" .++++++++++. ", +" .+++++++++. ", +" .+++++++. ", +" .++++++. ", +" .++++++. ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; diff --git a/widgets/misc/pixmaps/cursor_hand_open.xpm b/widgets/misc/pixmaps/cursor_hand_open.xpm new file mode 100644 index 0000000000..048acc8054 --- /dev/null +++ b/widgets/misc/pixmaps/cursor_hand_open.xpm @@ -0,0 +1,38 @@ +/* XPM */ +static char * cursor_hand_open_xpm[] = { +"32 32 3 1", +" c None", +". c #000000", +"+ c #FFFFFF", +" ", +" ", +" .. ", +" .. .++... ", +" .++..++.++. ", +" .++..++.++. . ", +" .++.++.++..+. ", +" .++.++.++.++. ", +" .. .+++++++.++. ", +" .++..++++++++++. ", +" .+++.+++++++++. ", +" .++++++++++++. ", +" .+++++++++++. ", +" .++++++++++. ", +" .+++++++++. ", +" .+++++++. ", +" .++++++. ", +" .++++++. ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; |