Mercurial > pidgin
annotate console/gntidle.c @ 15741:50c25be2563b
Better handle large windows that don't fit into the screen (eg. the preference
window when we add more prefs there). The default binding for scrolling in such
a window are, for the moment, alt-ctrl-l and alt-ctrl-k.
Things still to be done:
* Give a clear onscreen indication that there is more to the window than meets the eye.
* Update the scrolling when the window is resized.
* Use some better binding.
* Update the manual.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 27 Feb 2007 09:06:05 +0000 |
parents | 73219517f583 |
children |
rev | line source |
---|---|
15739
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
1 /* |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
2 * gaim |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
3 * |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
4 * Gaim is the legal property of its developers, whose names are too numerous |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
5 * to list here. Please refer to the COPYRIGHT file distributed with this |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
6 * source distribution. |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
7 * |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
8 * This program is free software; you can redistribute it and/or modify |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
11 * (at your option) any later version. |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
12 * |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
13 * This program is distributed in the hope that it will be useful, |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
16 * GNU General Public License for more details. |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
17 * |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
18 * You should have received a copy of the GNU General Public License |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
19 * along with this program; if not, write to the Free Software |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
21 * |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
22 */ |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
23 |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
24 #include "internal.h" |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
25 #include "gntidle.h" |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
26 #include "gntwm.h" |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
27 |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
28 #include "idle.h" |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
29 |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
30 static time_t |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
31 gg_get_idle_time() |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
32 { |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
33 return gnt_wm_get_idle_time(); |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
34 } |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
35 |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
36 static GaimIdleUiOps ui_ops = |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
37 { |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
38 gg_get_idle_time |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
39 }; |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
40 |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
41 GaimIdleUiOps * |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
42 gg_idle_get_ui_ops() |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
43 { |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
44 return &ui_ops; |
73219517f583
gntgaim idle reporting, this fixes idle return
Richard Nelson <wabz@pidgin.im>
parents:
diff
changeset
|
45 } |