Changeset ebf9132bb918ff995e2b561867be329ec3e9a9ee
- Timestamp:
- 07/15/09 00:11:01 (3 years ago)
- Author:
- Leo Antunes <leo@…>
- Children:
- eac542b8dbbb0cd226442fbe8494256371810a8a
- Parents:
- 89ea750cd5432fd5fcf7b67190ef84146f566fe8
- git-committer:
- Leo Antunes <leo@…> (07/15/09 00:11:01)
- Message:
-
listen to ActiveChange instead of SessionIdleChanged
it's been dropped as of gnome-screensaver 2.26.0.
(thanks Thomas Krug for the heads-up)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rbbdcdb4
|
rebf9132
|
|
| | 1 | Version 0.2.2 (2009-07-14): |
| | 2 | |
| | 3 | - listen to ActiveChange instead of SessionIdleChanged, it's |
| | 4 | been dropped as of gnome-screensaver 2.26.0. (thanks Thomas |
| | 5 | Krug for the heads-up) |
| | 6 | |
| | 7 | Version 0.2.1 (2009-06-01): |
| | 8 | |
| | 9 | - fix linking in build-system |
| | 10 | |
| 1 | 11 | Version 0.2 (2009-06-01): |
| 2 | 12 | |
-
|
rbbdcdb4
|
rebf9132
|
|
| 21 | 21 | #define PURPLE_PLUGINS |
| 22 | 22 | |
| 23 | | #define AWAYONLOCK_VERSION "0.2" |
| | 23 | #define AWAYONLOCK_VERSION "0.2.2" |
| 24 | 24 | #define AWAYONLOCK_PLUGIN_ID "core-costela-awayonlock" |
| 25 | 25 | |
| … |
… |
|
| 81 | 81 | |
| 82 | 82 | dbus_g_proxy_add_signal( dbus_proxy, |
| 83 | | "SessionIdleChanged", |
| | 83 | "ActiveChanged", |
| 84 | 84 | G_TYPE_BOOLEAN, |
| 85 | 85 | G_TYPE_INVALID |
| … |
… |
|
| 87 | 87 | |
| 88 | 88 | dbus_g_proxy_connect_signal( dbus_proxy, |
| 89 | | "SessionIdleChanged", |
| | 89 | "ActiveChanged", |
| 90 | 90 | G_CALLBACK(awayonlock_idle_changed_callback), |
| 91 | 91 | NULL, |
| … |
… |
|
| 135 | 135 | 0, |
| 136 | 136 | 0, |
| 137 | | N_("http://costela.net/projects/away-on-lock"), |
| | 137 | N_("http://costela.net/projects/awayonlock"), |
| 138 | 138 | |
| 139 | 139 | plugin_load, |
-
|
rf61e5d9
|
rebf9132
|
|
| 14 | 14 | msgid "" |
| 15 | 15 | msgstr "" |
| 16 | | "#-#-#-#-# pt_BR.po (PACKAGE VERSION) #-#-#-#-#\n" |
| 17 | 16 | "Project-Id-Version: PACKAGE VERSION\n" |
| 18 | 17 | "Report-Msgid-Bugs-To: \n" |
| 19 | | "POT-Creation-Date: 2009-02-09 17:58+0100\n" |
| | 18 | "POT-Creation-Date: 2009-06-01 22:51+0200\n" |
| 20 | 19 | "PO-Revision-Date: 2009-01-31 22:13+0100\n" |
| 21 | 20 | "Last-Translator: <leo@costela.net>\n" |
| … |
… |
|
| 24 | 23 | "Content-Type: text/plain; charset=UTF-8\n" |
| 25 | 24 | "Content-Transfer-Encoding: 8bit\n" |
| | 25 | "#-#-#-#-# pt_BR.po (PACKAGE VERSION) #-#-#-#-#\n" |
| 26 | 26 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" |
| 27 | 27 | |
| 28 | | #: awayonlock.c:50 |
| | 28 | #: awayonlock.c:157 |
| | 29 | msgid "Away-on-lock" |
| | 30 | msgstr "" |
| | 31 | |
| | 32 | #: prefs.c:44 |
| | 33 | msgid "Default away status" |
| | 34 | msgstr "Status ausente padrão" |
| | 35 | |
| | 36 | #: awayonlock.c:77 |
| | 37 | msgid "Failed to create a DBus Proxy." |
| | 38 | msgstr "Falha ao criar um Proxy DBus" |
| | 39 | |
| | 40 | #: awayonlock.c:61 |
| 29 | 41 | msgid "Failed to get a DBus connection." |
| 30 | 42 | msgstr "Falha ao conseguir uma conexão DBus" |
| 31 | 43 | |
| 32 | | #: awayonlock.c:62 |
| 33 | | msgid "Failed to create a DBus Proxy." |
| 34 | | msgstr "Falha ao criar um Proxy DBus" |
| 35 | | |
| 36 | | #: awayonlock.c:157 awayonlock.c:125 |
| 37 | | msgid "Away-on-lock" |
| | 44 | #: awayonlock.c:160 |
| | 45 | msgid "Leo Antunes <leo@costela.net>" |
| 38 | 46 | msgstr "" |
| 39 | 47 | |
| 40 | | #: awayonlock.c:126 |
| | 48 | #: awayonlock.c:158 |
| 41 | 49 | msgid "Sets you as away when your screensaver is activated" |
| 42 | 50 | msgstr "Define status como ausente quando o salva-tela é ativado" |
| 43 | 51 | |
| 44 | | #: awayonlock.c:127 |
| | 52 | #: prefs.c:42 |
| | 53 | msgid "Status to set on screensaver activation" |
| | 54 | msgstr "Status para usar quando o salva-tela for ativado" |
| | 55 | |
| | 56 | #: awayonlock.c:159 |
| 45 | 57 | msgid "" |
| 46 | 58 | "This plugin sets your status to the default away status whenever your " |
| … |
… |
|
| 49 | 61 | "Este plugin define o status atual como o status ausente padrão quando o " |
| 50 | 62 | "salva-tela é ativado" |
| 51 | | |
| 52 | | #: awayonlock.c:160 awayonlock.c:128 |
| 53 | | msgid "Leo Antunes <leo@costela.net>" |
| 54 | | msgstr "" |
| 55 | | |
| 56 | | #: prefs.c:42 |
| 57 | | msgid "Status to set on screensaver activation" |
| 58 | | msgstr "Status para usar quando o salva-tela for ativado" |
| 59 | | |
| 60 | | #: prefs.c:44 |
| 61 | | msgid "Default away status" |
| 62 | | msgstr "Status ausente padrão" |
-
|
r7bfa81d
|
rebf9132
|
|
| 27 | 27 | |
| 28 | 28 | t = Test('/org/gnome/ScreenSaver') |
| 29 | | gobject.timeout_add( 1, t.SessionIdleChanged, dbus.Boolean(1)) |
| 30 | | gobject.timeout_add(2000, t.SessionIdleChanged, dbus.Boolean(0)) |
| | 29 | gobject.timeout_add( 1, t.ActiveChanged, dbus.Boolean(1)) |
| | 30 | gobject.timeout_add(2000, t.ActiveChanged, dbus.Boolean(0)) |
| 31 | 31 | gobject.timeout_add(2001, app.quit) |
| 32 | 32 | |