Merge lp:~noskcaj/ubuntu/saucy/xfce4-power-manager/systemd into lp:ubuntu/saucy/xfce4-power-manager

Proposed by Jackson Doak
Status: Needs review
Proposed branch: lp:~noskcaj/ubuntu/saucy/xfce4-power-manager/systemd
Merge into: lp:ubuntu/saucy/xfce4-power-manager
Diff against target: 13764 lines (+2097/-11300)
34 files modified
.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/po/POTFILES.in (+0/-19)
.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/Makefile.am (+0/-211)
.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.c (+0/-1078)
.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.h (+0/-71)
.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-backlight.c (+0/-478)
.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-notify.c (+0/-409)
.pc/02_translations-fix-invalid-format-strings.patch/po/en_GB.po (+0/-1083)
.pc/02_translations-fix-invalid-format-strings.patch/po/te.po (+0/-1061)
.pc/02_translations-fix-invalid-format-strings.patch/po/tr.po (+0/-1486)
.pc/03_fix-insert-battery.patch/src/xfpm-battery.c (+0/-916)
.pc/03_fix-insert-battery.patch/src/xfpm-power.c (+0/-1755)
.pc/06_fix-suspend-auth-check.patch/src/xfpm-power.c (+0/-1756)
.pc/08_show_preferences_lxde.patch/settings/xfce4-power-manager-settings.desktop.in (+0/-14)
.pc/applied-patches (+0/-6)
.pc/xubuntu_fix-status-icon-other-devices.patch/src/xfpm-battery.c (+0/-918)
debian/changelog (+7/-0)
debian/control (+1/-1)
debian/patches/05_dont-allow-systemd-to-handle-suspend-hibernate-events.patch (+126/-0)
debian/patches/06_add-shutdown-reboot-functionality-for-systemd.patch (+635/-0)
debian/patches/06_fix-suspend-auth-check.patch (+7/-5)
debian/patches/series (+2/-0)
debian/rules (+4/-1)
po/POTFILES.in (+0/-1)
po/en_GB.po (+4/-2)
po/te.po (+20/-0)
po/tr.po (+20/-0)
settings/xfce4-power-manager-settings.desktop.in (+1/-1)
src/Makefile.am (+3/-1)
src/gsd-media-keys-window.c (+1078/-0)
src/gsd-media-keys-window.h (+71/-0)
src/xfpm-backlight.c (+113/-19)
src/xfpm-battery.c (+3/-5)
src/xfpm-notify.c (+1/-1)
src/xfpm-power.c (+1/-2)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/saucy/xfce4-power-manager/systemd
Reviewer Review Type Date Requested Status
Micah Gersten (community) Disapprove
Review via email: mp+202578@code.launchpad.net

Description of the change

SRU fixes from trusty to saucy

To post a comment you must log in.
Revision history for this message
Micah Gersten (micahg) wrote :

diff is not usable due to .pc dir and other things, attaching debdiff to bug

review: Disapprove

Unmerged revisions

37. By Jackson Doak

Run dh-autoreconf to continue to allow arm64 to build

36. By Jackson Doak

Add the patches

35. By Jackson Doak

Add patches from debian svn branch to fix systemd. LP: #1222021

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed directory '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch'
=== removed directory '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/po'
=== removed file '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/po/POTFILES.in'
--- .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/po/POTFILES.in 2013-05-22 00:46:08 +0000
+++ .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/po/POTFILES.in 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1[encoding: UTF-8]
2[type: gettext/glade]data/interfaces/xfpm-settings.ui
3settings/xfpm-settings.c
4settings/xfpm-settings-main.c
5settings/xfce4-power-manager-settings.desktop.in
6common/xfpm-common.c
7src/xfpm-power.c
8src/xfpm-power-common.c
9src/xfpm-battery.c
10src/xfpm-battery.c
11src/xfpm-main.c
12src/xfpm-network-manager.c
13src/xfpm-dpms.c
14src/xfpm-inhibit.c
15src/xfpm-power-info.c
16src/xfce4-power-manager.desktop.in
17src/org.xfce.power.policy.in2
18panel-plugins/brightness/brightness-button.c
19panel-plugins/brightness/xfce4-brightness-plugin.desktop.in.in
200
=== removed directory '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src'
=== removed file '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/Makefile.am'
--- .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/Makefile.am 2013-05-22 00:46:08 +0000
+++ .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/Makefile.am 1970-01-01 00:00:00 +0000
@@ -1,211 +0,0 @@
1bin_PROGRAMS = xfce4-power-manager \
2 xfce4-power-information
3
4xfce4_power_manager_SOURCES = \
5 $(BUILT_SOURCES) \
6 xfpm-enum.h \
7 xfpm-enum-glib.h \
8 xfpm-main.c \
9 xfpm-manager.c \
10 xfpm-manager.h \
11 xfpm-power.c \
12 xfpm-power.h \
13 xfpm-power-common.c \
14 xfpm-power-common.h \
15 xfpm-battery.c \
16 xfpm-battery.h \
17 xfpm-xfconf.c \
18 xfpm-xfconf.h \
19 xfpm-disks.c \
20 xfpm-disks.h \
21 xfpm-console-kit.c \
22 xfpm-console-kit.h \
23 egg-idletime.c \
24 egg-idletime.h \
25 xfpm-backlight.c \
26 xfpm-backlight.h \
27 xfpm-dpms.c \
28 xfpm-dpms.h \
29 xfpm-button.c \
30 xfpm-button.h \
31 xfpm-network-manager.c \
32 xfpm-network-manager.h \
33 xfpm-inhibit.c \
34 xfpm-inhibit.h \
35 xfpm-notify.c \
36 xfpm-notify.h \
37 xfpm-polkit.c \
38 xfpm-polkit.h \
39 xfpm-errors.c \
40 xfpm-errors.h \
41 gsd-media-keys-window.c \
42 gsd-media-keys-window.h
43
44xfce4_power_manager_CFLAGS = \
45 -I$(top_srcdir) \
46 -I$(top_srcdir)/common \
47 -I$(top_srcdir)/libdbus \
48 -DLOCALEDIR=\"$(localedir)\" \
49 -DG_LOG_DOMAIN=\"xfce4-power-manager\" \
50 -DSYSCONFDIR=\"$(sysconfdir)\" \
51 $(GOBJECT_CFLAGS) \
52 $(GTHREAD_CFLAGS) \
53 $(DBUS_GLIB_CFLAGS) \
54 $(LIBXFCE4UI_CFLAGS) \
55 $(XFCONF_CFLAGS) \
56 $(LIBNOTIFY_CFLAGS) \
57 $(XRANDR_CFLAGS) \
58 $(DPMS_CFLAGS) \
59 $(PLATFORM_CPPFLAGS) \
60 $(PLATFORM_CFLAGS)
61
62xfce4_power_manager_LDFLAGS = \
63 -no-undefined \
64 $(PLATFORM_LDFLAGS)
65
66xfce4_power_manager_LDADD = \
67 $(top_builddir)/common/libxfpmcommon.la \
68 $(top_builddir)/libdbus/libxfpmdbus.la \
69 $(GOBJECT_LIBS) \
70 $(GTHREAD_LIBS) \
71 $(DBUS_GLIB_LIBS) \
72 $(LIBXFCE4UI_LIBS) \
73 $(XFCONF_LIBS) \
74 $(LIBNOTIFY_LIBS) \
75 $(XRANDR_LIBS) \
76 $(DPMS_LIBS)
77
78xfce4_power_information_SOURCES = \
79 xfpm-power-info.c \
80 xfpm-power-common.c \
81 xfpm-power-common.h
82
83xfce4_power_information_CFLAGS = \
84 -I$(top_srcdir) \
85 -I$(top_srcdir)/common \
86 -I$(top_srcdir)/libdbus \
87 -DLOCALEDIR=\"$(localedir)\" \
88 -DG_LOG_DOMAIN=\"xfce4-power-information\"\
89 $(GOBJECT_CFLAGS) \
90 $(DBUS_GLIB_CFLAGS) \
91 $(LIBXFCE4UI_CFLAGS) \
92 $(PLATFORM_CPPFLAGS) \
93 $(PLATFORM_CFLAGS)
94
95xfce4_power_information_LDFLAGS = \
96 -no-undefined \
97 $(PLATFORM_LDFLAGS)
98
99xfce4_power_information_LDADD = \
100 $(GOBJECT_LIBS) \
101 $(DBUS_GLIB_LIBS) \
102 $(LIBXFCE4UI_LIBS) \
103 $(top_builddir)/libdbus/libxfpmdbus.la
104
105if ENABLE_POLKIT
106
107sbin_PROGRAMS = xfpm-power-backlight-helper
108
109xfpm_power_backlight_helper_SOURCES = \
110 xfpm-backlight-helper.c
111
112xfpm_power_backlight_helper_LDADD = \
113 $(GLIB_LIBS) \
114 -lm
115
116xfpm_power_backlight_helper_CFLAGS = \
117 $(GLIB_CFLAGS) \
118 $(PLATFORM_CPPFLAGS) \
119 $(PLATFORM_CFLAGS)
120
121polkit_policydir = $(datadir)/polkit-1/actions
122polkit_policy_DATA = \
123 org.xfce.power.policy
124
125# You will need a recent intltool or the patch from this bug
126# http://bugzilla.gnome.org/show_bug.cgi?id=462312
127@INTLTOOL_POLICY_RULE@
128
129.in2.in:
130 sed "s|[@]sbindir@|${sbindir}|" $< > $@
131
132endif
133
134manpagedir = $(mandir)/man1
135
136manpage_DATA = xfce4-power-manager.1
137
138xfpm_glib_headers = \
139 $(srcdir)/xfpm-enum-glib.h
140
141BUILT_SOURCES = \
142 xfce-power-manager-dbus-server.h \
143 xfce-power-manager-dbus-client.h \
144 xfpm-enum-types.c \
145 xfpm-enum-types.h \
146 xfpm-marshal.c \
147 xfpm-marshal.h \
148 org.freedesktop.PowerManagement.h \
149 org.freedesktop.PowerManagement.Inhibit.h
150
151if MAINTAINER_MODE
152
153xfpm-enum-types.h: $(xfpm_glib_headers)
154 ( cd $(srcdir) && glib-mkenums \
155 --fhead "#ifndef _XFPM_ENUM_TYPES_H\n#define _XFPM_ENUM_TYPES_H\n#include <glib-object.h>\nG_BEGIN_DECLS\n" \
156 --fprod "/* enumerations from \"@filename@\" */\n" \
157 --vhead "GType @enum_name@_get_type (void);\n#define XFPM_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
158 --ftail "G_END_DECLS\n\n#endif /* _XFPM_ENUM_TYPES_H__ */" \
159 $(xfpm_glib_headers) ) >> xgen \
160 && (cmp -s xgen xfpm-enum-types.h || cp xgen xfpm-enum-types.h ) \
161 && rm -f xgen xgen~
162
163xfpm-enum-types.c: xfpm-enum-types.h
164 ( cd $(srcdir) && glib-mkenums \
165 --fhead "#include <xfpm-enum-types.h>\n" \
166 --fhead "#include \"xfpm-enum-glib.h\"\n\n" \
167 --fprod "\n/* enumerations from \"@filename@\" */\n" \
168 --vhead "GType\n@enum_name@_get_type (void)\n{\n\tstatic GType type = 0;\n\tif (type == 0) {\n\tstatic const G@Type@Value values[] = {"\
169 --vprod "\t{ @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
170 --vtail "\t{ 0, NULL, NULL }\n\t};\n\ttype = g_@type@_register_static (\"@EnumName@\", values);\n }\n\treturn type;\n}\n" \
171 $(xfpm_glib_headers) ) > xgen \
172 && cp xgen xfpm-enum-types.c \
173 && rm -f xgen xgen~
174
175xfpm-marshal.c: xfpm-marshal.list
176 echo "#include \"xfpm-marshal.h\"" > $@ && \
177 glib-genmarshal $< --prefix=_xfpm_marshal --body >> $@
178
179xfpm-marshal.h: xfpm-marshal.list
180 glib-genmarshal $< --prefix=_xfpm_marshal --header > $@
181
182xfce-power-manager-dbus-server.h: $(srcdir)/org.xfce.Power.Manager.xml
183 dbus-binding-tool --mode=glib-server --prefix=xfpm_manager $< >$@
184
185xfce-power-manager-dbus-client.h: $(srcdir)/org.xfce.Power.Manager.xml
186 dbus-binding-tool --mode=glib-client --prefix=xfpm_manager $< >$@
187
188org.freedesktop.PowerManagement.h: $(srcdir)/org.freedesktop.PowerManagement.xml
189 dbus-binding-tool --mode=glib-server --prefix=xfpm_power $< >$@
190
191org.freedesktop.PowerManagement.Inhibit.h: $(srcdir)/org.freedesktop.PowerManagement.Inhibit.xml
192 dbus-binding-tool --mode=glib-server --prefix=xfpm_inhibit $< >$@
193
194endif
195
196@INTLTOOL_DESKTOP_RULE@
197autostartdir = $(sysconfdir)/xdg/autostart
198autostart_in_files = xfce4-power-manager.desktop.in
199autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
200
201EXTRA_DIST = \
202 xfpm-marshal.list \
203 $(autostart_in_files) \
204 org.xfce.power.policy.in2 \
205 $(manpage_DATA)
206
207DISTCLEANFILES = \
208 $(BUILT_SOURCES) \
209 xfce4-power-manager.desktop \
210 org.xfce.power.policy \
211 org.xfce.power.policy.in
2120
=== removed file '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.c'
--- .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.c 2013-05-22 00:46:08 +0000
+++ .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.c 1970-01-01 00:00:00 +0000
@@ -1,1078 +0,0 @@
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2006-2007 William Jon McCann <mccann@jhu.edu>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 */
20
21#include "config.h"
22
23#include <stdlib.h>
24#include <string.h>
25#include <math.h>
26#include <glib.h>
27#include <glib/gi18n.h>
28#include <gtk/gtk.h>
29
30#include "gsd-media-keys-window.h"
31
32#include "data/interfaces/acme_ui.h"
33
34#define DIALOG_TIMEOUT 2000 /* dialog timeout in ms */
35#define DIALOG_FADE_TIMEOUT 1500 /* timeout before fade starts */
36#define FADE_TIMEOUT 10 /* timeout in ms between each frame of the fade */
37
38#define BG_ALPHA 0.75
39#define FG_ALPHA 1.00
40
41#define GSD_MEDIA_KEYS_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindowPrivate))
42
43struct GsdMediaKeysWindowPrivate
44{
45 guint is_composited : 1;
46 guint hide_timeout_id;
47 guint fade_timeout_id;
48 double fade_out_alpha;
49 GsdMediaKeysWindowAction action;
50 char *icon_name;
51 gboolean show_level;
52
53 guint volume_muted : 1;
54 int volume_level;
55
56 GtkImage *image;
57 GtkWidget *progress;
58};
59
60G_DEFINE_TYPE (GsdMediaKeysWindow, gsd_media_keys_window, GTK_TYPE_WINDOW)
61
62static gboolean
63fade_timeout (GsdMediaKeysWindow *window)
64{
65 if (window->priv->fade_out_alpha <= 0.0) {
66 gtk_widget_hide (GTK_WIDGET (window));
67
68 /* Reset it for the next time */
69 window->priv->fade_out_alpha = 1.0;
70 window->priv->fade_timeout_id = 0;
71
72 return FALSE;
73 } else {
74 GdkRectangle rect;
75 GtkWidget *win = GTK_WIDGET (window);
76 GtkAllocation allocation;
77
78 window->priv->fade_out_alpha -= 0.10;
79
80 rect.x = 0;
81 rect.y = 0;
82 gtk_widget_get_allocation (win, &allocation);
83 rect.width = allocation.width;
84 rect.height = allocation.height;
85
86 gtk_widget_realize (win);
87 gdk_window_invalidate_rect (gtk_widget_get_window (win), &rect, FALSE);
88 }
89
90 return TRUE;
91}
92
93static gboolean
94hide_timeout (GsdMediaKeysWindow *window)
95{
96 if (window->priv->is_composited) {
97 window->priv->hide_timeout_id = 0;
98 window->priv->fade_timeout_id = g_timeout_add (FADE_TIMEOUT,
99 (GSourceFunc) fade_timeout,
100 window);
101 } else {
102 gtk_widget_hide (GTK_WIDGET (window));
103 }
104
105 return FALSE;
106}
107
108static void
109remove_hide_timeout (GsdMediaKeysWindow *window)
110{
111 if (window->priv->hide_timeout_id != 0) {
112 g_source_remove (window->priv->hide_timeout_id);
113 window->priv->hide_timeout_id = 0;
114 }
115
116 if (window->priv->fade_timeout_id != 0) {
117 g_source_remove (window->priv->fade_timeout_id);
118 window->priv->fade_timeout_id = 0;
119 window->priv->fade_out_alpha = 1.0;
120 }
121}
122
123static void
124add_hide_timeout (GsdMediaKeysWindow *window)
125{
126 int timeout;
127
128 if (window->priv->is_composited) {
129 timeout = DIALOG_FADE_TIMEOUT;
130 } else {
131 timeout = DIALOG_TIMEOUT;
132 }
133 window->priv->hide_timeout_id = g_timeout_add (timeout,
134 (GSourceFunc) hide_timeout,
135 window);
136}
137
138static void
139update_window (GsdMediaKeysWindow *window)
140{
141 remove_hide_timeout (window);
142 add_hide_timeout (window);
143
144 if (window->priv->is_composited) {
145 gtk_widget_queue_draw (GTK_WIDGET (window));
146 }
147}
148
149static void
150volume_controls_set_visible (GsdMediaKeysWindow *window,
151 gboolean visible)
152{
153 if (window->priv->progress == NULL)
154 return;
155
156 if (visible) {
157 gtk_widget_show (window->priv->progress);
158 } else {
159 gtk_widget_hide (window->priv->progress);
160 }
161}
162
163static void
164window_set_icon_name (GsdMediaKeysWindow *window,
165 const char *name)
166{
167 if (window->priv->image == NULL)
168 return;
169
170 gtk_image_set_from_icon_name (window->priv->image,
171 name, GTK_ICON_SIZE_DIALOG);
172}
173
174static void
175action_changed (GsdMediaKeysWindow *window)
176{
177 if (! window->priv->is_composited) {
178 switch (window->priv->action) {
179 case GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME:
180 volume_controls_set_visible (window, TRUE);
181
182 if (window->priv->volume_muted) {
183 window_set_icon_name (window, "audio-volume-muted");
184 } else {
185 window_set_icon_name (window, "audio-volume-high");
186 }
187
188 break;
189 case GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM:
190 volume_controls_set_visible (window, window->priv->show_level);
191 window_set_icon_name (window, window->priv->icon_name);
192 break;
193 default:
194 g_assert_not_reached ();
195 break;
196 }
197 }
198
199 update_window (window);
200}
201
202static void
203volume_level_changed (GsdMediaKeysWindow *window)
204{
205 update_window (window);
206
207 if (!window->priv->is_composited && window->priv->progress != NULL) {
208 double fraction;
209
210 fraction = (double) window->priv->volume_level / 100.0;
211
212 gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (window->priv->progress),
213 fraction);
214 }
215}
216
217static void
218volume_muted_changed (GsdMediaKeysWindow *window)
219{
220 update_window (window);
221
222 if (! window->priv->is_composited) {
223 if (window->priv->volume_muted) {
224 window_set_icon_name (window, "audio-volume-muted");
225 } else {
226 window_set_icon_name (window, "audio-volume-high");
227 }
228 }
229}
230
231void
232gsd_media_keys_window_set_action (GsdMediaKeysWindow *window,
233 GsdMediaKeysWindowAction action)
234{
235 g_return_if_fail (GSD_IS_MEDIA_KEYS_WINDOW (window));
236 g_return_if_fail (action == GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME);
237
238 if (window->priv->action != action) {
239 window->priv->action = action;
240 action_changed (window);
241 } else {
242 update_window (window);
243 }
244}
245
246void
247gsd_media_keys_window_set_action_custom (GsdMediaKeysWindow *window,
248 const char *icon_name,
249 gboolean show_level)
250{
251 g_return_if_fail (GSD_IS_MEDIA_KEYS_WINDOW (window));
252 g_return_if_fail (icon_name != NULL);
253
254 if (window->priv->action != GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM ||
255 g_strcmp0 (window->priv->icon_name, icon_name) != 0 ||
256 window->priv->show_level != show_level) {
257 window->priv->action = GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM;
258 g_free (window->priv->icon_name);
259 window->priv->icon_name = g_strdup (icon_name);
260 window->priv->show_level = show_level;
261 action_changed (window);
262 } else {
263 update_window (window);
264 }
265}
266
267void
268gsd_media_keys_window_set_volume_muted (GsdMediaKeysWindow *window,
269 gboolean muted)
270{
271 g_return_if_fail (GSD_IS_MEDIA_KEYS_WINDOW (window));
272
273 if (window->priv->volume_muted != muted) {
274 window->priv->volume_muted = muted;
275 volume_muted_changed (window);
276 }
277}
278
279void
280gsd_media_keys_window_set_volume_level (GsdMediaKeysWindow *window,
281 int level)
282{
283 g_return_if_fail (GSD_IS_MEDIA_KEYS_WINDOW (window));
284
285 if (window->priv->volume_level != level) {
286 window->priv->volume_level = level;
287 volume_level_changed (window);
288 }
289}
290
291static void
292rounded_rectangle (cairo_t* cr,
293 gdouble aspect,
294 gdouble x,
295 gdouble y,
296 gdouble corner_radius,
297 gdouble width,
298 gdouble height)
299{
300 gdouble radius = corner_radius / aspect;
301
302 cairo_move_to (cr, x + radius, y);
303
304 cairo_line_to (cr,
305 x + width - radius,
306 y);
307 cairo_arc (cr,
308 x + width - radius,
309 y + radius,
310 radius,
311 -90.0f * G_PI / 180.0f,
312 0.0f * G_PI / 180.0f);
313 cairo_line_to (cr,
314 x + width,
315 y + height - radius);
316 cairo_arc (cr,
317 x + width - radius,
318 y + height - radius,
319 radius,
320 0.0f * G_PI / 180.0f,
321 90.0f * G_PI / 180.0f);
322 cairo_line_to (cr,
323 x + radius,
324 y + height);
325 cairo_arc (cr,
326 x + radius,
327 y + height - radius,
328 radius,
329 90.0f * G_PI / 180.0f,
330 180.0f * G_PI / 180.0f);
331 cairo_line_to (cr,
332 x,
333 y + radius);
334 cairo_arc (cr,
335 x + radius,
336 y + radius,
337 radius,
338 180.0f * G_PI / 180.0f,
339 270.0f * G_PI / 180.0f);
340 cairo_close_path (cr);
341}
342
343static GdkPixbuf *
344load_pixbuf (GsdMediaKeysWindow *window,
345 const char *name,
346 int icon_size)
347{
348 GtkIconTheme *theme;
349 GdkPixbuf *pixbuf;
350
351 if (window != NULL && gtk_widget_has_screen (GTK_WIDGET (window))) {
352 theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (window)));
353 } else {
354 theme = gtk_icon_theme_get_default ();
355 }
356
357 pixbuf = gtk_icon_theme_load_icon (theme,
358 name,
359 icon_size,
360 GTK_ICON_LOOKUP_FORCE_SVG,
361 NULL);
362
363 /* make sure the pixbuf is close to the requested size
364 * this is necessary because GTK_ICON_LOOKUP_FORCE_SVG
365 * seems to be broken */
366 if (pixbuf != NULL) {
367 int width;
368
369 width = gdk_pixbuf_get_width (pixbuf);
370 if (width < (float)icon_size * 0.75) {
371 g_object_unref (pixbuf);
372 pixbuf = NULL;
373 }
374 }
375
376 return pixbuf;
377}
378
379static void
380draw_eject (cairo_t *cr,
381 double _x0,
382 double _y0,
383 double width,
384 double height)
385{
386 int box_height;
387 int tri_height;
388 int separation;
389
390 box_height = height * 0.2;
391 separation = box_height / 3;
392 tri_height = height - box_height - separation;
393
394 cairo_rectangle (cr, _x0, _y0 + height - box_height, width, box_height);
395
396 cairo_move_to (cr, _x0, _y0 + tri_height);
397 cairo_rel_line_to (cr, width, 0);
398 cairo_rel_line_to (cr, -width / 2, -tri_height);
399 cairo_rel_line_to (cr, -width / 2, tri_height);
400 cairo_close_path (cr);
401 cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, FG_ALPHA);
402 cairo_fill_preserve (cr);
403
404 cairo_set_source_rgba (cr, 0.6, 0.6, 0.6, FG_ALPHA / 2);
405 cairo_set_line_width (cr, 2);
406 cairo_stroke (cr);
407}
408
409static void
410draw_waves (cairo_t *cr,
411 double cx,
412 double cy,
413 double max_radius,
414 int volume_level)
415{
416 const int n_waves = 3;
417 int last_wave;
418 int i;
419
420 last_wave = n_waves * volume_level / 100;
421
422 for (i = 0; i < n_waves; i++) {
423 double angle1;
424 double angle2;
425 double radius;
426 double alpha;
427
428 angle1 = -M_PI / 4;
429 angle2 = M_PI / 4;
430
431 if (i < last_wave)
432 alpha = 1.0;
433 else if (i > last_wave)
434 alpha = 0.1;
435 else alpha = 0.1 + 0.9 * (n_waves * volume_level % 100) / 100.0;
436
437 radius = (i + 1) * (max_radius / n_waves);
438 cairo_arc (cr, cx, cy, radius, angle1, angle2);
439 cairo_set_source_rgba (cr, 0.6, 0.6, 0.6, alpha / 2);
440 cairo_set_line_width (cr, 14);
441 cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
442 cairo_stroke_preserve (cr);
443
444 cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, alpha);
445 cairo_set_line_width (cr, 10);
446 cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
447 cairo_stroke (cr);
448 }
449}
450
451static void
452draw_cross (cairo_t *cr,
453 double cx,
454 double cy,
455 double size)
456{
457 cairo_move_to (cr, cx, cy - size/2.0);
458 cairo_rel_line_to (cr, size, size);
459
460 cairo_move_to (cr, cx, cy + size/2.0);
461 cairo_rel_line_to (cr, size, -size);
462
463 cairo_set_source_rgba (cr, 0.6, 0.6, 0.6, FG_ALPHA / 2);
464 cairo_set_line_width (cr, 14);
465 cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
466 cairo_stroke_preserve (cr);
467
468 cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, FG_ALPHA);
469 cairo_set_line_width (cr, 10);
470 cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
471 cairo_stroke (cr);
472}
473
474static void
475draw_speaker (cairo_t *cr,
476 double cx,
477 double cy,
478 double width,
479 double height)
480{
481 double box_width;
482 double box_height;
483 double _x0;
484 double _y0;
485
486 box_width = width / 3;
487 box_height = height / 3;
488
489 _x0 = cx - (width / 2) + box_width;
490 _y0 = cy - box_height / 2;
491
492 cairo_move_to (cr, _x0, _y0);
493 cairo_rel_line_to (cr, - box_width, 0);
494 cairo_rel_line_to (cr, 0, box_height);
495 cairo_rel_line_to (cr, box_width, 0);
496
497 cairo_line_to (cr, cx + box_width, cy + height / 2);
498 cairo_rel_line_to (cr, 0, -height);
499 cairo_line_to (cr, _x0, _y0);
500 cairo_close_path (cr);
501
502 cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, FG_ALPHA);
503 cairo_fill_preserve (cr);
504
505 cairo_set_source_rgba (cr, 0.6, 0.6, 0.6, FG_ALPHA / 2);
506 cairo_set_line_width (cr, 2);
507 cairo_stroke (cr);
508}
509
510static gboolean
511render_speaker (GsdMediaKeysWindow *window,
512 cairo_t *cr,
513 double _x0,
514 double _y0,
515 double width,
516 double height)
517{
518 GdkPixbuf *pixbuf;
519 int icon_size;
520 int n;
521 static const char *icon_names[] = {
522 "audio-volume-muted",
523 "audio-volume-low",
524 "audio-volume-medium",
525 "audio-volume-high",
526 NULL
527 };
528
529 if (window->priv->volume_muted) {
530 n = 0;
531 } else {
532 /* select image */
533 n = 3 * window->priv->volume_level / 100 + 1;
534 if (n < 1) {
535 n = 1;
536 } else if (n > 3) {
537 n = 3;
538 }
539 }
540
541 icon_size = (int)width;
542
543 pixbuf = load_pixbuf (window, icon_names[n], icon_size);
544
545 if (pixbuf == NULL) {
546 return FALSE;
547 }
548
549 gdk_cairo_set_source_pixbuf (cr, pixbuf, _x0, _y0);
550 cairo_paint_with_alpha (cr, FG_ALPHA);
551
552 g_object_unref (pixbuf);
553
554 return TRUE;
555}
556
557static void
558color_reverse (const GdkColor *a,
559 GdkColor *b)
560{
561 gdouble red;
562 gdouble green;
563 gdouble blue;
564 gdouble h;
565 gdouble s;
566 gdouble v;
567
568 red = (gdouble) a->red / 65535.0;
569 green = (gdouble) a->green / 65535.0;
570 blue = (gdouble) a->blue / 65535.0;
571
572 gtk_rgb_to_hsv (red, green, blue, &h, &s, &v);
573
574 v = 0.5 + (0.5 - v);
575 if (v > 1.0)
576 v = 1.0;
577 else if (v < 0.0)
578 v = 0.0;
579
580 gtk_hsv_to_rgb (h, s, v, &red, &green, &blue);
581
582 b->red = red * 65535.0;
583 b->green = green * 65535.0;
584 b->blue = blue * 65535.0;
585}
586
587static void
588draw_volume_boxes (GsdMediaKeysWindow *window,
589 cairo_t *cr,
590 double percentage,
591 double _x0,
592 double _y0,
593 double width,
594 double height)
595{
596 gdouble x1;
597 GdkColor color;
598 double r, g, b;
599 GtkStyle *style;
600
601 _x0 += 0.5;
602 _y0 += 0.5;
603 height = round (height) - 1;
604 width = round (width) - 1;
605 x1 = round ((width - 1) * percentage);
606 style = gtk_widget_get_style (GTK_WIDGET (window));
607
608 /* bar background */
609 color_reverse (&style->dark[GTK_STATE_NORMAL], &color);
610 r = (float)color.red / 65535.0;
611 g = (float)color.green / 65535.0;
612 b = (float)color.blue / 65535.0;
613 rounded_rectangle (cr, 1.0, _x0, _y0, height / 6, width, height);
614 cairo_set_source_rgba (cr, r, g, b, FG_ALPHA / 2);
615 cairo_fill_preserve (cr);
616
617 /* bar border */
618 color_reverse (&style->light[GTK_STATE_NORMAL], &color);
619 r = (float)color.red / 65535.0;
620 g = (float)color.green / 65535.0;
621 b = (float)color.blue / 65535.0;
622 cairo_set_source_rgba (cr, r, g, b, FG_ALPHA / 2);
623 cairo_set_line_width (cr, 1);
624 cairo_stroke (cr);
625
626 /* bar progress */
627 if (percentage < 0.01)
628 return;
629 color = style->bg[GTK_STATE_NORMAL];
630 r = (float)color.red / 65535.0;
631 g = (float)color.green / 65535.0;
632 b = (float)color.blue / 65535.0;
633 rounded_rectangle (cr, 1.0, _x0 + 0.5, _y0 + 0.5, height / 6 - 0.5, x1, height - 1);
634 cairo_set_source_rgba (cr, r, g, b, FG_ALPHA);
635 cairo_fill (cr);
636}
637
638static void
639draw_action_volume (GsdMediaKeysWindow *window,
640 cairo_t *cr)
641{
642 int window_width;
643 int window_height;
644 double icon_box_width;
645 double icon_box_height;
646 double icon_box_x0;
647 double icon_box_y0;
648 double volume_box_x0;
649 double volume_box_y0;
650 double volume_box_width;
651 double volume_box_height;
652 gboolean res;
653
654 gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height);
655
656 icon_box_width = round (window_width * 0.65);
657 icon_box_height = round (window_height * 0.65);
658 volume_box_width = icon_box_width;
659 volume_box_height = round (window_height * 0.05);
660
661 icon_box_x0 = (window_width - icon_box_width) / 2;
662 icon_box_y0 = (window_height - icon_box_height - volume_box_height) / 2;
663 volume_box_x0 = round (icon_box_x0);
664 volume_box_y0 = round (icon_box_height + icon_box_y0);
665
666#if 0
667 g_message ("icon box: w=%f h=%f _x0=%f _y0=%f",
668 icon_box_width,
669 icon_box_height,
670 icon_box_x0,
671 icon_box_y0);
672 g_message ("volume box: w=%f h=%f _x0=%f _y0=%f",
673 volume_box_width,
674 volume_box_height,
675 volume_box_x0,
676 volume_box_y0);
677#endif
678
679 res = render_speaker (window,
680 cr,
681 icon_box_x0, icon_box_y0,
682 icon_box_width, icon_box_height);
683 if (! res) {
684 double speaker_width;
685 double speaker_height;
686 double speaker_cx;
687 double speaker_cy;
688
689 speaker_width = icon_box_width * 0.5;
690 speaker_height = icon_box_height * 0.75;
691 speaker_cx = icon_box_x0 + speaker_width / 2;
692 speaker_cy = icon_box_y0 + speaker_height / 2;
693
694#if 0
695 g_message ("speaker box: w=%f h=%f cx=%f cy=%f",
696 speaker_width,
697 speaker_height,
698 speaker_cx,
699 speaker_cy);
700#endif
701
702 /* draw speaker symbol */
703 draw_speaker (cr, speaker_cx, speaker_cy, speaker_width, speaker_height);
704
705 if (! window->priv->volume_muted) {
706 /* draw sound waves */
707 double wave_x0;
708 double wave_y0;
709 double wave_radius;
710
711 wave_x0 = window_width / 2;
712 wave_y0 = speaker_cy;
713 wave_radius = icon_box_width / 2;
714
715 draw_waves (cr, wave_x0, wave_y0, wave_radius, window->priv->volume_level);
716 } else {
717 /* draw 'mute' cross */
718 double cross_x0;
719 double cross_y0;
720 double cross_size;
721
722 cross_size = speaker_width * 3 / 4;
723 cross_x0 = icon_box_x0 + icon_box_width - cross_size;
724 cross_y0 = speaker_cy;
725
726 draw_cross (cr, cross_x0, cross_y0, cross_size);
727 }
728 }
729
730 /* draw volume meter */
731 draw_volume_boxes (window,
732 cr,
733 (double)window->priv->volume_level / 100.0,
734 volume_box_x0,
735 volume_box_y0,
736 volume_box_width,
737 volume_box_height);
738}
739
740static gboolean
741render_custom (GsdMediaKeysWindow *window,
742 cairo_t *cr,
743 double _x0,
744 double _y0,
745 double width,
746 double height)
747{
748 GdkPixbuf *pixbuf;
749 int icon_size;
750
751 icon_size = (int)width;
752
753 pixbuf = load_pixbuf (window, window->priv->icon_name, icon_size);
754
755 if (pixbuf == NULL) {
756 char *name;
757 if (gtk_widget_get_direction (GTK_WIDGET (window)) == GTK_TEXT_DIR_RTL)
758 name = g_strdup_printf ("%s-rtl", window->priv->icon_name);
759 else
760 name = g_strdup_printf ("%s-ltr", window->priv->icon_name);
761 pixbuf = load_pixbuf (window, name, icon_size);
762 g_free (name);
763 if (pixbuf == NULL)
764 return FALSE;
765 }
766
767 gdk_cairo_set_source_pixbuf (cr, pixbuf, _x0, _y0);
768 cairo_paint_with_alpha (cr, FG_ALPHA);
769
770 g_object_unref (pixbuf);
771
772 return TRUE;
773}
774
775static void
776draw_action_custom (GsdMediaKeysWindow *window,
777 cairo_t *cr)
778{
779 int window_width;
780 int window_height;
781 double icon_box_width;
782 double icon_box_height;
783 double icon_box_x0;
784 double icon_box_y0;
785 double bright_box_x0;
786 double bright_box_y0;
787 double bright_box_width;
788 double bright_box_height;
789 gboolean res;
790
791 gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height);
792
793 icon_box_width = round (window_width * 0.65);
794 icon_box_height = round (window_height * 0.65);
795 bright_box_width = round (icon_box_width);
796 bright_box_height = round (window_height * 0.05);
797
798 icon_box_x0 = (window_width - icon_box_width) / 2;
799 icon_box_y0 = (window_height - icon_box_height - bright_box_height) / 2;
800 bright_box_x0 = round (icon_box_x0);
801 bright_box_y0 = round (icon_box_height + icon_box_y0);
802
803#if 0
804 g_message ("icon box: w=%f h=%f _x0=%f _y0=%f",
805 icon_box_width,
806 icon_box_height,
807 icon_box_x0,
808 icon_box_y0);
809 g_message ("brightness box: w=%f h=%f _x0=%f _y0=%f",
810 bright_box_width,
811 bright_box_height,
812 bright_box_x0,
813 bright_box_y0);
814#endif
815
816 res = render_custom (window,
817 cr,
818 icon_box_x0, icon_box_y0,
819 icon_box_width, icon_box_height);
820 if (! res && g_strcmp0 (window->priv->icon_name, "media-eject") == 0) {
821 /* draw eject symbol */
822 draw_eject (cr,
823 icon_box_x0, icon_box_y0,
824 icon_box_width, icon_box_height);
825 }
826
827 if (window->priv->show_level != FALSE) {
828 /* draw volume meter */
829 draw_volume_boxes (window,
830 cr,
831 (double)window->priv->volume_level / 100.0,
832 bright_box_x0,
833 bright_box_y0,
834 bright_box_width,
835 bright_box_height);
836 }
837}
838
839static void
840draw_action (GsdMediaKeysWindow *window,
841 cairo_t *cr)
842{
843 switch (window->priv->action) {
844 case GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME:
845 draw_action_volume (window, cr);
846 break;
847 case GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM:
848 draw_action_custom (window, cr);
849 break;
850 default:
851 break;
852 }
853}
854
855static gboolean
856on_expose_event (GtkWidget *widget,
857 GdkEventExpose *event,
858 GsdMediaKeysWindow *window)
859{
860 cairo_t *context;
861 cairo_t *cr;
862 cairo_surface_t *surface;
863 int width;
864 int height;
865 GtkStyle *style;
866 GdkColor color;
867 double r, g, b;
868
869 context = gdk_cairo_create (gtk_widget_get_window (widget));
870
871 style = gtk_widget_get_style (widget);
872 cairo_set_operator (context, CAIRO_OPERATOR_SOURCE);
873 gtk_window_get_size (GTK_WINDOW (widget), &width, &height);
874
875 surface = cairo_surface_create_similar (cairo_get_target (context),
876 CAIRO_CONTENT_COLOR_ALPHA,
877 width,
878 height);
879
880 if (cairo_surface_status (surface) != CAIRO_STATUS_SUCCESS) {
881 goto done;
882 }
883
884 cr = cairo_create (surface);
885 if (cairo_status (cr) != CAIRO_STATUS_SUCCESS) {
886 goto done;
887 }
888 cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0);
889 cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
890 cairo_paint (cr);
891
892 /* draw a box */
893 rounded_rectangle (cr, 1.0, 0.5, 0.5, height / 10, width-1, height-1);
894 color_reverse (&style->bg[GTK_STATE_NORMAL], &color);
895 r = (float)color.red / 65535.0;
896 g = (float)color.green / 65535.0;
897 b = (float)color.blue / 65535.0;
898 cairo_set_source_rgba (cr, r, g, b, BG_ALPHA);
899 cairo_fill_preserve (cr);
900
901 color_reverse (&style->text_aa[GTK_STATE_NORMAL], &color);
902 r = (float)color.red / 65535.0;
903 g = (float)color.green / 65535.0;
904 b = (float)color.blue / 65535.0;
905 cairo_set_source_rgba (cr, r, g, b, BG_ALPHA / 2);
906 cairo_set_line_width (cr, 1);
907 cairo_stroke (cr);
908
909 /* draw action */
910 draw_action (window, cr);
911
912 cairo_destroy (cr);
913
914 /* Make sure we have a transparent background */
915 cairo_rectangle (context, 0, 0, width, height);
916 cairo_set_source_rgba (context, 0.0, 0.0, 0.0, 0.0);
917 cairo_fill (context);
918
919 cairo_set_source_surface (context, surface, 0, 0);
920 cairo_paint_with_alpha (context, window->priv->fade_out_alpha);
921
922 done:
923 if (surface != NULL) {
924 cairo_surface_destroy (surface);
925 }
926 cairo_destroy (context);
927
928 return FALSE;
929}
930
931static void
932gsd_media_keys_window_real_show (GtkWidget *widget)
933{
934 GsdMediaKeysWindow *window;
935
936 if (GTK_WIDGET_CLASS (gsd_media_keys_window_parent_class)->show) {
937 GTK_WIDGET_CLASS (gsd_media_keys_window_parent_class)->show (widget);
938 }
939
940 window = GSD_MEDIA_KEYS_WINDOW (widget);
941 remove_hide_timeout (window);
942 add_hide_timeout (window);
943}
944
945static void
946gsd_media_keys_window_real_hide (GtkWidget *widget)
947{
948 GsdMediaKeysWindow *window;
949
950 if (GTK_WIDGET_CLASS (gsd_media_keys_window_parent_class)->hide) {
951 GTK_WIDGET_CLASS (gsd_media_keys_window_parent_class)->hide (widget);
952 }
953
954 window = GSD_MEDIA_KEYS_WINDOW (widget);
955 remove_hide_timeout (window);
956}
957
958static void
959gsd_media_keys_window_real_realize (GtkWidget *widget)
960{
961 GdkColormap *colormap;
962 GtkAllocation allocation;
963 GdkBitmap *mask;
964 cairo_t *cr;
965
966 colormap = gdk_screen_get_rgba_colormap (gtk_widget_get_screen (widget));
967
968 if (colormap != NULL) {
969 gtk_widget_set_colormap (widget, colormap);
970 }
971
972 if (GTK_WIDGET_CLASS (gsd_media_keys_window_parent_class)->realize) {
973 GTK_WIDGET_CLASS (gsd_media_keys_window_parent_class)->realize (widget);
974 }
975
976 gtk_widget_get_allocation (widget, &allocation);
977 mask = gdk_pixmap_new (gtk_widget_get_window (widget),
978 allocation.width,
979 allocation.height,
980 1);
981 cr = gdk_cairo_create (mask);
982
983 cairo_set_source_rgba (cr, 1., 1., 1., 0.);
984 cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
985 cairo_paint (cr);
986
987 /* make the whole window ignore events */
988 gdk_window_input_shape_combine_mask (gtk_widget_get_window (widget), mask, 0, 0);
989 g_object_unref (mask);
990 cairo_destroy (cr);
991}
992
993static void
994gsd_media_keys_window_class_init (GsdMediaKeysWindowClass *klass)
995{
996 GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
997
998 widget_class->show = gsd_media_keys_window_real_show;
999 widget_class->hide = gsd_media_keys_window_real_hide;
1000 widget_class->realize = gsd_media_keys_window_real_realize;
1001
1002 g_type_class_add_private (klass, sizeof (GsdMediaKeysWindowPrivate));
1003}
1004
1005gboolean
1006gsd_media_keys_window_is_valid (GsdMediaKeysWindow *window)
1007{
1008 GdkScreen *screen = gtk_widget_get_screen (GTK_WIDGET (window));
1009 return gdk_screen_is_composited (screen) == window->priv->is_composited;
1010}
1011
1012static void
1013gsd_media_keys_window_init (GsdMediaKeysWindow *window)
1014{
1015 GdkScreen *screen;
1016
1017 window->priv = GSD_MEDIA_KEYS_WINDOW_GET_PRIVATE (window);
1018
1019 screen = gtk_widget_get_screen (GTK_WIDGET (window));
1020
1021 window->priv->is_composited = gdk_screen_is_composited (screen);
1022
1023 if (window->priv->is_composited) {
1024 gdouble scalew, scaleh, scale;
1025 gint size;
1026
1027 gtk_window_set_decorated (GTK_WINDOW (window), FALSE);
1028 gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
1029
1030 /* assume 130x130 on a 640x480 display and scale from there */
1031 scalew = gdk_screen_get_width (screen) / 640.0;
1032 scaleh = gdk_screen_get_height (screen) / 480.0;
1033 scale = MIN (scalew, scaleh);
1034 size = 130 * MAX (1, scale);
1035
1036 gtk_window_set_default_size (GTK_WINDOW (window), size, size);
1037 g_signal_connect (window, "expose-event", G_CALLBACK (on_expose_event), window);
1038
1039 window->priv->fade_out_alpha = 1.0;
1040 } else {
1041 GtkBuilder *builder;
1042 const gchar *objects[] = {"acme_frame", NULL};
1043 GtkWidget *frame;
1044
1045 builder = gtk_builder_new ();
1046 gtk_builder_add_objects_from_string (builder, acme_ui, acme_ui_length, (char **)objects, NULL);
1047
1048 window->priv->image = GTK_IMAGE (gtk_builder_get_object (builder, "acme_image"));
1049 window->priv->progress = GTK_WIDGET (gtk_builder_get_object (builder, "acme_volume_progressbar"));
1050 frame = GTK_WIDGET (gtk_builder_get_object (builder,
1051 "acme_frame"));
1052
1053 if (frame != NULL) {
1054 gtk_container_add (GTK_CONTAINER (window), frame);
1055 gtk_widget_show_all (frame);
1056 }
1057
1058 /* The builder needs to stay alive until the window
1059 takes ownership of the frame (and its children) */
1060 g_object_unref (builder);
1061 }
1062}
1063
1064GtkWidget *
1065gsd_media_keys_window_new (void)
1066{
1067 GObject *object;
1068
1069 object = g_object_new (GSD_TYPE_MEDIA_KEYS_WINDOW,
1070 "type", GTK_WINDOW_POPUP,
1071 "type-hint", GDK_WINDOW_TYPE_HINT_NOTIFICATION,
1072 "skip-taskbar-hint", TRUE,
1073 "skip-pager-hint", TRUE,
1074 "focus-on-map", FALSE,
1075 NULL);
1076
1077 return GTK_WIDGET (object);
1078}
10790
=== removed file '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.h'
--- .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.h 2013-05-22 00:46:08 +0000
+++ .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/gsd-media-keys-window.h 1970-01-01 00:00:00 +0000
@@ -1,71 +0,0 @@
1/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8; tab-width: 8 -*-
2 *
3 * Copyright (C) 2006 William Jon McCann <mccann@jhu.edu>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 */
21
22#ifndef GSD_MEDIA_KEYS_WINDOW_H
23#define GSD_MEDIA_KEYS_WINDOW_H
24
25#include <glib-object.h>
26#include <gtk/gtk.h>
27
28G_BEGIN_DECLS
29
30#define GSD_TYPE_MEDIA_KEYS_WINDOW (gsd_media_keys_window_get_type ())
31#define GSD_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindow))
32#define GSD_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindowClass))
33#define GSD_IS_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW))
34#define GSD_IS_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW))
35
36typedef struct GsdMediaKeysWindow GsdMediaKeysWindow;
37typedef struct GsdMediaKeysWindowClass GsdMediaKeysWindowClass;
38typedef struct GsdMediaKeysWindowPrivate GsdMediaKeysWindowPrivate;
39
40struct GsdMediaKeysWindow {
41 GtkWindow parent;
42
43 GsdMediaKeysWindowPrivate *priv;
44};
45
46struct GsdMediaKeysWindowClass {
47 GtkWindowClass parent_class;
48};
49
50typedef enum {
51 GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME,
52 GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM
53} GsdMediaKeysWindowAction;
54
55GType gsd_media_keys_window_get_type (void);
56
57GtkWidget * gsd_media_keys_window_new (void);
58void gsd_media_keys_window_set_action (GsdMediaKeysWindow *window,
59 GsdMediaKeysWindowAction action);
60void gsd_media_keys_window_set_action_custom (GsdMediaKeysWindow *window,
61 const char *icon_name,
62 gboolean show_level);
63void gsd_media_keys_window_set_volume_muted (GsdMediaKeysWindow *window,
64 gboolean muted);
65void gsd_media_keys_window_set_volume_level (GsdMediaKeysWindow *window,
66 int level);
67gboolean gsd_media_keys_window_is_valid (GsdMediaKeysWindow *window);
68
69G_END_DECLS
70
71#endif
720
=== removed file '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-backlight.c'
--- .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-backlight.c 2013-05-22 00:46:08 +0000
+++ .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-backlight.c 1970-01-01 00:00:00 +0000
@@ -1,478 +0,0 @@
1/*
2 * * Copyright (C) 2009-2011 Ali <aliov@xfce.org>
3 *
4 * Licensed under the GNU General Public License Version 2
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifdef HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28
29#include <math.h>
30
31#include <gtk/gtk.h>
32#include <libxfce4util/libxfce4util.h>
33
34#include "xfpm-backlight.h"
35#include "egg-idletime.h"
36#include "xfpm-notify.h"
37#include "xfpm-xfconf.h"
38#include "xfpm-power.h"
39#include "xfpm-config.h"
40#include "xfpm-button.h"
41#include "xfpm-brightness.h"
42#include "xfpm-debug.h"
43#include "xfpm-icons.h"
44
45#include "gsd-media-keys-window.h"
46
47static void xfpm_backlight_finalize (GObject *object);
48
49static void xfpm_backlight_create_popup (XfpmBacklight *backlight);
50
51#define ALARM_DISABLED 9
52#define BRIGHTNESS_POPUP_SIZE 180
53
54#define XFPM_BACKLIGHT_GET_PRIVATE(o) \
55(G_TYPE_INSTANCE_GET_PRIVATE ((o), XFPM_TYPE_BACKLIGHT, XfpmBacklightPrivate))
56
57struct XfpmBacklightPrivate
58{
59 XfpmBrightness *brightness;
60 XfpmPower *power;
61 EggIdletime *idle;
62 XfpmXfconf *conf;
63 XfpmButton *button;
64 XfpmNotify *notify;
65
66 GtkWidget *osd;
67 NotifyNotification *n;
68
69
70 gulong destroy_id;
71
72 gboolean has_hw;
73 gboolean on_battery;
74
75 glong last_level;
76 glong max_level;
77
78 gboolean dimmed;
79 gboolean block;
80};
81
82G_DEFINE_TYPE (XfpmBacklight, xfpm_backlight, G_TYPE_OBJECT)
83
84static void
85xfpm_backlight_dim_brightness (XfpmBacklight *backlight)
86{
87 gboolean ret;
88
89 if (xfpm_power_get_mode (backlight->priv->power) == XFPM_POWER_MODE_NORMAL )
90 {
91 glong dim_level;
92
93 g_object_get (G_OBJECT (backlight->priv->conf),
94 backlight->priv->on_battery ? BRIGHTNESS_LEVEL_ON_BATTERY : BRIGHTNESS_LEVEL_ON_AC, &dim_level,
95 NULL);
96
97 ret = xfpm_brightness_get_level (backlight->priv->brightness, &backlight->priv->last_level);
98
99 if ( !ret )
100 {
101 g_warning ("Unable to get current brightness level");
102 return;
103 }
104
105 dim_level = dim_level * backlight->priv->max_level / 100;
106
107 /**
108 * Only reduce if the current level is brighter than
109 * the configured dim_level
110 **/
111 if (backlight->priv->last_level > dim_level)
112 {
113 XFPM_DEBUG ("Current brightness level before dimming : %li, new %li", backlight->priv->last_level, dim_level);
114 backlight->priv->dimmed = xfpm_brightness_set_level (backlight->priv->brightness, dim_level);
115 }
116 }
117}
118
119static gboolean
120xfpm_backlight_destroy_popup (gpointer data)
121{
122 XfpmBacklight *backlight;
123
124 backlight = XFPM_BACKLIGHT (data);
125
126 if ( backlight->priv->osd )
127 {
128 gtk_widget_destroy (backlight->priv->osd);
129 backlight->priv->osd = NULL;
130 }
131
132 if ( backlight->priv->n )
133 {
134 g_object_unref (backlight->priv->n);
135 backlight->priv->n = NULL;
136 }
137
138 return FALSE;
139}
140
141static void
142xfpm_backlight_composited_changed_cb (XfpmBacklight *backlight)
143{
144 xfpm_backlight_destroy_popup (backlight);
145 xfpm_backlight_create_popup (backlight);
146}
147
148static void
149xfpm_backlight_show_notification (XfpmBacklight *backlight, gfloat value)
150{
151 gint i;
152
153 static const char *display_icon_name[] =
154 {
155 "notification-display-brightness-off",
156 "notification-display-brightness-low",
157 "notification-display-brightness-medium",
158 "notification-display-brightness-high",
159 "notification-display-brightness-full",
160 NULL
161 };
162
163 if ( backlight->priv->n == NULL )
164 {
165 backlight->priv->n = xfpm_notify_new_notification (backlight->priv->notify,
166 " ",
167 "",
168 NULL,
169 0,
170 XFPM_NOTIFY_NORMAL,
171 NULL);
172 }
173
174 i = (gint)value / 25;
175
176 if ( i > 4 || i < 0 )
177 return;
178
179 notify_notification_set_hint_int32 (backlight->priv->n,
180 "value",
181 value);
182
183 notify_notification_set_hint_string (backlight->priv->n,
184 "x-canonical-private-synchronous",
185 "brightness");
186
187 notify_notification_update (backlight->priv->n,
188 " ",
189 "",
190 display_icon_name[i]);
191
192 notify_notification_show (backlight->priv->n, NULL);
193}
194
195static void
196xfpm_backlight_create_popup (XfpmBacklight *backlight)
197{
198 if ( backlight->priv->osd != NULL )
199 return;
200
201 backlight->priv->osd = gsd_media_keys_window_new ();
202 gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (backlight->priv->osd),
203 XFPM_DISPLAY_BRIGHTNESS_ICON,
204 TRUE);
205 gtk_window_set_position (GTK_WINDOW (backlight->priv->osd), GTK_WIN_POS_CENTER);
206
207 g_signal_connect_swapped (backlight->priv->osd, "composited-changed",
208 G_CALLBACK (xfpm_backlight_composited_changed_cb), backlight);
209
210}
211
212static void
213xfpm_backlight_show (XfpmBacklight *backlight, gint level)
214{
215 gfloat value;
216 gboolean sync_notify;
217 gboolean show_popup;
218
219 XFPM_DEBUG ("Level %u", level);
220
221 g_object_get (G_OBJECT (backlight->priv->conf),
222 SHOW_BRIGHTNESS_POPUP, &show_popup,
223 NULL);
224
225 if ( !show_popup )
226 goto out;
227
228 g_object_get (G_OBJECT (backlight->priv->notify),
229 "sync", &sync_notify,
230 NULL);
231
232 value = (gfloat) 100 * level / backlight->priv->max_level;
233
234 if ( !sync_notify ) /*Notification server doesn't support sync notifications*/
235 {
236 xfpm_backlight_create_popup (backlight);
237 gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (backlight->priv->osd),
238 round (value));
239 if ( !GTK_WIDGET_VISIBLE (backlight->priv->osd))
240 gtk_window_present (GTK_WINDOW (backlight->priv->osd));
241 }
242 else
243 {
244 xfpm_backlight_show_notification (backlight, value);
245 }
246
247 if ( backlight->priv->destroy_id != 0 )
248 {
249 g_source_remove (backlight->priv->destroy_id);
250 backlight->priv->destroy_id = 0;
251 }
252
253out:
254 /* Release the memory after 60 seconds */
255 backlight->priv->destroy_id = g_timeout_add_seconds (60, (GSourceFunc) xfpm_backlight_destroy_popup, backlight);
256}
257
258
259static void
260xfpm_backlight_alarm_timeout_cb (EggIdletime *idle, guint id, XfpmBacklight *backlight)
261{
262 backlight->priv->block = FALSE;
263
264 if ( id == TIMEOUT_BRIGHTNESS_ON_AC && !backlight->priv->on_battery)
265 xfpm_backlight_dim_brightness (backlight);
266 else if ( id == TIMEOUT_BRIGHTNESS_ON_BATTERY && backlight->priv->on_battery)
267 xfpm_backlight_dim_brightness (backlight);
268}
269
270static void
271xfpm_backlight_reset_cb (EggIdletime *idle, XfpmBacklight *backlight)
272{
273 if ( backlight->priv->dimmed)
274 {
275 if ( !backlight->priv->block)
276 {
277 XFPM_DEBUG ("Alarm reset, setting level to %li", backlight->priv->last_level);
278 xfpm_brightness_set_level (backlight->priv->brightness, backlight->priv->last_level);
279 }
280 backlight->priv->dimmed = FALSE;
281 }
282}
283
284static void
285xfpm_backlight_button_pressed_cb (XfpmButton *button, XfpmButtonKey type, XfpmBacklight *backlight)
286{
287 glong level;
288 gboolean ret = TRUE;
289
290 gboolean enable_brightness, show_popup;
291
292 g_object_get (G_OBJECT (backlight->priv->conf),
293 ENABLE_BRIGHTNESS_CONTROL, &enable_brightness,
294 SHOW_BRIGHTNESS_POPUP, &show_popup,
295 NULL);
296
297 if ( type == BUTTON_MON_BRIGHTNESS_UP )
298 {
299 backlight->priv->block = TRUE;
300 if ( enable_brightness )
301 ret = xfpm_brightness_up (backlight->priv->brightness, &level);
302 if ( ret && show_popup)
303 xfpm_backlight_show (backlight, level);
304 }
305 else if ( type == BUTTON_MON_BRIGHTNESS_DOWN )
306 {
307 backlight->priv->block = TRUE;
308 if ( enable_brightness )
309 ret = xfpm_brightness_down (backlight->priv->brightness, &level);
310 if ( ret && show_popup)
311 xfpm_backlight_show (backlight, level);
312 }
313}
314
315static void
316xfpm_backlight_brightness_on_ac_settings_changed (XfpmBacklight *backlight)
317{
318 guint timeout_on_ac;
319
320 g_object_get (G_OBJECT (backlight->priv->conf),
321 BRIGHTNESS_ON_AC, &timeout_on_ac,
322 NULL);
323
324 XFPM_DEBUG ("Alarm on ac timeout changed %u", timeout_on_ac);
325
326 if ( timeout_on_ac == ALARM_DISABLED )
327 {
328 egg_idletime_alarm_remove (backlight->priv->idle, TIMEOUT_BRIGHTNESS_ON_AC );
329 }
330 else
331 {
332 egg_idletime_alarm_set (backlight->priv->idle, TIMEOUT_BRIGHTNESS_ON_AC, timeout_on_ac * 1000);
333 }
334}
335
336static void
337xfpm_backlight_brightness_on_battery_settings_changed (XfpmBacklight *backlight)
338{
339 guint timeout_on_battery ;
340
341 g_object_get (G_OBJECT (backlight->priv->conf),
342 BRIGHTNESS_ON_BATTERY, &timeout_on_battery,
343 NULL);
344
345 XFPM_DEBUG ("Alarm on battery timeout changed %u", timeout_on_battery);
346
347 if ( timeout_on_battery == ALARM_DISABLED )
348 {
349 egg_idletime_alarm_remove (backlight->priv->idle, TIMEOUT_BRIGHTNESS_ON_BATTERY );
350 }
351 else
352 {
353 egg_idletime_alarm_set (backlight->priv->idle, TIMEOUT_BRIGHTNESS_ON_BATTERY, timeout_on_battery * 1000);
354 }
355}
356
357
358static void
359xfpm_backlight_set_timeouts (XfpmBacklight *backlight)
360{
361 xfpm_backlight_brightness_on_ac_settings_changed (backlight);
362 xfpm_backlight_brightness_on_battery_settings_changed (backlight);
363}
364
365static void
366xfpm_backlight_on_battery_changed_cb (XfpmPower *power, gboolean on_battery, XfpmBacklight *backlight)
367{
368 backlight->priv->on_battery = on_battery;
369}
370
371static void
372xfpm_backlight_class_init (XfpmBacklightClass *klass)
373{
374 GObjectClass *object_class = G_OBJECT_CLASS (klass);
375
376 object_class->finalize = xfpm_backlight_finalize;
377
378 g_type_class_add_private (klass, sizeof (XfpmBacklightPrivate));
379}
380
381static void
382xfpm_backlight_init (XfpmBacklight *backlight)
383{
384 backlight->priv = XFPM_BACKLIGHT_GET_PRIVATE (backlight);
385
386 backlight->priv->brightness = xfpm_brightness_new ();
387 backlight->priv->has_hw = xfpm_brightness_setup (backlight->priv->brightness);
388
389 backlight->priv->osd = NULL;
390 backlight->priv->notify = NULL;
391 backlight->priv->idle = NULL;
392 backlight->priv->conf = NULL;
393 backlight->priv->button = NULL;
394 backlight->priv->power = NULL;
395 backlight->priv->dimmed = FALSE;
396 backlight->priv->block = FALSE;
397 backlight->priv->destroy_id = 0;
398
399 if ( !backlight->priv->has_hw )
400 {
401 g_object_unref (backlight->priv->brightness);
402 backlight->priv->brightness = NULL;
403 }
404 else
405 {
406 backlight->priv->idle = egg_idletime_new ();
407 backlight->priv->conf = xfpm_xfconf_new ();
408 backlight->priv->button = xfpm_button_new ();
409 backlight->priv->power = xfpm_power_get ();
410 backlight->priv->notify = xfpm_notify_new ();
411 backlight->priv->max_level = xfpm_brightness_get_max_level (backlight->priv->brightness);
412 g_signal_connect (backlight->priv->idle, "alarm-expired",
413 G_CALLBACK (xfpm_backlight_alarm_timeout_cb), backlight);
414
415 g_signal_connect (backlight->priv->idle, "reset",
416 G_CALLBACK(xfpm_backlight_reset_cb), backlight);
417
418 g_signal_connect (backlight->priv->button, "button-pressed",
419 G_CALLBACK (xfpm_backlight_button_pressed_cb), backlight);
420
421 g_signal_connect_swapped (backlight->priv->conf, "notify::" BRIGHTNESS_ON_AC,
422 G_CALLBACK (xfpm_backlight_brightness_on_ac_settings_changed), backlight);
423
424 g_signal_connect_swapped (backlight->priv->conf, "notify::" BRIGHTNESS_ON_BATTERY,
425 G_CALLBACK (xfpm_backlight_brightness_on_battery_settings_changed), backlight);
426
427 g_signal_connect (backlight->priv->power, "on-battery-changed",
428 G_CALLBACK (xfpm_backlight_on_battery_changed_cb), backlight);
429 g_object_get (G_OBJECT (backlight->priv->power),
430 "on-battery", &backlight->priv->on_battery,
431 NULL);
432 xfpm_brightness_get_level (backlight->priv->brightness, &backlight->priv->last_level);
433 xfpm_backlight_set_timeouts (backlight);
434 }
435}
436
437static void
438xfpm_backlight_finalize (GObject *object)
439{
440 XfpmBacklight *backlight;
441
442 backlight = XFPM_BACKLIGHT (object);
443
444 xfpm_backlight_destroy_popup (backlight);
445
446 if ( backlight->priv->brightness )
447 g_object_unref (backlight->priv->brightness);
448
449 if ( backlight->priv->idle )
450 g_object_unref (backlight->priv->idle);
451
452 if ( backlight->priv->conf )
453 g_object_unref (backlight->priv->conf);
454
455 if ( backlight->priv->button )
456 g_object_unref (backlight->priv->button);
457
458 if ( backlight->priv->power )
459 g_object_unref (backlight->priv->power);
460
461 if ( backlight->priv->notify)
462 g_object_unref (backlight->priv->notify);
463
464 G_OBJECT_CLASS (xfpm_backlight_parent_class)->finalize (object);
465}
466
467XfpmBacklight *
468xfpm_backlight_new (void)
469{
470 XfpmBacklight *backlight = NULL;
471 backlight = g_object_new (XFPM_TYPE_BACKLIGHT, NULL);
472 return backlight;
473}
474
475gboolean xfpm_backlight_has_hw (XfpmBacklight *backlight)
476{
477 return backlight->priv->has_hw;
478}
4790
=== removed file '.pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-notify.c'
--- .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-notify.c 2013-05-22 00:46:08 +0000
+++ .pc/01_Remove_custom_OSD_brightness_popup,_use_libnotify_instead.patch/src/xfpm-notify.c 1970-01-01 00:00:00 +0000
@@ -1,409 +0,0 @@
1/*
2 * * Copyright (C) 2008-2011 Ali <aliov@xfce.org>
3 *
4 * Licensed under the GNU General Public License Version 2
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifdef HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <stdio.h>
26
27#ifdef HAVE_STDLIB_H
28#include <stdlib.h>
29#endif
30
31#ifdef HAVE_STRING_H
32#include <string.h>
33#endif
34
35#ifdef HAVE_ERRNO_H
36#include <errno.h>
37#endif
38
39#include <gtk/gtk.h>
40
41#include <libxfce4util/libxfce4util.h>
42
43#include <libnotify/notify.h>
44
45#include "xfpm-common.h"
46#include "xfpm-notify.h"
47#include "xfpm-dbus-monitor.h"
48
49static void xfpm_notify_finalize (GObject *object);
50
51static NotifyNotification * xfpm_notify_new_notification_internal (const gchar *title,
52 const gchar *message,
53 const gchar *icon_name,
54 guint timeout,
55 XfpmNotifyUrgency urgency,
56 GtkStatusIcon *icon) G_GNUC_MALLOC;
57
58#define XFPM_NOTIFY_GET_PRIVATE(o) \
59(G_TYPE_INSTANCE_GET_PRIVATE((o), XFPM_TYPE_NOTIFY, XfpmNotifyPrivate))
60
61struct XfpmNotifyPrivate
62{
63 XfpmDBusMonitor *monitor;
64
65 NotifyNotification *notification;
66 NotifyNotification *critical;
67
68 gulong critical_id;
69 gulong notify_id;
70
71 gboolean supports_actions;
72 gboolean supports_sync; /*For x-canonical-private-synchronous */
73};
74
75enum
76{
77 PROP_0,
78 PROP_ACTIONS,
79 PROP_SYNC
80};
81
82G_DEFINE_TYPE(XfpmNotify, xfpm_notify, G_TYPE_OBJECT)
83
84static void
85xfpm_notify_get_server_caps (XfpmNotify *notify)
86{
87 GList *caps = NULL;
88 notify->priv->supports_actions = FALSE;
89 notify->priv->supports_sync = FALSE;
90
91 caps = notify_get_server_caps ();
92
93 if (caps != NULL)
94 {
95 if (g_list_find_custom (caps, "x-canonical-private-synchronous", (GCompareFunc) g_strcmp0) != NULL)
96 notify->priv->supports_sync = TRUE;
97
98 if (g_list_find_custom (caps, "actions", (GCompareFunc) g_strcmp0) != NULL)
99 notify->priv->supports_actions = TRUE;
100
101 g_list_foreach(caps, (GFunc)g_free, NULL);
102 g_list_free(caps);
103 }
104}
105
106static void
107xfpm_notify_check_server (XfpmDBusMonitor *monitor,
108 gchar *service_name,
109 gboolean connected,
110 gboolean on_session,
111 XfpmNotify *notify)
112{
113 if ( !g_strcmp0 (service_name, "org.freedesktop.Notifications") && on_session && connected )
114 xfpm_notify_get_server_caps (notify);
115}
116
117static void xfpm_notify_get_property (GObject *object,
118 guint prop_id,
119 GValue *value,
120 GParamSpec *pspec)
121{
122 XfpmNotify *notify;
123
124 notify = XFPM_NOTIFY (object);
125
126 switch (prop_id)
127 {
128 case PROP_ACTIONS:
129 g_value_set_boolean (value, notify->priv->supports_actions);
130 break;
131 case PROP_SYNC:
132 g_value_set_boolean (value, notify->priv->supports_sync);
133 break;
134 default:
135 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
136 break;
137 }
138}
139
140static void
141xfpm_notify_class_init (XfpmNotifyClass *klass)
142{
143 GObjectClass *object_class = G_OBJECT_CLASS (klass);
144
145 object_class->finalize = xfpm_notify_finalize;
146 object_class->get_property = xfpm_notify_get_property;
147
148 g_object_class_install_property (object_class,
149 PROP_ACTIONS,
150 g_param_spec_boolean ("actions",
151 NULL, NULL,
152 FALSE,
153 G_PARAM_READABLE));
154
155 g_object_class_install_property (object_class,
156 PROP_SYNC,
157 g_param_spec_boolean ("sync",
158 NULL, NULL,
159 FALSE,
160 G_PARAM_READABLE));
161
162 g_type_class_add_private (klass, sizeof (XfpmNotifyPrivate));
163}
164
165static void
166xfpm_notify_init (XfpmNotify *notify)
167{
168 notify->priv = XFPM_NOTIFY_GET_PRIVATE (notify);
169
170 notify->priv->notification = NULL;
171 notify->priv->critical = NULL;
172
173 notify->priv->critical_id = 0;
174 notify->priv->notify_id = 0;
175
176 notify->priv->monitor = xfpm_dbus_monitor_new ();
177 xfpm_dbus_monitor_add_service (notify->priv->monitor, DBUS_BUS_SESSION, "org.freedesktop.Notifications");
178 g_signal_connect (notify->priv->monitor, "service-connection-changed",
179 G_CALLBACK (xfpm_notify_check_server), notify);
180
181 xfpm_notify_get_server_caps (notify);
182}
183
184static void
185xfpm_notify_finalize (GObject *object)
186{
187 XfpmNotify *notify;
188
189 notify = XFPM_NOTIFY (object);
190
191 xfpm_notify_close_normal (notify);
192 xfpm_notify_close_critical (notify);
193
194 G_OBJECT_CLASS (xfpm_notify_parent_class)->finalize(object);
195}
196
197static void
198xfpm_notify_set_notification_icon (NotifyNotification *n, const gchar *icon_name )
199{
200 GdkPixbuf *pix = xfpm_icon_load (icon_name, 48);
201
202 if ( pix )
203 {
204 notify_notification_set_icon_from_pixbuf (n,
205 pix);
206 g_object_unref ( G_OBJECT(pix));
207 }
208
209}
210
211static NotifyNotification *
212xfpm_notify_new_notification_internal (const gchar *title, const gchar *message,
213 const gchar *icon_name, guint timeout,
214 XfpmNotifyUrgency urgency, GtkStatusIcon *icon)
215{
216 NotifyNotification *n;
217
218#ifdef NOTIFY_CHECK_VERSION
219#if NOTIFY_CHECK_VERSION (0, 7, 0)
220 n = notify_notification_new (title, message, NULL);
221#else
222 n = notify_notification_new (title, message, NULL, NULL);
223#endif
224#else
225 n = notify_notification_new (title, message, NULL, NULL);
226#endif
227
228
229 if ( icon_name )
230 xfpm_notify_set_notification_icon (n, icon_name);
231
232#ifdef NOTIFY_CHECK_VERSION
233#if !NOTIFY_CHECK_VERSION (0, 7, 0)
234 if ( icon )
235 notify_notification_attach_to_status_icon (n, icon);
236#endif
237#else
238 if ( icon )
239 notify_notification_attach_to_status_icon (n, icon);
240#endif
241
242 notify_notification_set_urgency (n, (NotifyUrgency)urgency);
243
244 if ( timeout != 0)
245 notify_notification_set_timeout (n, timeout);
246
247 return n;
248}
249
250static void
251xfpm_notify_closed_cb (NotifyNotification *n, XfpmNotify *notify)
252{
253 notify->priv->notification = NULL;
254 g_object_unref (G_OBJECT (n));
255}
256
257static void
258xfpm_notify_close_critical_cb (NotifyNotification *n, XfpmNotify *notify)
259{
260 notify->priv->critical = NULL;
261 g_object_unref (G_OBJECT (n));
262}
263
264static gboolean
265xfpm_notify_show (NotifyNotification *n)
266{
267 notify_notification_show (n, NULL);
268 return FALSE;
269}
270
271static void
272xfpm_notify_close_notification (XfpmNotify *notify )
273{
274 if (notify->priv->notify_id != 0)
275 {
276 g_source_remove (notify->priv->notify_id);
277 notify->priv->notify_id = 0;
278 }
279
280 if ( notify->priv->notification )
281 {
282 if (!notify_notification_close (notify->priv->notification, NULL))
283 g_warning ("Failed to close notification\n");
284
285 g_object_unref (G_OBJECT(notify->priv->notification) );
286 notify->priv->notification = NULL;
287 }
288}
289
290XfpmNotify *
291xfpm_notify_new (void)
292{
293 static gpointer xfpm_notify_object = NULL;
294
295 if ( xfpm_notify_object != NULL )
296 {
297 g_object_ref (xfpm_notify_object);
298 }
299 else
300 {
301 xfpm_notify_object = g_object_new (XFPM_TYPE_NOTIFY, NULL);
302 g_object_add_weak_pointer (xfpm_notify_object, &xfpm_notify_object);
303 }
304 return XFPM_NOTIFY (xfpm_notify_object);
305}
306
307void xfpm_notify_show_notification (XfpmNotify *notify, const gchar *title,
308 const gchar *text, const gchar *icon_name,
309 gint timeout, gboolean simple,
310 XfpmNotifyUrgency urgency, GtkStatusIcon *icon)
311{
312 NotifyNotification *n;
313
314 if ( !simple )
315 xfpm_notify_close_notification (notify);
316
317 n = xfpm_notify_new_notification_internal (title,
318 text, icon_name,
319 timeout, urgency,
320 icon);
321
322 xfpm_notify_present_notification (notify, n, simple);
323}
324
325NotifyNotification *xfpm_notify_new_notification (XfpmNotify *notify,
326 const gchar *title,
327 const gchar *text,
328 const gchar *icon_name,
329 guint timeout,
330 XfpmNotifyUrgency urgency,
331 GtkStatusIcon *icon)
332{
333 NotifyNotification *n = xfpm_notify_new_notification_internal (title,
334 text, icon_name,
335 timeout, urgency,
336 icon);
337 return n;
338}
339
340void xfpm_notify_add_action_to_notification (XfpmNotify *notify, NotifyNotification *n,
341 const gchar *id, const gchar *action_label,
342 NotifyActionCallback callback, gpointer data)
343{
344 g_return_if_fail (XFPM_IS_NOTIFY(notify));
345
346 notify_notification_add_action (n, id, action_label,
347 (NotifyActionCallback)callback,
348 data, NULL);
349
350}
351
352void xfpm_notify_present_notification (XfpmNotify *notify, NotifyNotification *n, gboolean simple)
353{
354 g_return_if_fail (XFPM_IS_NOTIFY(notify));
355
356 if ( !simple )
357 xfpm_notify_close_notification (notify);
358
359 if ( !simple )
360 {
361 g_signal_connect (G_OBJECT(n),"closed",
362 G_CALLBACK(xfpm_notify_closed_cb), notify);
363 notify->priv->notification = n;
364 }
365
366 notify->priv->notify_id = g_idle_add ((GSourceFunc) xfpm_notify_show, n);
367}
368
369void xfpm_notify_critical (XfpmNotify *notify, NotifyNotification *n)
370{
371 g_return_if_fail (XFPM_IS_NOTIFY (notify));
372
373 xfpm_notify_close_critical (notify);
374
375 notify->priv->critical = n;
376
377 g_signal_connect (G_OBJECT (n), "closed",
378 G_CALLBACK (xfpm_notify_close_critical_cb), notify);
379
380 notify->priv->critical_id = g_idle_add ((GSourceFunc) xfpm_notify_show, n);
381}
382
383void xfpm_notify_close_critical (XfpmNotify *notify)
384{
385 g_return_if_fail (XFPM_IS_NOTIFY (notify));
386
387
388 if (notify->priv->critical_id != 0)
389 {
390 g_source_remove (notify->priv->critical_id);
391 notify->priv->critical_id = 0;
392 }
393
394 if ( notify->priv->critical )
395 {
396 if (!notify_notification_close (notify->priv->critical, NULL))
397 g_warning ("Failed to close notification\n");
398
399 g_object_unref (G_OBJECT(notify->priv->critical) );
400 notify->priv->critical = NULL;
401 }
402}
403
404void xfpm_notify_close_normal (XfpmNotify *notify)
405{
406 g_return_if_fail (XFPM_IS_NOTIFY (notify));
407
408 xfpm_notify_close_notification (notify);
409}
4100
=== removed directory '.pc/02_translations-fix-invalid-format-strings.patch'
=== removed directory '.pc/02_translations-fix-invalid-format-strings.patch/po'
=== removed file '.pc/02_translations-fix-invalid-format-strings.patch/po/en_GB.po'
--- .pc/02_translations-fix-invalid-format-strings.patch/po/en_GB.po 2013-08-13 06:56:35 +0000
+++ .pc/02_translations-fix-invalid-format-strings.patch/po/en_GB.po 1970-01-01 00:00:00 +0000
@@ -1,1083 +0,0 @@
1# en_GB translation for xfce4-power-manager.
2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the PACKAGE package.
4# Jeff Bailes <thepizzaking@gmail.com>, 2010.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: \n"
9"Report-Msgid-Bugs-To: \n"
10"POT-Creation-Date: 2012-04-22 22:51+0000\n"
11"PO-Revision-Date: 2010-12-24 14:21+1100\n"
12"Last-Translator: Jeff Bailes <thepizzaking@gmail.com>\n"
13"Language-Team: \n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Language: \n"
18"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20#: ../data/interfaces/xfpm-settings.ui.h:1
21msgid "<b>Actions</b>"
22msgstr "<b>Actions</b>"
23
24#: ../data/interfaces/xfpm-settings.ui.h:2
25msgid "<b>Advanced Options</b>"
26msgstr "<b>Advanced Options</b>"
27
28#: ../data/interfaces/xfpm-settings.ui.h:3
29msgid "<b>Brightness</b>"
30msgstr "<b>Brightness</b>"
31
32#: ../data/interfaces/xfpm-settings.ui.h:4
33msgid "<b>General Options</b>"
34msgstr "<b>General Options</b>"
35
36#: ../data/interfaces/xfpm-settings.ui.h:5
37msgid "<b>Monitor</b>"
38msgstr "<b>Monitor</b>"
39
40#: ../data/interfaces/xfpm-settings.ui.h:6
41msgid "Actions"
42msgstr "Actions"
43
44#: ../data/interfaces/xfpm-settings.ui.h:7
45msgid "Consider the computer on low power at:"
46msgstr "Consider the computer on low power at:"
47
48#. Hibernate menu option
49#: ../data/interfaces/xfpm-settings.ui.h:8 ../settings/xfpm-settings.c:820
50#: ../settings/xfpm-settings.c:888 ../settings/xfpm-settings.c:1037
51#: ../settings/xfpm-settings.c:1214 ../settings/xfpm-settings.c:1271
52#: ../settings/xfpm-settings.c:1323 ../src/xfpm-power.c:484
53#: ../src/xfpm-power.c:779
54msgid "Hibernate"
55msgstr "Hibernate"
56
57#: ../data/interfaces/xfpm-settings.ui.h:9
58msgid "Level:"
59msgstr "Level:"
60
61#: ../data/interfaces/xfpm-settings.ui.h:10
62msgid "Lock screen when going for suspend/hibernate"
63msgstr "Lock screen when going for suspend/hibernate"
64
65#: ../data/interfaces/xfpm-settings.ui.h:11 ../src/xfpm-power-common.c:132
66msgid "Monitor"
67msgstr "Monitor"
68
69#: ../data/interfaces/xfpm-settings.ui.h:12
70msgid "Monitor power management control"
71msgstr "Monitor power management control"
72
73#: ../data/interfaces/xfpm-settings.ui.h:13 ../settings/xfpm-settings.c:809
74#: ../settings/xfpm-settings.c:877 ../settings/xfpm-settings.c:1026
75#: ../settings/xfpm-settings.c:1203 ../settings/xfpm-settings.c:1260
76#: ../settings/xfpm-settings.c:1312
77msgid "Nothing"
78msgstr "Nothing"
79
80#: ../data/interfaces/xfpm-settings.ui.h:14
81msgid "Power manager settings"
82msgstr "Power manager settings"
83
84#: ../data/interfaces/xfpm-settings.ui.h:15
85msgid "Prefer power savings over performance"
86msgstr "Prefer power savings over performance"
87
88#: ../data/interfaces/xfpm-settings.ui.h:16
89msgid "Put display to sleep when computer is inactive for:"
90msgstr "Put display to sleep when computer is inactive for:"
91
92#: ../data/interfaces/xfpm-settings.ui.h:17
93msgid "Put the computer to sleep when inactive for:"
94msgstr "Put the computer to sleep when inactive for:"
95
96#: ../data/interfaces/xfpm-settings.ui.h:18
97msgid "Reduce screen brightness when computer is inactive for:"
98msgstr "Reduce screen brightness when computer is inactive for:"
99
100#: ../data/interfaces/xfpm-settings.ui.h:19
101msgid "Set computer inactivity sleep mode:"
102msgstr "Set computer inactivity sleep mode:"
103
104#: ../data/interfaces/xfpm-settings.ui.h:20
105msgid "Set monitor sleep mode:"
106msgstr "Set monitor sleep mode:"
107
108#: ../data/interfaces/xfpm-settings.ui.h:21
109msgid "Show notifications to notify about the battery state"
110msgstr "Show notifications to notify about the battery state"
111
112#: ../data/interfaces/xfpm-settings.ui.h:22
113msgid "Spin down hard disks"
114msgstr "Spin down hard disks"
115
116#: ../data/interfaces/xfpm-settings.ui.h:23
117msgid "Standby"
118msgstr "Standby"
119
120#. Suspend menu option
121#: ../data/interfaces/xfpm-settings.ui.h:24 ../settings/xfpm-settings.c:814
122#: ../settings/xfpm-settings.c:882 ../settings/xfpm-settings.c:1031
123#: ../settings/xfpm-settings.c:1208 ../settings/xfpm-settings.c:1265
124#: ../settings/xfpm-settings.c:1317 ../src/xfpm-power.c:499
125#: ../src/xfpm-power.c:792
126msgid "Suspend"
127msgstr "Suspend"
128
129#: ../data/interfaces/xfpm-settings.ui.h:25
130msgid "Switch off display when computer is inactive for:"
131msgstr "Switch off display when computer is inactive for:"
132
133#: ../data/interfaces/xfpm-settings.ui.h:26
134msgid "System tray icon: "
135msgstr "System tray icon: "
136
137#: ../data/interfaces/xfpm-settings.ui.h:27
138msgid "When battery power is critical:"
139msgstr "When battery power is critical:"
140
141#: ../data/interfaces/xfpm-settings.ui.h:28
142msgid "When hibernate button is pressed:"
143msgstr "When hibernate button is pressed:"
144
145#: ../data/interfaces/xfpm-settings.ui.h:29
146msgid "When laptop lid is closed:"
147msgstr "When laptop lid is closed:"
148
149#: ../data/interfaces/xfpm-settings.ui.h:30
150msgid "When power button is pressed:"
151msgstr "When power button is pressed:"
152
153#: ../data/interfaces/xfpm-settings.ui.h:31
154msgid "When sleep button is pressed:"
155msgstr "When sleep button is pressed:"
156
157#: ../data/interfaces/xfpm-settings.ui.h:32
158#: ../settings/xfpm-settings-main.c:121 ../src/xfpm-main.c:413
159msgid "Xfce Power Manager"
160msgstr "Xfce Power Manager"
161
162#: ../settings/xfpm-settings.c:567 ../settings/xfpm-settings.c:582
163#: ../settings/xfpm-settings.c:609
164msgid "Never"
165msgstr "Never"
166
167#: ../settings/xfpm-settings.c:570
168msgid "One minute"
169msgstr "One minute"
170
171#: ../settings/xfpm-settings.c:572 ../settings/xfpm-settings.c:584
172msgid "Minutes"
173msgstr "Minutes"
174
175#: ../settings/xfpm-settings.c:586 ../settings/xfpm-settings.c:593
176#: ../settings/xfpm-settings.c:594 ../settings/xfpm-settings.c:595
177msgid "One hour"
178msgstr "One hour"
179
180#: ../settings/xfpm-settings.c:594 ../settings/xfpm-settings.c:598
181msgid "one minute"
182msgstr "one minute"
183
184#: ../settings/xfpm-settings.c:595 ../settings/xfpm-settings.c:599
185msgid "minutes"
186msgstr "minutes"
187
188#: ../settings/xfpm-settings.c:597 ../settings/xfpm-settings.c:598
189#: ../settings/xfpm-settings.c:599
190msgid "hours"
191msgstr "hours"
192
193#: ../settings/xfpm-settings.c:611
194msgid "Seconds"
195msgstr "Seconds"
196
197#: ../settings/xfpm-settings.c:792 ../settings/xfpm-settings.c:990
198#: ../settings/xfpm-settings.c:1470
199msgid "Hibernate and suspend operations not supported"
200msgstr "Hibernate and suspend operations not supported"
201
202#: ../settings/xfpm-settings.c:797 ../settings/xfpm-settings.c:995
203#: ../settings/xfpm-settings.c:1475
204msgid "Hibernate and suspend operations not permitted"
205msgstr "Hibernate and suspend operations not permitted"
206
207#: ../settings/xfpm-settings.c:826 ../settings/xfpm-settings.c:1220
208#: ../src/xfpm-power.c:805
209msgid "Shutdown"
210msgstr "Shutdown"
211
212#: ../settings/xfpm-settings.c:830 ../settings/xfpm-settings.c:1224
213#: ../settings/xfpm-settings.c:1275 ../settings/xfpm-settings.c:1327
214msgid "Ask"
215msgstr "Ask"
216
217#: ../settings/xfpm-settings.c:892 ../settings/xfpm-settings.c:1041
218msgid "Lock screen"
219msgstr "Lock screen"
220
221#: ../settings/xfpm-settings.c:960 ../settings/xfpm-settings.c:1110
222msgid "Spinning down hard disks permission denied"
223msgstr "Spinning down hard disks permission denied"
224
225#: ../settings/xfpm-settings.c:1150
226msgid "Always show icon"
227msgstr "Always show icon"
228
229#: ../settings/xfpm-settings.c:1153
230msgid "When battery is present"
231msgstr "When battery is present"
232
233#: ../settings/xfpm-settings.c:1156
234msgid "When battery is charging or discharging"
235msgstr "When battery is charging or discharging"
236
237#: ../settings/xfpm-settings.c:1159
238msgid "Never show icon"
239msgstr "Never show icon"
240
241#: ../settings/xfpm-settings.c:1185
242msgid ""
243"Disable Display Power Management Signaling (DPMS), e.g don't attempt to "
244"switch off the display or put it in sleep mode."
245msgstr ""
246"Disable Display Power Management Signaling (DPMS), e.g don't attempt to "
247"switch off the display or put it in sleep mode."
248
249#: ../settings/xfpm-settings.c:1379
250msgid "Suspend operation not supported"
251msgstr "Suspend operation not supported"
252
253#: ../settings/xfpm-settings.c:1385
254msgid "Suspend operation not permitted"
255msgstr "Suspend operation not permitted"
256
257#: ../settings/xfpm-settings.c:1391
258msgid "Hibernate operation not supported"
259msgstr "Hibernate operation not supported"
260
261#: ../settings/xfpm-settings.c:1396
262msgid "Hibernate operation not permitted"
263msgstr "Hibernate operation not permitted"
264
265#: ../settings/xfpm-settings.c:1443
266msgid "When all the power sources of the computer reach this charge level"
267msgstr "When all the power sources of the computer reach this charge level"
268
269#: ../settings/xfpm-settings.c:1546 ../settings/xfpm-settings.c:1551
270msgid "General"
271msgstr "General"
272
273#: ../settings/xfpm-settings.c:1560 ../settings/xfpm-settings.c:1565
274msgid "On AC"
275msgstr "On AC"
276
277#: ../settings/xfpm-settings.c:1575 ../settings/xfpm-settings.c:1580
278msgid "On Battery"
279msgstr "On Battery"
280
281#: ../settings/xfpm-settings.c:1589 ../settings/xfpm-settings.c:1594
282msgid "Extended"
283msgstr "Extended"
284
285#: ../settings/xfpm-settings.c:1662
286msgid "Check your power manager installation"
287msgstr "Check your power manager installation"
288
289#: ../settings/xfpm-settings-main.c:78
290msgid "Settings manager socket"
291msgstr "Settings manager socket"
292
293#: ../settings/xfpm-settings-main.c:78
294msgid "SOCKET ID"
295msgstr "SOCKET ID"
296
297#: ../settings/xfpm-settings-main.c:89 ../src/xfpm-main.c:289
298#: ../src/xfpm-power-info.c:946
299#, c-format
300msgid "Type '%s --help' for usage."
301msgstr "Type '%s --help' for usage."
302
303#: ../settings/xfpm-settings-main.c:123
304msgid "Failed to load power manager configuration, using defaults"
305msgstr "Failed to load power manager configuration, using defaults"
306
307#: ../settings/xfpm-settings-main.c:148
308msgid "Unable to connect to Xfce Power Manager"
309msgstr "Unable to connect to Xfce Power Manager"
310
311#: ../settings/xfpm-settings-main.c:190 ../src/xfpm-main.c:329
312#, c-format
313msgid "Xfce power manager is not running"
314msgstr "Xfce power manager is not running"
315
316#: ../settings/xfpm-settings-main.c:195
317msgid "Run"
318msgstr "Run"
319
320#: ../settings/xfpm-settings-main.c:196
321msgid "Xfce4 Power Manager is not running, do you want to launch it now?"
322msgstr "Xfce4 Power Manager is not running, do you want to launch it now?"
323
324#: ../settings/xfce4-power-manager-settings.desktop.in.h:1
325#: ../src/xfpm-power.c:307 ../src/xfpm-power.c:595 ../src/xfpm-power.c:730
326#: ../src/xfpm-power.c:766 ../src/xfpm-power.c:935 ../src/xfpm-power.c:959
327#: ../src/xfpm-battery.c:351 ../src/xfce4-power-manager.desktop.in.h:1
328msgid "Power Manager"
329msgstr "Power Manager"
330
331#: ../settings/xfce4-power-manager-settings.desktop.in.h:2
332msgid "Settings for the Xfce Power Manager"
333msgstr "Settings for the Xfce Power Manager"
334
335#: ../common/xfpm-common.c:155
336msgid "translator-credits"
337msgstr "Jeff Bailes <thepizzaking@gmail.com>, 2010"
338
339#: ../src/xfpm-power.c:328
340msgid "_Hibernate"
341msgstr "_Hibernate"
342
343#: ../src/xfpm-power.c:329
344msgid ""
345"An application is currently disabling the automatic sleep. Doing this action "
346"now may damage the working state of this application."
347msgstr ""
348"An application is currently disabling the automatic sleep, doing this action "
349"now may damage the working state of this application, are you sure you want "
350"to hibernate the system?"
351
352#: ../src/xfpm-power.c:331
353msgid "Are you sure you want to hibernate the system?"
354msgstr "Are you sure you want to hibernate the system?"
355
356#: ../src/xfpm-power.c:426
357msgid "Quit"
358msgstr "Quit"
359
360#: ../src/xfpm-power.c:427
361msgid "All running instances of the power manager will exit"
362msgstr "All running instances of the power manager will exit"
363
364#: ../src/xfpm-power.c:429
365msgid "Quit the power manager?"
366msgstr "Quit the power manager?"
367
368#. Power information
369#: ../src/xfpm-power.c:534 ../src/xfpm-power-info.c:818
370msgid "Power Information"
371msgstr "Power Information"
372
373#. *
374#. * Power Mode
375#. *
376#. TRANSLATOR: Mode here is the power profile (presentation, power save,
377#. normal)
378#: ../src/xfpm-power.c:550
379msgid "Mode"
380msgstr "Mode"
381
382#. Normal
383#: ../src/xfpm-power.c:561
384msgid "Normal"
385msgstr "Normal"
386
387#. Normal
388#: ../src/xfpm-power.c:571
389msgid "Presentation"
390msgstr "Presentation"
391
392#: ../src/xfpm-power.c:693
393msgid "Hibernate the system"
394msgstr "Hibernate the system"
395
396#: ../src/xfpm-power.c:704
397msgid "Suspend the system"
398msgstr "Suspend the system"
399
400#: ../src/xfpm-power.c:714
401msgid "Shutdown the system"
402msgstr "Shutdown the system"
403
404#: ../src/xfpm-power.c:725 ../src/xfpm-power.c:763
405msgid "System is running on low power. Save your work to avoid losing data"
406msgstr "System is running on low power. Save your work to avoid losing data"
407
408#: ../src/xfpm-power.c:936
409msgid "System is running on low power"
410msgstr "System is running on low power"
411
412#: ../src/xfpm-power.c:955
413#, c-format
414msgid ""
415"Your %s charge level is low\n"
416"Estimated time left %s"
417msgstr ""
418"Your %s charge level is low\n"
419"Estimated time left %s"
420
421#: ../src/xfpm-power.c:1158 ../src/xfpm-power.c:1163
422msgid "Adaptor is offline"
423msgstr "Adapter is offline"
424
425#: ../src/xfpm-power.c:1159 ../src/xfpm-power.c:1164 ../src/xfpm-battery.c:413
426#, c-format
427msgid "Adaptor is online"
428msgstr "Adapter is online"
429
430#: ../src/xfpm-power.c:1617 ../src/xfpm-power.c:1638 ../src/xfpm-power.c:1653
431#: ../src/xfpm-power.c:1676
432#, c-format
433msgid "Permission denied"
434msgstr "Permission denied"
435
436#: ../src/xfpm-power.c:1661 ../src/xfpm-power.c:1684
437#, c-format
438msgid "Suspend not supported"
439msgstr "Suspend not supported"
440
441#: ../src/xfpm-power-common.c:122 ../src/xfpm-power-common.c:141
442msgid "Battery"
443msgstr "Battery"
444
445#: ../src/xfpm-power-common.c:124 ../src/xfpm-battery.c:832
446msgid "UPS"
447msgstr "UPS"
448
449#: ../src/xfpm-power-common.c:126
450msgid "Line power"
451msgstr "Line power"
452
453#: ../src/xfpm-power-common.c:128
454msgid "Mouse"
455msgstr "Mouse"
456
457#: ../src/xfpm-power-common.c:130
458msgid "Keyboard"
459msgstr "Keyboard"
460
461#: ../src/xfpm-power-common.c:134
462msgid "PDA"
463msgstr "PDA"
464
465#: ../src/xfpm-power-common.c:136
466msgid "Phone"
467msgstr "Phone"
468
469#: ../src/xfpm-power-common.c:138 ../src/xfpm-power-common.c:153
470#: ../src/xfpm-power-common.c:168 ../src/xfpm-battery.c:850
471msgid "Unknown"
472msgstr "Unknown"
473
474#: ../src/xfpm-power-common.c:155
475msgid "Lithium ion"
476msgstr "Lithium ion"
477
478#: ../src/xfpm-power-common.c:157
479msgid "Lithium polymer"
480msgstr "Lithium polymer"
481
482#: ../src/xfpm-power-common.c:159
483msgid "Lithium iron phosphate"
484msgstr "Lithium iron phosphate"
485
486#: ../src/xfpm-power-common.c:161
487msgid "Lead acid"
488msgstr "Lead acid"
489
490#: ../src/xfpm-power-common.c:163
491msgid "Nickel cadmium"
492msgstr "Nickel cadmium"
493
494#: ../src/xfpm-power-common.c:165
495msgid "Nickel metal hybride"
496msgstr "Nickel metal hybride"
497
498#: ../src/xfpm-battery.c:171
499msgid "Unknown time"
500msgstr "Unknown time"
501
502#: ../src/xfpm-battery.c:177
503#, c-format
504msgid "%i minute"
505msgid_plural "%i minutes"
506msgstr[0] "%i minute"
507msgstr[1] "%i minutes"
508
509#: ../src/xfpm-battery.c:188
510#, c-format
511msgid "%i hour"
512msgid_plural "%i hours"
513msgstr[0] "%i hour"
514msgstr[1] "%i hours"
515
516#. TRANSLATOR: "%i %s %i %s" are "%i hours %i minutes"
517#. * Swap order with "%2$s %2$i %1$s %1$i if needed
518#: ../src/xfpm-battery.c:194
519#, c-format
520msgid "%i %s %i %s"
521msgstr "%i %s %i %s"
522
523#: ../src/xfpm-battery.c:195
524msgid "hour"
525msgid_plural "hours"
526msgstr[0] "hour"
527msgstr[1] "hours"
528
529#: ../src/xfpm-battery.c:196
530msgid "minute"
531msgid_plural "minutes"
532msgstr[0] "minute"
533msgstr[1] "minutes"
534
535#: ../src/xfpm-battery.c:211 ../src/xfpm-battery.c:262
536#, c-format
537msgid "Your %s is fully charged"
538msgstr "Your %s is fully charged"
539
540#: ../src/xfpm-battery.c:214 ../src/xfpm-battery.c:265
541#, c-format
542msgid "Your %s is charging"
543msgstr "Your %s is charging"
544
545#: ../src/xfpm-battery.c:224
546#, c-format
547msgid ""
548"%s (%i%%)\n"
549"%s until is fully charged."
550msgstr ""
551"%s\n"
552"Your %s is charging (%i%%)\n"
553"%s until is fully charged."
554
555#: ../src/xfpm-battery.c:232 ../src/xfpm-battery.c:268
556#, c-format
557msgid "Your %s is discharging"
558msgstr "Your %s is discharging"
559
560#: ../src/xfpm-battery.c:234
561#, c-format
562msgid "System is running on %s power"
563msgstr "System is running on %s power"
564
565#: ../src/xfpm-battery.c:244
566#, c-format
567msgid ""
568"%s (%i%%)\n"
569"Estimated time left is %s."
570msgstr ""
571"%s\n"
572"Your %s is discharging (%i%%)\n"
573"Estimated time left is %s."
574
575#: ../src/xfpm-battery.c:250 ../src/xfpm-battery.c:271
576#, c-format
577msgid "Your %s is empty"
578msgstr "Your %s is empty"
579
580#: ../src/xfpm-battery.c:413
581#, c-format
582msgid "System is running on battery power"
583msgstr "System is running on battery power"
584
585#: ../src/xfpm-battery.c:420
586#, c-format
587msgid ""
588"%s\n"
589"Your %s is fully charged (%i%%).\n"
590"Provides %s runtime"
591msgstr ""
592"%s\n"
593"Your %s is fully charged (%i%%).\n"
594"Provides %s runtime"
595
596#: ../src/xfpm-battery.c:429
597#, c-format
598msgid ""
599"%s\n"
600"Your %s is fully charged (%i%%)."
601msgstr ""
602"%s\n"
603"Your %s is fully charged (%i%%)."
604
605#: ../src/xfpm-battery.c:440
606#, c-format
607msgid ""
608"%s\n"
609"Your %s is charging (%i%%)\n"
610"%s until is fully charged."
611msgstr ""
612"%s\n"
613"Your %s is charging (%i%%)\n"
614"%s until is fully charged."
615
616#: ../src/xfpm-battery.c:449
617#, c-format
618msgid ""
619"%s\n"
620"Your %s is charging (%i%%)."
621msgstr ""
622"%s\n"
623"Your %s is charging (%i%%)."
624
625#: ../src/xfpm-battery.c:460
626#, c-format
627msgid ""
628"%s\n"
629"Your %s is discharging (%i%%)\n"
630"Estimated time left is %s."
631msgstr ""
632"%s\n"
633"Your %s is discharging (%i%%)\n"
634"Estimated time left is %s."
635
636#: ../src/xfpm-battery.c:469
637#, c-format
638msgid ""
639"%s\n"
640"Your %s is discharging (%i%%)."
641msgstr ""
642"%s\n"
643"Your %s is discharging (%i%%)."
644
645#: ../src/xfpm-battery.c:478
646#, c-format
647msgid ""
648"%s\n"
649"%s waiting to discharge (%i%%)."
650msgstr ""
651"%s\n"
652"%s waiting to discharge (%i%%)."
653
654#: ../src/xfpm-battery.c:482
655#, c-format
656msgid ""
657"%s\n"
658"%s waiting to charge (%i%%)."
659msgstr ""
660"%s\n"
661"%s waiting to charge (%i%%)."
662
663#: ../src/xfpm-battery.c:486
664#, c-format
665msgid ""
666"%s\n"
667"Your %s is empty"
668msgstr ""
669"%s\n"
670"Your %s is empty"
671
672#: ../src/xfpm-battery.c:829
673msgid "battery"
674msgstr "battery"
675
676#: ../src/xfpm-battery.c:835
677msgid "monitor battery"
678msgstr "monitor battery"
679
680#: ../src/xfpm-battery.c:838
681msgid "mouse battery"
682msgstr "mouse battery"
683
684#: ../src/xfpm-battery.c:841
685msgid "keyboard battery"
686msgstr "keyboard battery"
687
688#: ../src/xfpm-battery.c:844
689msgid "PDA battery"
690msgstr "PDA battery"
691
692#: ../src/xfpm-battery.c:847
693msgid "Phone battery"
694msgstr "Phone battery"
695
696#: ../src/xfpm-main.c:53 ../src/xfpm-power-info.c:93
697#, c-format
698msgid ""
699"\n"
700"Xfce Power Manager %s\n"
701"\n"
702"Part of the Xfce Goodies Project\n"
703"http://goodies.xfce.org\n"
704"\n"
705"Licensed under the GNU GPL.\n"
706"\n"
707msgstr ""
708"\n"
709"Xfce Power Manager %s\n"
710"\n"
711"Part of the Xfce Goodies Project\n"
712"http://goodies.xfce.org\n"
713"\n"
714"Licensed under the GNU GPL.\n"
715"\n"
716
717#: ../src/xfpm-main.c:76 ../src/xfpm-power-info.c:376
718msgid "True"
719msgstr "True"
720
721#: ../src/xfpm-main.c:76 ../src/xfpm-power-info.c:376
722msgid "False"
723msgstr "False"
724
725#: ../src/xfpm-main.c:113
726#, c-format
727msgid "With policykit support\n"
728msgstr "With policykit support\n"
729
730#: ../src/xfpm-main.c:115
731#, c-format
732msgid "Without policykit support\n"
733msgstr "Without policykit support\n"
734
735#: ../src/xfpm-main.c:118
736#, c-format
737msgid "With network manager support\n"
738msgstr "With network manager support\n"
739
740#: ../src/xfpm-main.c:120
741#, c-format
742msgid "Without network manager support\n"
743msgstr "Without network manager support\n"
744
745#: ../src/xfpm-main.c:123
746#, c-format
747msgid "With DPMS support\n"
748msgstr "With DPMS support\n"
749
750#: ../src/xfpm-main.c:125
751#, c-format
752msgid "Without DPMS support\n"
753msgstr "Without DPMS support\n"
754
755#: ../src/xfpm-main.c:141
756msgid "Can suspend"
757msgstr "Can suspend"
758
759#: ../src/xfpm-main.c:143
760msgid "Can hibernate"
761msgstr "Can hibernate"
762
763#: ../src/xfpm-main.c:145
764msgid "Can spin down hard disks"
765msgstr "Can spin down hard disks"
766
767#: ../src/xfpm-main.c:147
768msgid "Authorized to suspend"
769msgstr "Authorised to suspend"
770
771#: ../src/xfpm-main.c:149
772msgid "Authorized to hibernate"
773msgstr "Authorised to hibernate"
774
775#: ../src/xfpm-main.c:151
776msgid "Authorized to shutdown"
777msgstr "Authorised to shutdown"
778
779#: ../src/xfpm-main.c:153
780msgid "Authorized to spin down hard disks"
781msgstr "Authorised to spin down hard disks"
782
783#: ../src/xfpm-main.c:155
784msgid "Has battery"
785msgstr "Has battery"
786
787#: ../src/xfpm-main.c:157
788msgid "Has brightness panel"
789msgstr "Has brightness panel"
790
791#: ../src/xfpm-main.c:159
792msgid "Has power button"
793msgstr "Has power button"
794
795#: ../src/xfpm-main.c:161
796msgid "Has hibernate button"
797msgstr "Has hibernate button"
798
799#: ../src/xfpm-main.c:163
800msgid "Has sleep button"
801msgstr "Has sleep button"
802
803#: ../src/xfpm-main.c:165
804msgid "Has LID"
805msgstr "Has LID"
806
807#: ../src/xfpm-main.c:264
808msgid "Do not daemonize"
809msgstr "Do not daemonise"
810
811#: ../src/xfpm-main.c:265
812msgid "Enable debugging"
813msgstr "Enable debugging"
814
815#: ../src/xfpm-main.c:266
816msgid "Dump all information"
817msgstr "Dump all information"
818
819#: ../src/xfpm-main.c:267
820msgid "Restart the running instance of Xfce power manager"
821msgstr "Restart the running instance of Xfce power manager"
822
823#: ../src/xfpm-main.c:268
824msgid "Show the configuration dialog"
825msgstr "Show the configuration dialogue"
826
827#: ../src/xfpm-main.c:269
828msgid "Quit any running xfce power manager"
829msgstr "Quit any running xfce power manager"
830
831#: ../src/xfpm-main.c:270 ../src/xfpm-power-info.c:933
832msgid "Version information"
833msgstr "Version information"
834
835#: ../src/xfpm-main.c:320
836msgid "Unable to get connection to the message bus session"
837msgstr "Unable to get connection to the message bus session"
838
839#: ../src/xfpm-main.c:414
840msgid "Another power manager is already running"
841msgstr "Another power manager is already running"
842
843#: ../src/xfpm-main.c:420
844#, c-format
845msgid "Xfce power manager is already running"
846msgstr "Xfce power manager is already running"
847
848#: ../src/xfpm-inhibit.c:331
849#, c-format
850msgid "Invalid arguments"
851msgstr "Invalid arguments"
852
853#: ../src/xfpm-inhibit.c:357
854#, c-format
855msgid "Invalid cookie"
856msgstr "Invalid cookie"
857
858#. TRANSLATORS: the command line was not provided
859#: ../src/xfpm-power-info.c:118
860msgid "No data"
861msgstr "No data"
862
863#. TRANSLATORS: kernel module, usually a device driver
864#: ../src/xfpm-power-info.c:125 ../src/xfpm-power-info.c:130
865msgid "Kernel module"
866msgstr "Kernel module"
867
868#. TRANSLATORS: kernel housekeeping
869#: ../src/xfpm-power-info.c:135
870msgid "Kernel core"
871msgstr "Kernel core"
872
873#. TRANSLATORS: interrupt between processors
874#: ../src/xfpm-power-info.c:140
875msgid "Interprocessor interrupt"
876msgstr "Interprocessor interrupt"
877
878#. TRANSLATORS: unknown interrupt
879#: ../src/xfpm-power-info.c:145
880msgid "Interrupt"
881msgstr "Interrupt"
882
883#. TRANSLATORS: the keyboard and mouse device event
884#: ../src/xfpm-power-info.c:189
885msgid "PS/2 keyboard/mouse/touchpad"
886msgstr "PS/2 keyboard/mouse/touchpad"
887
888#. TRANSLATORS: ACPI, the Intel power standard on laptops and desktops
889#: ../src/xfpm-power-info.c:192
890msgid "ACPI"
891msgstr "ACPI"
892
893#. TRANSLATORS: serial ATA is a new style of hard disk interface
894#: ../src/xfpm-power-info.c:195
895msgid "Serial ATA"
896msgstr "Serial ATA"
897
898#. TRANSLATORS: this is the old-style ATA interface
899#: ../src/xfpm-power-info.c:198
900msgid "ATA host controller"
901msgstr "ATA host controller"
902
903#. TRANSLATORS: 802.11 wireless adaptor
904#: ../src/xfpm-power-info.c:201
905msgid "Intel wireless adaptor"
906msgstr "Intel wireless adapter"
907
908#. TRANSLATORS: a timer is something that fires periodically
909#: ../src/xfpm-power-info.c:206 ../src/xfpm-power-info.c:209
910#: ../src/xfpm-power-info.c:212 ../src/xfpm-power-info.c:215
911#: ../src/xfpm-power-info.c:218
912#, c-format
913msgid "Timer %s"
914msgstr "Timer %s"
915
916#. TRANSLATORS: this is a task that's woken up from sleeping
917#: ../src/xfpm-power-info.c:221
918#, c-format
919msgid "Sleep %s"
920msgstr "Sleep %s"
921
922#. TRANSLATORS: this is a new realtime task
923#: ../src/xfpm-power-info.c:224
924#, c-format
925msgid "New task %s"
926msgstr "New task %s"
927
928#. TRANSLATORS: this is a task thats woken to check state
929#: ../src/xfpm-power-info.c:227
930#, c-format
931msgid "Wait %s"
932msgstr "Wait %s"
933
934#. TRANSLATORS: a work queue is a list of work that has to be done
935#: ../src/xfpm-power-info.c:230 ../src/xfpm-power-info.c:233
936#, c-format
937msgid "Work queue %s"
938msgstr "Work queue %s"
939
940#. TRANSLATORS: this is when the networking subsystem clears out old entries
941#: ../src/xfpm-power-info.c:236
942#, c-format
943msgid "Network route flush %s"
944msgstr "Network route flush %s"
945
946#. TRANSLATORS: activity on the USB bus
947#: ../src/xfpm-power-info.c:239
948#, c-format
949msgid "USB activity %s"
950msgstr "USB activity %s"
951
952#. TRANSLATORS: we've timed out of an aligned timer
953#: ../src/xfpm-power-info.c:242
954#, c-format
955msgid "Wakeup %s"
956msgstr "Wakeup %s"
957
958#. TRANSLATORS: interupts on the system required for basic operation
959#: ../src/xfpm-power-info.c:245
960msgid "Local interrupts"
961msgstr "Local interrupts"
962
963#. TRANSLATORS: interrupts when a task gets moved from one core to another
964#: ../src/xfpm-power-info.c:248
965msgid "Rescheduling interrupts"
966msgstr "Rescheduling interrupts"
967
968#: ../src/xfpm-power-info.c:331
969msgid "Attribute"
970msgstr "Attribute"
971
972#: ../src/xfpm-power-info.c:338
973msgid "Value"
974msgstr "Value"
975
976#: ../src/xfpm-power-info.c:348
977msgid "Device"
978msgstr "Device"
979
980#: ../src/xfpm-power-info.c:363 ../src/xfpm-power-info.c:739
981msgid "Type"
982msgstr "Type"
983
984#: ../src/xfpm-power-info.c:375
985msgid "PowerSupply"
986msgstr "PowerSupply"
987
988#: ../src/xfpm-power-info.c:393
989msgid "Model"
990msgstr "Model"
991
992#: ../src/xfpm-power-info.c:407
993msgid "Technology"
994msgstr "Technology"
995
996#. TRANSLATORS: Unit here is What hour
997#: ../src/xfpm-power-info.c:414 ../src/xfpm-power-info.c:428
998#: ../src/xfpm-power-info.c:442
999msgid "Wh"
1000msgstr "Wh"
1001
1002#: ../src/xfpm-power-info.c:420
1003msgid "Energy full design"
1004msgstr "Energy full design"
1005
1006#: ../src/xfpm-power-info.c:434
1007msgid "Energy full"
1008msgstr "Energy full"
1009
1010#: ../src/xfpm-power-info.c:448
1011msgid "Energy empty"
1012msgstr "Energy empty"
1013
1014#. TRANSLATORS: Unit here is volt
1015#: ../src/xfpm-power-info.c:456
1016msgid "V"
1017msgstr "V"
1018
1019#: ../src/xfpm-power-info.c:461
1020msgid "Voltage"
1021msgstr "Voltage"
1022
1023#: ../src/xfpm-power-info.c:478
1024msgid "Vendor"
1025msgstr "Vendor"
1026
1027#: ../src/xfpm-power-info.c:495
1028msgid "Serial"
1029msgstr "Serial"
1030
1031#: ../src/xfpm-power-info.c:731
1032msgid "Processor"
1033msgstr "Processor"
1034
1035#. TANSLATORS: PID, is the process id, e.g what ps x gives
1036#: ../src/xfpm-power-info.c:748
1037msgid "PID"
1038msgstr "PID"
1039
1040#: ../src/xfpm-power-info.c:754
1041msgid "Wakeups"
1042msgstr "Wakeups"
1043
1044#: ../src/xfpm-power-info.c:760
1045msgid "Command"
1046msgstr "Command"
1047
1048#: ../src/xfpm-power-info.c:766
1049msgid "Details"
1050msgstr "Details"
1051
1052#: ../src/xfce4-power-manager.desktop.in.h:2
1053msgid "Power management for the Xfce desktop"
1054msgstr "Power management for the Xfce desktop"
1055
1056#: ../panel-plugins/brightness/brightness-button.c:180
1057#: ../panel-plugins/brightness/xfce4-brightness-plugin.desktop.in.in.h:2
1058msgid "Control your LCD brightness"
1059msgstr "Control your LCD brightness"
1060
1061#: ../panel-plugins/brightness/brightness-button.c:182
1062msgid "No device found"
1063msgstr "No device found"
1064
1065#: ../panel-plugins/brightness/brightness-button.c:649
1066#: ../panel-plugins/brightness/xfce4-brightness-plugin.desktop.in.in.h:1
1067msgid "Brightness plugin"
1068msgstr "Brightness plugin"
1069
1070#~ msgid "Xfce 4 Power Manager"
1071#~ msgstr "Xfce 4 Power Manager"
1072
1073#~ msgid "Xfce power manager"
1074#~ msgstr "Xfce power manager"
1075
1076#~ msgid "Battery charge level is low"
1077#~ msgstr "Battery charge level is low"
1078
1079#~ msgid "With HAL support\n"
1080#~ msgstr "With HAL support\n"
1081
1082#~ msgid "Without HAL support\n"
1083#~ msgstr "Without HAL support\n"
10840
=== removed file '.pc/02_translations-fix-invalid-format-strings.patch/po/te.po'
--- .pc/02_translations-fix-invalid-format-strings.patch/po/te.po 2012-05-18 21:50:54 +0000
+++ .pc/02_translations-fix-invalid-format-strings.patch/po/te.po 1970-01-01 00:00:00 +0000
@@ -1,1061 +0,0 @@
1# Xfce Telugu Translation.
2# Copyright (C) 2003-2011 Xfce Development Team 2011.
3# This file is distributed under the same license as the PACKAGE package.
4# Praveen Illa <mail2ipn@gmail.com>, 2011.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: xfce4-power-manager.master\n"
9"Report-Msgid-Bugs-To: \n"
10"POT-Creation-Date: 2011-11-19 10:06+0000\n"
11"PO-Revision-Date: 2011-05-19 15:12+0530\n"
12"Last-Translator: Praveen Illa <mail2ipn@gmail.com>\n"
13"Language-Team: Telugu <indlinux-telugu@lists.sourceforge.net>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Language: te\n"
18"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20#: ../data/interfaces/xfpm-settings.ui.h:1
21msgid "<b>Actions</b>"
22msgstr "<b>చర్యలు</b>"
23
24#: ../data/interfaces/xfpm-settings.ui.h:2
25msgid "<b>Advanced Options</b>"
26msgstr "<b>ఉన్నత ఐచ్ఛికాలు</b>"
27
28#: ../data/interfaces/xfpm-settings.ui.h:3
29msgid "<b>Brightness</b>"
30msgstr "<b>ప్రకాశవంతం</b>"
31
32#: ../data/interfaces/xfpm-settings.ui.h:4
33msgid "<b>General Options</b>"
34msgstr "<b>సాధారణ ఐచ్ఛికాలు</b>"
35
36#: ../data/interfaces/xfpm-settings.ui.h:5
37msgid "<b>Monitor</b>"
38msgstr "<b>మానిటర్</b>"
39
40#: ../data/interfaces/xfpm-settings.ui.h:6
41msgid "Actions"
42msgstr "చర్యలు"
43
44#: ../data/interfaces/xfpm-settings.ui.h:7
45msgid "Consider the computer on low power at:"
46msgstr "విద్యుచ్ఛక్తి తక్కువగా వున్నపుడు కంప్యూటర్‌ని:"
47
48#. Hibernate menu option
49#: ../data/interfaces/xfpm-settings.ui.h:8 ../settings/xfpm-settings.c:817
50#: ../settings/xfpm-settings.c:885 ../settings/xfpm-settings.c:1034
51#: ../settings/xfpm-settings.c:1211 ../settings/xfpm-settings.c:1268
52#: ../settings/xfpm-settings.c:1320 ../src/xfpm-power.c:484
53#: ../src/xfpm-power.c:779
54msgid "Hibernate"
55msgstr "సుప్తావస్థ"
56
57#: ../data/interfaces/xfpm-settings.ui.h:9
58msgid "Level:"
59msgstr "స్థాయి:"
60
61#: ../data/interfaces/xfpm-settings.ui.h:10
62msgid "Lock screen when going for suspend/hibernate"
63msgstr "తాత్కాలిక నిలుపుదల/సుప్తావస్థలోనికి వెళ్ళేటపుడు తెరకు తాళంవేయి"
64
65#: ../data/interfaces/xfpm-settings.ui.h:11 ../src/xfpm-power-common.c:132
66msgid "Monitor"
67msgstr "మానిటర్"
68
69#: ../data/interfaces/xfpm-settings.ui.h:12
70msgid "Monitor power management control"
71msgstr "మానిటర్ విద్చుచ్ఛక్తి నిర్వాహణా నియంత్రణ"
72
73#: ../data/interfaces/xfpm-settings.ui.h:13 ../settings/xfpm-settings.c:806
74#: ../settings/xfpm-settings.c:874 ../settings/xfpm-settings.c:1023
75#: ../settings/xfpm-settings.c:1200 ../settings/xfpm-settings.c:1257
76#: ../settings/xfpm-settings.c:1309
77msgid "Nothing"
78msgstr "ఏమీచేయవద్దు"
79
80#: ../data/interfaces/xfpm-settings.ui.h:14
81msgid "Power manager settings"
82msgstr "విద్యుత్ నిర్వాహకము అమరికలు"
83
84#: ../data/interfaces/xfpm-settings.ui.h:15
85msgid "Prefer power savings over performance"
86msgstr "పనితీరు పై విద్యుచ్ఛక్తిని ఆదాచేయుటకు ప్రాధాన్యత చూపు"
87
88#: ../data/interfaces/xfpm-settings.ui.h:16
89msgid "Put display to sleep when computer is inactive for:"
90msgstr "కంప్యూటర్ ఇంతసేపు అక్రియాశీలముగా ఉంటే తెరను నిద్రావస్థలో ఉంచు:"
91
92#: ../data/interfaces/xfpm-settings.ui.h:17
93msgid "Put the computer to sleep when inactive for:"
94msgstr "కంప్యూటర్ ఇంతసేపు అక్రియాశీలముగా ఉంటే నిద్రావస్థలో ఉంచు:"
95
96#: ../data/interfaces/xfpm-settings.ui.h:18
97msgid "Reduce screen brightness when computer is inactive for:"
98msgstr "కంప్యూటర్ ఇంత సమయం అక్రియాశీలముగా వుంటే తెర ప్రకాశమును తగ్గించు:"
99
100#: ../data/interfaces/xfpm-settings.ui.h:19
101msgid "Set computer inactivity sleep mode:"
102msgstr "కంప్యూటర్ అక్రియాశీల నిద్రావస్థ రీతిని అమర్చు:"
103
104#: ../data/interfaces/xfpm-settings.ui.h:20
105msgid "Set monitor sleep mode:"
106msgstr "మానిటర్ సుప్తావస్థ రీతిని అమర్చు:"
107
108#: ../data/interfaces/xfpm-settings.ui.h:21
109msgid "Show notifications to notify about the battery state"
110msgstr "బ్యాటరీ స్థితి గురించి తెలియచేయుటకు గమనికలను చూపించు"
111
112#: ../data/interfaces/xfpm-settings.ui.h:22
113msgid "Spin down hard disks"
114msgstr "హార్డ్‍డిస్కులు తిరుగు వేగాన్ని తగ్గించు"
115
116#: ../data/interfaces/xfpm-settings.ui.h:23
117msgid "Standby"
118msgstr "అర్థాంతరముగా నిలిపివేయి"
119
120#. Suspend menu option
121#: ../data/interfaces/xfpm-settings.ui.h:24 ../settings/xfpm-settings.c:811
122#: ../settings/xfpm-settings.c:879 ../settings/xfpm-settings.c:1028
123#: ../settings/xfpm-settings.c:1205 ../settings/xfpm-settings.c:1262
124#: ../settings/xfpm-settings.c:1314 ../src/xfpm-power.c:499
125#: ../src/xfpm-power.c:792
126msgid "Suspend"
127msgstr "తాత్కాలికంగా నిలిపివేయి"
128
129#: ../data/interfaces/xfpm-settings.ui.h:25
130msgid "Switch off display when computer is inactive for:"
131msgstr "కంప్యూటర్ ఇంతసేపు అక్రియాశీలముగా ఉంటే తెరను ఆపివేయి:"
132
133#: ../data/interfaces/xfpm-settings.ui.h:26
134msgid "System tray icon: "
135msgstr "వ్యవస్థ పల్లెము ప్రతీక:"
136
137#: ../data/interfaces/xfpm-settings.ui.h:27
138msgid "When battery power is critical:"
139msgstr "బ్యాటరీ విద్యుచ్ఛక్తి సంక్లిష్టముగా ఉన్నట్టయితే ఇలా చేయి:"
140
141#: ../data/interfaces/xfpm-settings.ui.h:28
142msgid "When hibernate button is pressed:"
143msgstr "సుప్తావస్థ బటన్ నొక్కినపుడు ఈవిధముగా చేయి:"
144
145#: ../data/interfaces/xfpm-settings.ui.h:29
146msgid "When laptop lid is closed:"
147msgstr "లాప్‌టాప్ లిడ్ మూసివేసినపుడు ఇలా చేయి:"
148
149#: ../data/interfaces/xfpm-settings.ui.h:30
150msgid "When power button is pressed:"
151msgstr "విద్యుచ్ఛక్తి బటన్ నొక్కినపుడు ఇలా చేయి:"
152
153#: ../data/interfaces/xfpm-settings.ui.h:31
154msgid "When sleep button is pressed:"
155msgstr "నిద్రావస్థ బటన్ నొక్కినపుడు ఇలా చేయి:"
156
157#: ../data/interfaces/xfpm-settings.ui.h:32
158#: ../settings/xfpm-settings-main.c:121 ../src/xfpm-main.c:413
159msgid "Xfce Power Manager"
160msgstr "Xfce విద్యుత్ నిర్వాహకము"
161
162#: ../settings/xfpm-settings.c:567 ../settings/xfpm-settings.c:582
163#: ../settings/xfpm-settings.c:609
164msgid "Never"
165msgstr "ఎప్పటికీవద్దు"
166
167#: ../settings/xfpm-settings.c:570
168msgid "One minute"
169msgstr "ఒక నిముషం"
170
171#: ../settings/xfpm-settings.c:572 ../settings/xfpm-settings.c:584
172msgid "Minutes"
173msgstr "నిముషములు"
174
175#: ../settings/xfpm-settings.c:586 ../settings/xfpm-settings.c:593
176#: ../settings/xfpm-settings.c:594 ../settings/xfpm-settings.c:595
177msgid "One hour"
178msgstr "ఒక గంట"
179
180#: ../settings/xfpm-settings.c:594 ../settings/xfpm-settings.c:598
181msgid "one minute"
182msgstr "ఒక నిముషం"
183
184#: ../settings/xfpm-settings.c:595 ../settings/xfpm-settings.c:599
185msgid "minutes"
186msgstr "నిముషాలు"
187
188#: ../settings/xfpm-settings.c:597 ../settings/xfpm-settings.c:598
189#: ../settings/xfpm-settings.c:599
190msgid "hours"
191msgstr "గంటలు"
192
193#: ../settings/xfpm-settings.c:611
194msgid "Seconds"
195msgstr "సెకన్లు"
196
197#: ../settings/xfpm-settings.c:789 ../settings/xfpm-settings.c:987
198#: ../settings/xfpm-settings.c:1467
199msgid "Hibernate and suspend operations not supported"
200msgstr "సుప్తావస్థ మరియు తాత్కాలిక నిలుపుదల వంటి ఆపరేషన్‌లకు సహకారించుటలేదు"
201
202#: ../settings/xfpm-settings.c:794 ../settings/xfpm-settings.c:992
203#: ../settings/xfpm-settings.c:1472
204msgid "Hibernate and suspend operations not permitted"
205msgstr "సుప్తావస్థ మరియు తాత్కాలిక నిలుపుదల వంటి ఆపరేషన్‌లకు అనుమతిలేదు"
206
207#: ../settings/xfpm-settings.c:823 ../settings/xfpm-settings.c:1217
208#: ../src/xfpm-power.c:805
209msgid "Shutdown"
210msgstr "మూసివేయి"
211
212#: ../settings/xfpm-settings.c:827 ../settings/xfpm-settings.c:1221
213#: ../settings/xfpm-settings.c:1272 ../settings/xfpm-settings.c:1324
214msgid "Ask"
215msgstr "అడుగు"
216
217#: ../settings/xfpm-settings.c:889 ../settings/xfpm-settings.c:1038
218msgid "Lock screen"
219msgstr "తెరకు తాళం వేయి"
220
221#: ../settings/xfpm-settings.c:957 ../settings/xfpm-settings.c:1107
222msgid "Spinning down hard disks permission denied"
223msgstr "హార్డ్‍డిస్కుల తిరుగు వేగాన్ని తగ్గించుటకు అనుమతి తిరస్కరించబడింది"
224
225#: ../settings/xfpm-settings.c:1147
226msgid "Always show icon"
227msgstr "ప్రతీకను ఎల్లప్పుడూ చూపించు"
228
229#: ../settings/xfpm-settings.c:1150
230msgid "When battery is present"
231msgstr "బ్యాటరీ ఉన్నపుడు ఇలా చేయి"
232
233#: ../settings/xfpm-settings.c:1153
234msgid "When battery is charging or discharging"
235msgstr "బ్యాటరీ చార్జింగు లేదా డిస్చార్జింగు అవుతున్నపుడు"
236
237#: ../settings/xfpm-settings.c:1156
238msgid "Never show icon"
239msgstr "ప్రతీకను ఎప్పుడూ చూపించవద్దు"
240
241#: ../settings/xfpm-settings.c:1182
242msgid ""
243"Disable Display Power Management Signaling (DPMS), e.g don't attempt to "
244"switch off the display or put it in sleep mode."
245msgstr ""
246"Display Power Management Signaling (DPMS) ను అచేతనపరుచు, ఉదా మానిటర్‌ను స్విచ్ ఆపవద్దు "
247"లేదా నిద్రావస్థ రీతిలో ఉంచుటకు ప్రయత్నించవద్దు."
248
249#: ../settings/xfpm-settings.c:1376
250msgid "Suspend operation not supported"
251msgstr "తాత్కాలిక నిలుపుదల చర్య సహకరించుట లేదు"
252
253#: ../settings/xfpm-settings.c:1382
254msgid "Suspend operation not permitted"
255msgstr "తాత్కాలిక నిలుపుదల చర్యను అనుమతించుట లేదు"
256
257#: ../settings/xfpm-settings.c:1388
258msgid "Hibernate operation not supported"
259msgstr "సుప్తావస్థ చర్యకు సహకరించుట లేదు"
260
261#: ../settings/xfpm-settings.c:1393
262msgid "Hibernate operation not permitted"
263msgstr "సుప్తావస్థ చర్యకు అనుమతి లేదు"
264
265#: ../settings/xfpm-settings.c:1440
266msgid "When all the power sources of the computer reach this charge level"
267msgstr "ఎప్పుడైతే కంప్యూటర్ యొక్క అన్ని విద్యుత్ మూలాలు ఈ చార్జ్ స్థాయి చేరుకున్నపుడు"
268
269#: ../settings/xfpm-settings.c:1543 ../settings/xfpm-settings.c:1548
270msgid "General"
271msgstr "సాధారణ"
272
273#: ../settings/xfpm-settings.c:1557 ../settings/xfpm-settings.c:1562
274msgid "On AC"
275msgstr "AC మీద"
276
277#: ../settings/xfpm-settings.c:1572 ../settings/xfpm-settings.c:1577
278msgid "On Battery"
279msgstr "బ్యాటరీ మీద"
280
281#: ../settings/xfpm-settings.c:1586 ../settings/xfpm-settings.c:1591
282msgid "Extended"
283msgstr "పొడిగించిన"
284
285#: ../settings/xfpm-settings.c:1659
286msgid "Check your power manager installation"
287msgstr "మీ విద్యుత్ నిర్వాహకము స్థాపనను సరిచూసుకోండి"
288
289#: ../settings/xfpm-settings-main.c:78
290msgid "Settings manager socket"
291msgstr "అమరికల నిర్వాహకము సాకెట్"
292
293#: ../settings/xfpm-settings-main.c:78
294msgid "SOCKET ID"
295msgstr "సాకెట్ ఐడి"
296
297#: ../settings/xfpm-settings-main.c:89 ../src/xfpm-main.c:289
298#: ../src/xfpm-power-info.c:948
299#, c-format
300msgid "Type '%s --help' for usage."
301msgstr "వాడుటకు '%s --help' టైపు చేయండి."
302
303#: ../settings/xfpm-settings-main.c:123
304msgid "Failed to load power manager configuration, using defaults"
305msgstr "అప్రమేయాలను వాడి విద్యుచ్ఛక్తి స్వరూపణను లోడుచేయుటలో విఫలమైంది"
306
307#: ../settings/xfpm-settings-main.c:148
308msgid "Unable to connect to Xfce Power Manager"
309msgstr "Xfce విద్యుత్ నిర్వాహకముకు అనుసంధానమవ్వలేకపోతుంది"
310
311#: ../settings/xfpm-settings-main.c:190 ../src/xfpm-main.c:329
312#, c-format
313msgid "Xfce power manager is not running"
314msgstr "Xfce విద్యుత్ నిర్వాహకము నడుచుటలేదు"
315
316#: ../settings/xfpm-settings-main.c:195
317msgid "Run"
318msgstr "నడుపు"
319
320#: ../settings/xfpm-settings-main.c:196
321msgid "Xfce4 Power Manager is not running, do you want to launch it now?"
322msgstr "Xfce విద్యుత్ నిర్వాహకము నడుచుటలేదు, మీరు ఇపుడు దానిని ప్రారంభించాలనుకుంటున్నారా?"
323
324#: ../settings/xfce4-power-manager-settings.desktop.in.h:1
325#: ../src/xfpm-power.c:307 ../src/xfpm-power.c:595 ../src/xfpm-power.c:730
326#: ../src/xfpm-power.c:766 ../src/xfpm-power.c:935 ../src/xfpm-power.c:959
327#: ../src/xfpm-battery.c:349 ../src/xfce4-power-manager.desktop.in.h:1
328msgid "Power Manager"
329msgstr "విద్యుత్ నిర్వాహకం"
330
331#: ../settings/xfce4-power-manager-settings.desktop.in.h:2
332msgid "Settings for the Xfce Power Manager"
333msgstr "Xfce విద్యుత్ నిర్వాహకము కొరకు అమరికలు"
334
335#: ../common/xfpm-common.c:155
336msgid "translator-credits"
337msgstr "Praveen Illa <mail2ipn@gmail.com>, 2011."
338
339#: ../src/xfpm-power.c:330
340msgid ""
341"An application is currently disabling the automatic sleep, doing this action "
342"now may damage the working state of this application, are you sure you want "
343"to hibernate the system?"
344msgstr ""
345"స్వయంచాలక నిద్రావస్థను ఒక అనువర్తనము నిరోధిస్తున్నది, ఈ చర్యను చేయడం వలన పనిచేస్తున్న అనువర్తనము "
346"యొక్క పనితీరుకు నష్టం కలిగించవచ్చు, మీరు ఖచ్చితంగా వ్యవస్థను సుప్తావస్థలో ఉంచాలనుకుంటున్నారా?"
347
348#: ../src/xfpm-power.c:428
349msgid "Quit"
350msgstr "నిష్క్రమించు"
351
352#: ../src/xfpm-power.c:429
353msgid "All running instances of the power manager will exit"
354msgstr "విద్యుత్ నిర్వాహకము యొక్క నడుస్తున్న అన్ని ప్రక్రియలు నిష్క్రమించబడును"
355
356#: ../src/xfpm-power.c:431
357msgid "Quit the power manager?"
358msgstr "విద్యుత్ నిర్వాహకము నుండి నిష్క్రమించాలా?"
359
360#. Power information
361#: ../src/xfpm-power.c:534 ../src/xfpm-power-info.c:818
362msgid "Power Information"
363msgstr "విద్యుత్ సమాచారం"
364
365#. *
366#. * Power Mode
367#. *
368#. TRANSLATOR: Mode here is the power profile (presentation, power save,
369#. normal)
370#: ../src/xfpm-power.c:550
371msgid "Mode"
372msgstr "విధము"
373
374#. Normal
375#: ../src/xfpm-power.c:561
376msgid "Normal"
377msgstr "సాధారణ"
378
379#. Normal
380#: ../src/xfpm-power.c:571
381msgid "Presentation"
382msgstr "ప్రదర్శన"
383
384#: ../src/xfpm-power.c:693
385msgid "Hibernate the system"
386msgstr "వ్యవస్థను సుప్తావస్థలోనికి మార్చు"
387
388#: ../src/xfpm-power.c:704
389msgid "Suspend the system"
390msgstr "వ్యవస్థను తాత్కాలికంగా నిలిపివేయి"
391
392#: ../src/xfpm-power.c:714
393msgid "Shutdown the system"
394msgstr "వ్యవస్థను మూసివేయి"
395
396#: ../src/xfpm-power.c:725 ../src/xfpm-power.c:763
397msgid "System is running on low power. Save your work to avoid losing data"
398msgstr ""
399"వ్యవస్థ తక్కువ విద్యుచ్ఛక్తి వద్ద నడుస్తున్నది. డేటాను కోల్పోకుండా ఉండటానికి మీ పనిని భద్రపరుచుకోండి"
400
401#: ../src/xfpm-power.c:936
402msgid "System is running on low power"
403msgstr "వ్యవస్థ తక్కువ విద్యుచ్ఛక్తి వద్ద నడుస్తున్నది"
404
405#: ../src/xfpm-power.c:955
406#, c-format
407msgid ""
408"Your %s charge level is low\n"
409"Estimated time left %s"
410msgstr ""
411"మీ %s చార్జ్ స్థాయి తక్కువగా ఉంది\n"
412"మిగిలివున్న సమయం %s"
413
414#: ../src/xfpm-power.c:1158 ../src/xfpm-power.c:1163
415msgid "Adaptor is offline"
416msgstr "అడాప్టర్ ఆఫ్‌లైనులో ఉంది"
417
418#: ../src/xfpm-power.c:1159 ../src/xfpm-power.c:1164 ../src/xfpm-battery.c:408
419#, c-format
420msgid "Adaptor is online"
421msgstr "అడాప్టర్ ఆఫ్‌లైనులో ఉంది"
422
423#: ../src/xfpm-power.c:1617 ../src/xfpm-power.c:1638 ../src/xfpm-power.c:1653
424#: ../src/xfpm-power.c:1676
425#, c-format
426msgid "Permission denied"
427msgstr "అనుమతి నిరాకరించబడింది"
428
429#: ../src/xfpm-power.c:1661 ../src/xfpm-power.c:1684
430#, c-format
431msgid "Suspend not supported"
432msgstr "తాత్కాలిక నిలుపుదలకు సహకరించుటలేదు"
433
434#: ../src/xfpm-power-common.c:122 ../src/xfpm-power-common.c:141
435msgid "Battery"
436msgstr "బ్యాటరీ"
437
438#: ../src/xfpm-power-common.c:124 ../src/xfpm-battery.c:824
439msgid "UPS"
440msgstr "UPS"
441
442#: ../src/xfpm-power-common.c:126
443msgid "Line power"
444msgstr "లైన్ విద్యుత్"
445
446#: ../src/xfpm-power-common.c:128
447msgid "Mouse"
448msgstr "మౌస్"
449
450#: ../src/xfpm-power-common.c:130
451msgid "Keyboard"
452msgstr "కీబోర్డు"
453
454#: ../src/xfpm-power-common.c:134
455msgid "PDA"
456msgstr "PDA"
457
458#: ../src/xfpm-power-common.c:136
459msgid "Phone"
460msgstr "ఫోను"
461
462#: ../src/xfpm-power-common.c:138 ../src/xfpm-power-common.c:153
463#: ../src/xfpm-power-common.c:168 ../src/xfpm-battery.c:842
464msgid "Unknown"
465msgstr "తెలియదు"
466
467#: ../src/xfpm-power-common.c:155
468msgid "Lithium ion"
469msgstr "లిథియమ్ అయాన్"
470
471#: ../src/xfpm-power-common.c:157
472msgid "Lithium polymer"
473msgstr "లిథియమ్ పోలిమర్"
474
475#: ../src/xfpm-power-common.c:159
476msgid "Lithium iron phosphate"
477msgstr "లిథియమ్ ఐరన్ ఫాస్పేట్"
478
479#: ../src/xfpm-power-common.c:161
480msgid "Lead acid"
481msgstr "లెడ్ యాసిడ్"
482
483#: ../src/xfpm-power-common.c:163
484msgid "Nickel cadmium"
485msgstr "నికెల్ కాడ్మియమ్"
486
487#: ../src/xfpm-power-common.c:165
488msgid "Nickel metal hybride"
489msgstr "నికెల్ మెటల్ హైబ్రిడ్"
490
491#: ../src/xfpm-battery.c:169
492msgid "Unknown time"
493msgstr "సమయం తెలియదు"
494
495#: ../src/xfpm-battery.c:175
496#, c-format
497msgid "%i minute"
498msgid_plural "%i minutes"
499msgstr[0] "%i నిముషం"
500msgstr[1] "%i నిముషాలు"
501
502#: ../src/xfpm-battery.c:186
503#, c-format
504msgid "%i hour"
505msgid_plural "%i hours"
506msgstr[0] "%i గంట"
507msgstr[1] "%i గంటలు"
508
509#. TRANSLATOR: "%i %s %i %s" are "%i hours %i minutes"
510#. * Swap order with "%2$s %2$i %1$s %1$i if needed
511#: ../src/xfpm-battery.c:192
512#, c-format
513msgid "%i %s %i %s"
514msgstr "%i %s %i %s"
515
516#: ../src/xfpm-battery.c:193
517msgid "hour"
518msgid_plural "hours"
519msgstr[0] "గంట"
520msgstr[1] "గంటలు"
521
522#: ../src/xfpm-battery.c:194
523msgid "minute"
524msgid_plural "minutes"
525msgstr[0] "నిముషం"
526msgstr[1] "నిముషాలు"
527
528#: ../src/xfpm-battery.c:209 ../src/xfpm-battery.c:260
529#, c-format
530msgid "Your %s is fully charged"
531msgstr "మీ %s పూర్తిగా చార్జయింది"
532
533#: ../src/xfpm-battery.c:212 ../src/xfpm-battery.c:263
534#, c-format
535msgid "Your %s is charging"
536msgstr "మీ %s చార్జింగ్ అవుతున్నది"
537
538#: ../src/xfpm-battery.c:222
539#, c-format
540msgid ""
541"%s (%i%%)\n"
542"%s until is fully charged."
543msgstr ""
544"%s\n"
545"మీ %s చార్జింగు అవుతున్నది (%i%%)\n"
546"%s లలో పూర్తిగా చార్జ్ అవుతుంది."
547
548#: ../src/xfpm-battery.c:230 ../src/xfpm-battery.c:266
549#, c-format
550msgid "Your %s is discharging"
551msgstr "మీ %s డిస్చార్జ్ అవుతున్నది"
552
553#: ../src/xfpm-battery.c:232
554#, c-format
555msgid "System is running on %s power"
556msgstr "వ్యవస్థ %s విద్యుత్ పై నడుస్తున్నది"
557
558#: ../src/xfpm-battery.c:242
559#, c-format
560msgid ""
561"%s (%i%%)\n"
562"Estimated time left is %s."
563msgstr ""
564"%s\n"
565"మీ %s డిస్చార్జ్ అవుతున్నది (%i%%)\n"
566"ఇంకా మిగిలివున్న సమయం %s."
567
568#: ../src/xfpm-battery.c:248 ../src/xfpm-battery.c:269
569#, c-format
570msgid "Your %s is empty"
571msgstr "మీ %s అయిపోయింది"
572
573#: ../src/xfpm-battery.c:408
574#, c-format
575msgid "System is running on battery power"
576msgstr "బ్యాటరీ విద్యుత్ పై వ్యవస్థ నడుస్తున్నది"
577
578#: ../src/xfpm-battery.c:415
579#, c-format
580msgid ""
581"%s\n"
582"Your %s is fully charged (%i%%).\n"
583"Provides %s runtime"
584msgstr ""
585"%s\n"
586"మీ %s పూర్తిగా చార్జ్ అయింది (%i%%).\n"
587"ఇంకా %s వస్తుంది"
588
589#: ../src/xfpm-battery.c:424
590#, c-format
591msgid ""
592"%s\n"
593"Your %s is fully charged (%i%%)."
594msgstr ""
595"%s\n"
596"మీ %s పూర్తిగా చార్జ్ అయింది (%i%%)."
597
598#: ../src/xfpm-battery.c:435
599#, c-format
600msgid ""
601"%s\n"
602"Your %s is charging (%i%%)\n"
603"%s until is fully charged."
604msgstr ""
605"%s\n"
606"మీ %s చార్జింగు అవుతున్నది (%i%%)\n"
607"%s లలో పూర్తిగా చార్జ్ అవుతుంది."
608
609#: ../src/xfpm-battery.c:444
610#, c-format
611msgid ""
612"%s\n"
613"Your %s is charging (%i%%)."
614msgstr ""
615"%s\n"
616"మీ %s చార్జింగు అవుతున్నది (%i%%)."
617
618#: ../src/xfpm-battery.c:455
619#, c-format
620msgid ""
621"%s\n"
622"Your %s is discharging (%i%%)\n"
623"Estimated time left is %s."
624msgstr ""
625"%s\n"
626"మీ %s డిస్చార్జ్ అవుతున్నది (%i%%)\n"
627"ఇంకా మిగిలివున్న సమయం %s."
628
629#: ../src/xfpm-battery.c:464
630#, c-format
631msgid ""
632"%s\n"
633"Your %s is discharging (%i%%)."
634msgstr ""
635"%s\n"
636"మీ %s డిస్చార్జ్ అవుతున్నది (%i%%)."
637
638#: ../src/xfpm-battery.c:473
639#, c-format
640msgid ""
641"%s\n"
642"%s waiting to discharge (%i%%)."
643msgstr ""
644"%s\n"
645"%s డిస్చార్జ్ కావడానికి నిరీక్షిస్తున్నది (%i%%)."
646
647#: ../src/xfpm-battery.c:477
648#, c-format
649msgid ""
650"%s\n"
651"%s waiting to charge (%i%%)."
652msgstr ""
653"%s\n"
654"%s చార్జ్ కావడానికి నిరీక్షిస్తున్నది (%i%%)."
655
656#: ../src/xfpm-battery.c:481
657#, c-format
658msgid ""
659"%s\n"
660"Your %s is empty"
661msgstr ""
662"%s\n"
663"మీ %s అయిపోయింది"
664
665#: ../src/xfpm-battery.c:821
666msgid "battery"
667msgstr "బ్యాటరీ"
668
669#: ../src/xfpm-battery.c:827
670msgid "monitor battery"
671msgstr "మానిటర్ బ్యాటరీ"
672
673#: ../src/xfpm-battery.c:830
674msgid "mouse battery"
675msgstr "మౌస్ బ్యాటరీ"
676
677#: ../src/xfpm-battery.c:833
678msgid "keyboard battery"
679msgstr "కీబోర్డు బ్యాటరీ"
680
681#: ../src/xfpm-battery.c:836
682msgid "PDA battery"
683msgstr "PDA బ్యాటరీ"
684
685#: ../src/xfpm-battery.c:839
686msgid "Phone battery"
687msgstr "ఫోను బ్యాటరీ"
688
689#: ../src/xfpm-main.c:53 ../src/xfpm-power-info.c:93
690#, c-format
691msgid ""
692"\n"
693"Xfce Power Manager %s\n"
694"\n"
695"Part of the Xfce Goodies Project\n"
696"http://goodies.xfce.org\n"
697"\n"
698"Licensed under the GNU GPL.\n"
699"\n"
700msgstr ""
701"\n"
702"Xfce విద్యుత్ నిర్వాహకము %s\n"
703"\n"
704"Xfce గూడీస్ ప్రోజెక్టులో భాగము\n"
705"http://goodies.xfce.org\n"
706"\n"
707"GNU GPL క్రింద లైసెన్సు పొందబడింది.\n"
708"\n"
709
710#: ../src/xfpm-main.c:76 ../src/xfpm-power-info.c:376
711msgid "True"
712msgstr "సత్యము"
713
714#: ../src/xfpm-main.c:76 ../src/xfpm-power-info.c:376
715msgid "False"
716msgstr "అసత్యము"
717
718#: ../src/xfpm-main.c:113
719#, c-format
720msgid "With policykit support\n"
721msgstr "పాలసీకిట్ సహకారముతో\n"
722
723#: ../src/xfpm-main.c:115
724#, c-format
725msgid "Without policykit support\n"
726msgstr "పాలసీకిట్ సహకారము లేకుండా\n"
727
728#: ../src/xfpm-main.c:118
729#, c-format
730msgid "With network manager support\n"
731msgstr "నెట్‌వర్క్ నిర్వాహకము సహకారముతో\n"
732
733#: ../src/xfpm-main.c:120
734#, c-format
735msgid "Without network manager support\n"
736msgstr "నెట్‌వర్క్ నిర్వాహకము సహకారము లేకుండా\n"
737
738#: ../src/xfpm-main.c:123
739#, c-format
740msgid "With DPMS support\n"
741msgstr "DPMS సహకారముతో\n"
742
743#: ../src/xfpm-main.c:125
744#, c-format
745msgid "Without DPMS support\n"
746msgstr "DPMS సహకారము లేకుండా\n"
747
748#: ../src/xfpm-main.c:141
749msgid "Can suspend"
750msgstr "తాత్కాలికంగా నిలిపివేయవచ్చు"
751
752#: ../src/xfpm-main.c:143
753msgid "Can hibernate"
754msgstr "సుప్తావస్థలోనికి మార్చవచ్చు"
755
756#: ../src/xfpm-main.c:145
757msgid "Can spin down hard disks"
758msgstr "హార్డ్‍డిస్కులు తిరుగు వేగాన్ని తగ్గించవచ్చు"
759
760#: ../src/xfpm-main.c:147
761msgid "Authorized to suspend"
762msgstr "తాత్కాలికంగా నిలుపువేయుటకు అధికారమును కలిగిన వారై వుండాలి"
763
764#: ../src/xfpm-main.c:149
765msgid "Authorized to hibernate"
766msgstr "సుప్తావస్థలో ఉంచుటకు అధికారమును కలిగిన వారై వుండాలి"
767
768#: ../src/xfpm-main.c:151
769msgid "Authorized to shutdown"
770msgstr "మూసివేయుటకు అధికారమును కలిగిన వారై వుండాలి"
771
772#: ../src/xfpm-main.c:153
773msgid "Authorized to spin down hard disks"
774msgstr "హార్డ్‍డిస్కు తిరుగు వేగాన్ని తగ్గించుటకు అధికారమును కలిగిన వారై వుండాలి"
775
776#: ../src/xfpm-main.c:155
777msgid "Has battery"
778msgstr "బ్యాటరీ ఉంది"
779
780#: ../src/xfpm-main.c:157
781msgid "Has brightness panel"
782msgstr "ప్రకాశవంతపు ప్యానల్"
783
784#: ../src/xfpm-main.c:159
785msgid "Has power button"
786msgstr "విద్యుత్ బటన్"
787
788#: ../src/xfpm-main.c:161
789msgid "Has hibernate button"
790msgstr "సుప్తావస్థ బటన్"
791
792#: ../src/xfpm-main.c:163
793msgid "Has sleep button"
794msgstr "నిద్రావస్థ బటన్"
795
796#: ../src/xfpm-main.c:165
797msgid "Has LID"
798msgstr "LID కలిగివుంది"
799
800#: ../src/xfpm-main.c:264
801msgid "Do not daemonize"
802msgstr "డెమోనైజ్ చేయవద్దు"
803
804#: ../src/xfpm-main.c:265
805msgid "Enable debugging"
806msgstr "దోషశుద్ధిని చేతనపరుచు"
807
808#: ../src/xfpm-main.c:266
809msgid "Dump all information"
810msgstr "సమాచారాన్నంతటినీ సేకరించు"
811
812#: ../src/xfpm-main.c:267
813msgid "Restart the running instance of Xfce power manager"
814msgstr "xfce విద్యుత్ నిర్వాహకము యొక్క నడుస్తున్న ప్రక్రియను పునఃప్రారంభించు"
815
816#: ../src/xfpm-main.c:268
817msgid "Show the configuration dialog"
818msgstr "స్వరూపణ డైలాగును చూపించు"
819
820#: ../src/xfpm-main.c:269
821msgid "Quit any running xfce power manager"
822msgstr "నడుస్తున్న ఏదైనా xfce విద్యుత్ నిర్వాహకము నుండి నిష్క్రమించు"
823
824#: ../src/xfpm-main.c:270 ../src/xfpm-power-info.c:935
825msgid "Version information"
826msgstr "రూపాంతర సమాచారం"
827
828#: ../src/xfpm-main.c:320
829msgid "Unable to get connection to the message bus session"
830msgstr "బస్ సెషన్ సందేశమునకు అనుసంధానమును పొందలేకపోతున్నది"
831
832#: ../src/xfpm-main.c:414
833msgid "Another power manager is already running"
834msgstr "మరొక విద్యుత్ నిర్వాహకము ఇంతకుముందు నుంచే నడుస్తున్నది"
835
836#: ../src/xfpm-main.c:420
837#, c-format
838msgid "Xfce power manager is already running"
839msgstr "Xfce విద్యుత్ నిర్వాహకము ఇంతకుముందు నుంచే నడుస్తున్నది"
840
841#: ../src/xfpm-inhibit.c:331
842#, c-format
843msgid "Invalid arguments"
844msgstr "చెల్లని తర్కము"
845
846#: ../src/xfpm-inhibit.c:357
847#, c-format
848msgid "Invalid cookie"
849msgstr "సరైన కుకీ కాదు"
850
851#. TRANSLATORS: the command line was not provided
852#: ../src/xfpm-power-info.c:118
853msgid "No data"
854msgstr "డేటా లేదు"
855
856#. TRANSLATORS: kernel module, usually a device driver
857#: ../src/xfpm-power-info.c:125 ../src/xfpm-power-info.c:130
858msgid "Kernel module"
859msgstr "కెర్నల్ పర్వికము"
860
861#. TRANSLATORS: kernel housekeeping
862#: ../src/xfpm-power-info.c:135
863msgid "Kernel core"
864msgstr "కెర్నల్ అంతర్భాగం"
865
866#. TRANSLATORS: interrupt between processors
867#: ../src/xfpm-power-info.c:140
868msgid "Interprocessor interrupt"
869msgstr "ఇంటర్‌ప్రోసెసర్ ఆటంకము"
870
871#. TRANSLATORS: unknown interrupt
872#: ../src/xfpm-power-info.c:145
873msgid "Interrupt"
874msgstr "ఆటంకము"
875
876#. TRANSLATORS: the keyboard and mouse device event
877#: ../src/xfpm-power-info.c:189
878msgid "PS/2 keyboard/mouse/touchpad"
879msgstr "PS/2 కీబోర్డు/మౌస్/టచ్‌ప్యాడ్"
880
881#. TRANSLATORS: ACPI, the Intel power standard on laptops and desktops
882#: ../src/xfpm-power-info.c:192
883msgid "ACPI"
884msgstr "ACPI"
885
886#. TRANSLATORS: serial ATA is a new style of hard disk interface
887#: ../src/xfpm-power-info.c:195
888msgid "Serial ATA"
889msgstr "సీరియల్ ATA"
890
891#. TRANSLATORS: this is the old-style ATA interface
892#: ../src/xfpm-power-info.c:198
893msgid "ATA host controller"
894msgstr "ATA హోస్టు నియంత్రకం"
895
896#. TRANSLATORS: 802.11 wireless adaptor
897#: ../src/xfpm-power-info.c:201
898msgid "Intel wireless adaptor"
899msgstr "ఇంటెల్ వైరులేని అడాప్టర్"
900
901#. TRANSLATORS: a timer is something that fires periodically
902#: ../src/xfpm-power-info.c:206 ../src/xfpm-power-info.c:209
903#: ../src/xfpm-power-info.c:212 ../src/xfpm-power-info.c:215
904#: ../src/xfpm-power-info.c:218
905#, c-format
906msgid "Timer %s"
907msgstr "సమయకం %s"
908
909#. TRANSLATORS: this is a task that's woken up from sleeping
910#: ../src/xfpm-power-info.c:221
911#, c-format
912msgid "Sleep %s"
913msgstr "నిద్రపోవు %s"
914
915#. TRANSLATORS: this is a new realtime task
916#: ../src/xfpm-power-info.c:224
917#, c-format
918msgid "New task %s"
919msgstr "కొత్త కార్యం %s"
920
921#. TRANSLATORS: this is a task thats woken to check state
922#: ../src/xfpm-power-info.c:227
923#, c-format
924msgid "Wait %s"
925msgstr "నిరీక్షించు %s"
926
927#. TRANSLATORS: a work queue is a list of work that has to be done
928#: ../src/xfpm-power-info.c:230 ../src/xfpm-power-info.c:233
929#, c-format
930msgid "Work queue %s"
931msgstr "పని క్రమము %s"
932
933#. TRANSLATORS: this is when the networking subsystem clears out old entries
934#: ../src/xfpm-power-info.c:236
935#, c-format
936msgid "Network route flush %s"
937msgstr "నెట్‌వర్క్ రూట్ ఫ్లష్ %s"
938
939#. TRANSLATORS: activity on the USB bus
940#: ../src/xfpm-power-info.c:239
941#, c-format
942msgid "USB activity %s"
943msgstr "USB క్రియాశీలత %s"
944
945#. TRANSLATORS: we've timed out of an aligned timer
946#: ../src/xfpm-power-info.c:242
947#, c-format
948msgid "Wakeup %s"
949msgstr "మేల్కొను %s"
950
951#. TRANSLATORS: interupts on the system required for basic operation
952#: ../src/xfpm-power-info.c:245
953msgid "Local interrupts"
954msgstr "స్థానిక ఆటంకాలు"
955
956#. TRANSLATORS: interrupts when a task gets moved from one core to another
957#: ../src/xfpm-power-info.c:248
958msgid "Rescheduling interrupts"
959msgstr "రీషెడ్యూలింగ్ ఆటంకాలు"
960
961#: ../src/xfpm-power-info.c:331
962msgid "Attribute"
963msgstr "గుణము"
964
965#: ../src/xfpm-power-info.c:338
966msgid "Value"
967msgstr "విలువ"
968
969#: ../src/xfpm-power-info.c:348
970msgid "Device"
971msgstr "పరికరం"
972
973#: ../src/xfpm-power-info.c:363 ../src/xfpm-power-info.c:739
974msgid "Type"
975msgstr "రకం"
976
977#: ../src/xfpm-power-info.c:375
978msgid "PowerSupply"
979msgstr "విద్యుత్ "
980
981#: ../src/xfpm-power-info.c:393
982msgid "Model"
983msgstr "మోడల్"
984
985#: ../src/xfpm-power-info.c:407
986msgid "Technology"
987msgstr "సాంకేతికత"
988
989#. TRANSLATORS: Unit here is What hour
990#: ../src/xfpm-power-info.c:414 ../src/xfpm-power-info.c:428
991#: ../src/xfpm-power-info.c:442
992msgid "Wh"
993msgstr "Wh"
994
995#: ../src/xfpm-power-info.c:420
996msgid "Energy full design"
997msgstr "శక్తి పూర్తి డిజైన్"
998
999#: ../src/xfpm-power-info.c:434
1000msgid "Energy full"
1001msgstr "శక్తి పూర్తిగావుంది"
1002
1003#: ../src/xfpm-power-info.c:448
1004msgid "Energy empty"
1005msgstr "శక్తి అయిపోయింది"
1006
1007#. TRANSLATORS: Unit here is volt
1008#: ../src/xfpm-power-info.c:456
1009msgid "V"
1010msgstr "V"
1011
1012#: ../src/xfpm-power-info.c:461
1013msgid "Voltage"
1014msgstr "వోల్టేజ్"
1015
1016#: ../src/xfpm-power-info.c:478
1017msgid "Vendor"
1018msgstr "అమ్మకపుదారుడు"
1019
1020#: ../src/xfpm-power-info.c:495
1021msgid "Serial"
1022msgstr "సీరియల్"
1023
1024#: ../src/xfpm-power-info.c:731
1025msgid "Processor"
1026msgstr "ప్రోసెసర్"
1027
1028#. TANSLATORS: PID, is the process id, e.g what ps x gives
1029#: ../src/xfpm-power-info.c:748
1030msgid "PID"
1031msgstr "PID"
1032
1033#: ../src/xfpm-power-info.c:754
1034msgid "Wakeups"
1035msgstr "మేల్కోలుపులు"
1036
1037#: ../src/xfpm-power-info.c:760
1038msgid "Command"
1039msgstr "ఆదేశం"
1040
1041#: ../src/xfpm-power-info.c:766
1042msgid "Details"
1043msgstr "వివరాలు"
1044
1045#: ../src/xfce4-power-manager.desktop.in.h:2
1046msgid "Power management for the Xfce desktop"
1047msgstr "Xfce డెస్క్‍టాప్ కొరకు విద్యుత్ నిర్వాహణ"
1048
1049#: ../panel-plugins/brightness/brightness-button.c:180
1050#: ../panel-plugins/brightness/xfce4-brightness-plugin.desktop.in.in.h:2
1051msgid "Control your LCD brightness"
1052msgstr "మీ LCD ప్రకాశమును నియంత్రించండి"
1053
1054#: ../panel-plugins/brightness/brightness-button.c:182
1055msgid "No device found"
1056msgstr "ఏ పరికరము కనుగొనబడలేదు"
1057
1058#: ../panel-plugins/brightness/brightness-button.c:649
1059#: ../panel-plugins/brightness/xfce4-brightness-plugin.desktop.in.in.h:1
1060msgid "Brightness plugin"
1061msgstr "ప్రకాశవంతపు ప్లగిన్"
10620
=== removed file '.pc/02_translations-fix-invalid-format-strings.patch/po/tr.po'
--- .pc/02_translations-fix-invalid-format-strings.patch/po/tr.po 2013-08-13 06:56:35 +0000
+++ .pc/02_translations-fix-invalid-format-strings.patch/po/tr.po 1970-01-01 00:00:00 +0000
@@ -1,1486 +0,0 @@
1# Ayhan YALÇINSOY <ayhanyalcinsoy@gmail.com>, 2010.
2msgid ""
3msgstr ""
4"Project-Id-Version: xfce\n"
5"Report-Msgid-Bugs-To: \n"
6"POT-Creation-Date: 2012-04-09 18:36+0000\n"
7"PO-Revision-Date: 2010-05-12 17:15+0300\n"
8"Last-Translator: Ayhan YALÇINSOY <ayhanyalcinsoy@gmail.com>\n"
9"Language-Team: Turkish <kde-i18n-doc@kde.org>\n"
10"MIME-Version: 1.0\n"
11"Content-Type: text/plain; charset=UTF-8\n"
12"Content-Transfer-Encoding: 8bit\n"
13"Language: tr\n"
14"Plural-Forms: nplurals=1; plural=0;\n"
15"X-Poedit-Country: TURKEY\n"
16"X-Generator: Lokalize 1.0\n"
17
18#: ../data/interfaces/xfpm-settings.ui.h:1
19msgid "<b>Actions</b>"
20msgstr "<b>İşlemler</b>"
21
22#: ../data/interfaces/xfpm-settings.ui.h:2
23msgid "<b>Advanced Options</b>"
24msgstr "<b>Gelişmiş ayarlar</b>"
25
26#: ../data/interfaces/xfpm-settings.ui.h:3
27msgid "<b>Brightness</b>"
28msgstr "<b>Ekran Parlaklığı</b>"
29
30#: ../data/interfaces/xfpm-settings.ui.h:4
31msgid "<b>General Options</b>"
32msgstr "<b>Genel Seçenekler</b>"
33
34#: ../data/interfaces/xfpm-settings.ui.h:5
35msgid "<b>Monitor</b>"
36msgstr "<b>Monitör</b>"
37
38#: ../data/interfaces/xfpm-settings.ui.h:6
39msgid "Actions"
40msgstr "İşlemler"
41
42#: ../data/interfaces/xfpm-settings.ui.h:7
43msgid "Consider the computer on low power at:"
44msgstr "Kritik düşük güç seviyesini belirle:"
45
46#. Hibernate menu option
47#: ../data/interfaces/xfpm-settings.ui.h:8 ../settings/xfpm-settings.c:817
48#: ../settings/xfpm-settings.c:885 ../settings/xfpm-settings.c:1034
49#: ../settings/xfpm-settings.c:1211 ../settings/xfpm-settings.c:1268
50#: ../settings/xfpm-settings.c:1320 ../src/xfpm-power.c:484
51#: ../src/xfpm-power.c:779
52msgid "Hibernate"
53msgstr "Hazırda beklet"
54
55#: ../data/interfaces/xfpm-settings.ui.h:9
56msgid "Level:"
57msgstr "Seviye:"
58
59#: ../data/interfaces/xfpm-settings.ui.h:10
60msgid "Lock screen when going for suspend/hibernate"
61msgstr ""
62"Askıya alınırken veya hazırda bekletme işlemi gerçekleştirilirken ekranı "
63"kilitle"
64
65#: ../data/interfaces/xfpm-settings.ui.h:11 ../src/xfpm-power-common.c:132
66msgid "Monitor"
67msgstr "Monitör"
68
69#: ../data/interfaces/xfpm-settings.ui.h:12
70msgid "Monitor power management control"
71msgstr "Monitör güç yönetimi kontrolü"
72
73#: ../data/interfaces/xfpm-settings.ui.h:13 ../settings/xfpm-settings.c:806
74#: ../settings/xfpm-settings.c:874 ../settings/xfpm-settings.c:1023
75#: ../settings/xfpm-settings.c:1200 ../settings/xfpm-settings.c:1257
76#: ../settings/xfpm-settings.c:1309
77msgid "Nothing"
78msgstr "Hiçbiri"
79
80#: ../data/interfaces/xfpm-settings.ui.h:14
81msgid "Power manager settings"
82msgstr "Güç yöneticisi ayarları"
83
84#: ../data/interfaces/xfpm-settings.ui.h:15
85msgid "Prefer power savings over performance"
86msgstr "Tam performans yerine güç koruma kipinde çalıştır"
87
88#: ../data/interfaces/xfpm-settings.ui.h:16
89msgid "Put display to sleep when computer is inactive for:"
90msgstr "Bilgisayar kullanılmadığında şu kadar süre sonra askıya al:"
91
92#: ../data/interfaces/xfpm-settings.ui.h:17
93msgid "Put the computer to sleep when inactive for:"
94msgstr "Bilgisayar kullanılmadığı zaman şu kadar süre sonra askıya al:"
95
96#: ../data/interfaces/xfpm-settings.ui.h:18
97msgid "Reduce screen brightness when computer is inactive for:"
98msgstr ""
99"Bilgisayar kullanılmadığında ekran parlaklığı seviyesini şu kadar süre sonra "
100"düşür:"
101
102#: ../data/interfaces/xfpm-settings.ui.h:19
103msgid "Set computer inactivity sleep mode:"
104msgstr "Bilgisayar kullanılmadığında uygulanacak uyku kipi:"
105
106#: ../data/interfaces/xfpm-settings.ui.h:20
107msgid "Set monitor sleep mode:"
108msgstr "Monitör için kullanılacak uyku kipi:"
109
110#: ../data/interfaces/xfpm-settings.ui.h:21
111msgid "Show notifications to notify about the battery state"
112msgstr "Pil durumunu göstermek için sistem bildirim alanını kullan"
113
114#: ../data/interfaces/xfpm-settings.ui.h:22
115msgid "Spin down hard disks"
116msgstr "Sabit diskleri aşağı döndür"
117
118#: ../data/interfaces/xfpm-settings.ui.h:23
119msgid "Standby"
120msgstr "Hazırda beklet"
121
122#. Suspend menu option
123#: ../data/interfaces/xfpm-settings.ui.h:24 ../settings/xfpm-settings.c:811
124#: ../settings/xfpm-settings.c:879 ../settings/xfpm-settings.c:1028
125#: ../settings/xfpm-settings.c:1205 ../settings/xfpm-settings.c:1262
126#: ../settings/xfpm-settings.c:1314 ../src/xfpm-power.c:499
127#: ../src/xfpm-power.c:792
128msgid "Suspend"
129msgstr "Askıya Al"
130
131#: ../data/interfaces/xfpm-settings.ui.h:25
132msgid "Switch off display when computer is inactive for:"
133msgstr "Bilgisayar kullanılmadığında şu kadar süre sonra ekranı kapat:"
134
135#: ../data/interfaces/xfpm-settings.ui.h:26
136msgid "System tray icon: "
137msgstr "Sistem çekmecesi simgesi:"
138
139#: ../data/interfaces/xfpm-settings.ui.h:27
140msgid "When battery power is critical:"
141msgstr "Pil seviyesi kritik ise şu işlemi gerçekleştir:"
142
143#: ../data/interfaces/xfpm-settings.ui.h:28
144msgid "When hibernate button is pressed:"
145msgstr "Hazırda beklet düğmesine basıldığında yap:"
146
147#: ../data/interfaces/xfpm-settings.ui.h:29
148msgid "When laptop lid is closed:"
149msgstr "Dizüstü kapağı kapatıldığında yap:"
150
151#: ../data/interfaces/xfpm-settings.ui.h:30
152msgid "When power button is pressed:"
153msgstr "Kapatma düğmesine basıldığında yap:"
154
155#: ../data/interfaces/xfpm-settings.ui.h:31
156msgid "When sleep button is pressed:"
157msgstr "Uyku düğmesine basıldığında yap:"
158
159#: ../data/interfaces/xfpm-settings.ui.h:32
160#: ../settings/xfpm-settings-main.c:121 ../src/xfpm-main.c:413
161msgid "Xfce Power Manager"
162msgstr "Xfce Güç Yöneticisi"
163
164#: ../settings/xfpm-settings.c:567 ../settings/xfpm-settings.c:582
165#: ../settings/xfpm-settings.c:609
166msgid "Never"
167msgstr "Asla"
168
169#: ../settings/xfpm-settings.c:570
170msgid "One minute"
171msgstr "Bir dakika"
172
173#: ../settings/xfpm-settings.c:572 ../settings/xfpm-settings.c:584
174msgid "Minutes"
175msgstr "Dakika"
176
177#: ../settings/xfpm-settings.c:586 ../settings/xfpm-settings.c:593
178#: ../settings/xfpm-settings.c:594 ../settings/xfpm-settings.c:595
179msgid "One hour"
180msgstr "Bir saat"
181
182#: ../settings/xfpm-settings.c:594 ../settings/xfpm-settings.c:598
183msgid "one minute"
184msgstr "Bir dakika"
185
186#: ../settings/xfpm-settings.c:595 ../settings/xfpm-settings.c:599
187msgid "minutes"
188msgstr "dakika"
189
190#: ../settings/xfpm-settings.c:597 ../settings/xfpm-settings.c:598
191#: ../settings/xfpm-settings.c:599
192msgid "hours"
193msgstr "saat"
194
195#: ../settings/xfpm-settings.c:611
196msgid "Seconds"
197msgstr "Saniye"
198
199#: ../settings/xfpm-settings.c:789 ../settings/xfpm-settings.c:987
200#: ../settings/xfpm-settings.c:1467
201msgid "Hibernate and suspend operations not supported"
202msgstr "Askıya alma ve hazırda bekletme işlemleri desteklenmiyor"
203
204#: ../settings/xfpm-settings.c:794 ../settings/xfpm-settings.c:992
205#: ../settings/xfpm-settings.c:1472
206msgid "Hibernate and suspend operations not permitted"
207msgstr "Askıya alma ve hazırda bekletme işlemlerine izin verilmedi"
208
209#: ../settings/xfpm-settings.c:823 ../settings/xfpm-settings.c:1217
210#: ../src/xfpm-power.c:805
211msgid "Shutdown"
212msgstr "Kapat"
213
214#: ../settings/xfpm-settings.c:827 ../settings/xfpm-settings.c:1221
215#: ../settings/xfpm-settings.c:1272 ../settings/xfpm-settings.c:1324
216msgid "Ask"
217msgstr "Sor"
218
219#: ../settings/xfpm-settings.c:889 ../settings/xfpm-settings.c:1038
220msgid "Lock screen"
221msgstr "Ekranı kilitle"
222
223#: ../settings/xfpm-settings.c:957 ../settings/xfpm-settings.c:1107
224msgid "Spinning down hard disks permission denied"
225msgstr "Sabit disk izinleri kapatmaya izin vermiyor"
226
227#: ../settings/xfpm-settings.c:1147
228msgid "Always show icon"
229msgstr "Her zaman simge göster"
230
231#: ../settings/xfpm-settings.c:1150
232msgid "When battery is present"
233msgstr "Pil takılı iken"
234
235#: ../settings/xfpm-settings.c:1153
236msgid "When battery is charging or discharging"
237msgstr "Pil şarj edilirken veya tükenirken"
238
239#: ../settings/xfpm-settings.c:1156
240msgid "Never show icon"
241msgstr "Simge gösterme"
242
243#: ../settings/xfpm-settings.c:1182
244msgid ""
245"Disable Display Power Management Signaling (DPMS), e.g don't attempt to "
246"switch off the display or put it in sleep mode."
247msgstr ""
248"Görüntü Güç Yönetimi Sinyalizasyonunu (DPMS) Devredışı bırak, ör. ekranı "
249"kapatma veya hazırda bekletme kipine alma."
250
251#: ../settings/xfpm-settings.c:1376
252msgid "Suspend operation not supported"
253msgstr "Askıya alma işlemi desteklenmiyor"
254
255#: ../settings/xfpm-settings.c:1382
256msgid "Suspend operation not permitted"
257msgstr "Askıya alma işlemine izin verilmedi"
258
259#: ../settings/xfpm-settings.c:1388
260msgid "Hibernate operation not supported"
261msgstr "Hazırda bekletme işlemi desteklenmiyor"
262
263#: ../settings/xfpm-settings.c:1393
264msgid "Hibernate operation not permitted"
265msgstr "Hazırda bekletme işlemine izin verilmedi"
266
267#: ../settings/xfpm-settings.c:1440
268msgid "When all the power sources of the computer reach this charge level"
269msgstr "Bilgisayarın şarj seviyesi şu seviye yüzdesine geldiğinde"
270
271#: ../settings/xfpm-settings.c:1543 ../settings/xfpm-settings.c:1548
272msgid "General"
273msgstr "Genel"
274
275#: ../settings/xfpm-settings.c:1557 ../settings/xfpm-settings.c:1562
276msgid "On AC"
277msgstr "Fişe takılı iken (AC)"
278
279#: ../settings/xfpm-settings.c:1572 ../settings/xfpm-settings.c:1577
280msgid "On Battery"
281msgstr "Pil ile çalışırken"
282
283#: ../settings/xfpm-settings.c:1586 ../settings/xfpm-settings.c:1591
284msgid "Extended"
285msgstr "Genişletilmiş"
286
287#: ../settings/xfpm-settings.c:1659
288msgid "Check your power manager installation"
289msgstr "Güç yöneticisi kurulumunu kontrol edin"
290
291#: ../settings/xfpm-settings-main.c:78
292msgid "Settings manager socket"
293msgstr "Ayar yöneticisi soketi "
294
295#: ../settings/xfpm-settings-main.c:78
296msgid "SOCKET ID"
297msgstr "Soket Kimliği"
298
299#: ../settings/xfpm-settings-main.c:89 ../src/xfpm-main.c:289
300#: ../src/xfpm-power-info.c:948
301#, c-format
302msgid "Type '%s --help' for usage."
303msgstr "Kullanımı öğrenmek için '%s --help' yazınız."
304
305#: ../settings/xfpm-settings-main.c:123
306msgid "Failed to load power manager configuration, using defaults"
307msgstr ""
308"Güç yöneticisi yapılandırması yüklenemedi, öntanımlı ayarlar kullanılacak"
309
310#: ../settings/xfpm-settings-main.c:148
311msgid "Unable to connect to Xfce Power Manager"
312msgstr "Xfce Güç Yöneticisine bağlanılamadı"
313
314#: ../settings/xfpm-settings-main.c:190 ../src/xfpm-main.c:329
315#, c-format
316msgid "Xfce power manager is not running"
317msgstr "Xfce güç yöneticisi çalışmıyor"
318
319#: ../settings/xfpm-settings-main.c:195
320msgid "Run"
321msgstr "Çalıştır"
322
323#: ../settings/xfpm-settings-main.c:196
324msgid "Xfce4 Power Manager is not running, do you want to launch it now?"
325msgstr "Xfce4 Güç Yöneticisi çalışmıyor, çalıştırmak ister misiniz?"
326
327#: ../settings/xfce4-power-manager-settings.desktop.in.h:1
328#: ../src/xfpm-power.c:307 ../src/xfpm-power.c:595 ../src/xfpm-power.c:730
329#: ../src/xfpm-power.c:766 ../src/xfpm-power.c:935 ../src/xfpm-power.c:959
330#: ../src/xfpm-battery.c:349 ../src/xfce4-power-manager.desktop.in.h:1
331msgid "Power Manager"
332msgstr "Güç Yöneticisi"
333
334#: ../settings/xfce4-power-manager-settings.desktop.in.h:2
335msgid "Settings for the Xfce Power Manager"
336msgstr "Xfce 4 Güç Yöneticisi Ayarları"
337
338#: ../common/xfpm-common.c:155
339msgid "translator-credits"
340msgstr ""
341"Samed Beyribey <ras0ir@eventualis.org>, 2009 Ayhan "
342"YALÇINSOY<ayhanyalcinsoy@gmail.com>,2010"
343
344#: ../src/xfpm-power.c:330
345msgid ""
346"An application is currently disabling the automatic sleep, doing this action "
347"now may damage the working state of this application, are you sure you want "
348"to hibernate the system?"
349msgstr ""
350"Bir uygulama otomatik askıya alma işlemini devre dışı bırakıyor. Bu işlemi "
351"şu an gerçekleştirirseniz çalışan uygulamaya zarar verebilirsiniz, buna "
352"rağmen sistemi hazırda bekletmek istediğinizden emin misiniz?"
353
354#: ../src/xfpm-power.c:428
355msgid "Quit"
356msgstr "Kapat"
357
358#: ../src/xfpm-power.c:429
359msgid "All running instances of the power manager will exit"
360msgstr "Tüm çalışan güç yöneticisi uygulamaları kapatılacak"
361
362#: ../src/xfpm-power.c:431
363msgid "Quit the power manager?"
364msgstr "Güç yöneticisinden çıkılsın mı?"
365
366#. Power information
367#: ../src/xfpm-power.c:534 ../src/xfpm-power-info.c:818
368msgid "Power Information"
369msgstr "Güç Bilgisi"
370
371#. *
372#. * Power Mode
373#. *
374#. TRANSLATOR: Mode here is the power profile (presentation, power save,
375#. normal)
376#: ../src/xfpm-power.c:550
377msgid "Mode"
378msgstr "Mod"
379
380#. Normal
381#: ../src/xfpm-power.c:561
382msgid "Normal"
383msgstr "Normal"
384
385#. Normal
386#: ../src/xfpm-power.c:571
387msgid "Presentation"
388msgstr "Sunum"
389
390#: ../src/xfpm-power.c:693
391msgid "Hibernate the system"
392msgstr "Sistemi hazırda beklet moduna al"
393
394#: ../src/xfpm-power.c:704
395msgid "Suspend the system"
396msgstr "Sistemi askıya al"
397
398#: ../src/xfpm-power.c:714
399msgid "Shutdown the system"
400msgstr "Sistemi kapat"
401
402#: ../src/xfpm-power.c:725 ../src/xfpm-power.c:763
403msgid "System is running on low power. Save your work to avoid losing data"
404msgstr ""
405"Güç seviyesi çok düşük. Veri kaybetmemek için lütfen işlerinizi kaydediniz"
406
407#: ../src/xfpm-power.c:936
408msgid "System is running on low power"
409msgstr "Sistem düşük güçte çalışıyor"
410
411#: ../src/xfpm-power.c:955
412#, c-format
413msgid ""
414"Your %s charge level is low\n"
415"Estimated time left %s"
416msgstr ""
417"%s\n"
418"%s deşarj oluyor (%i%%)\n"
419"tahmini kalan süre %s."
420
421#: ../src/xfpm-power.c:1158 ../src/xfpm-power.c:1163
422msgid "Adaptor is offline"
423msgstr "Adaptör takılı değil"
424
425#: ../src/xfpm-power.c:1159 ../src/xfpm-power.c:1164 ../src/xfpm-battery.c:408
426#, c-format
427msgid "Adaptor is online"
428msgstr "Adaptör takılı"
429
430#: ../src/xfpm-power.c:1617 ../src/xfpm-power.c:1638 ../src/xfpm-power.c:1653
431#: ../src/xfpm-power.c:1676
432#, c-format
433msgid "Permission denied"
434msgstr "Erişim engellendi"
435
436#: ../src/xfpm-power.c:1661 ../src/xfpm-power.c:1684
437#, c-format
438msgid "Suspend not supported"
439msgstr "Askıya alma desteklenmiyor"
440
441#: ../src/xfpm-power-common.c:122 ../src/xfpm-power-common.c:141
442msgid "Battery"
443msgstr "Pil"
444
445#: ../src/xfpm-power-common.c:124 ../src/xfpm-battery.c:824
446msgid "UPS"
447msgstr "UPS"
448
449#: ../src/xfpm-power-common.c:126
450msgid "Line power"
451msgstr "Hat gücü"
452
453#: ../src/xfpm-power-common.c:128
454msgid "Mouse"
455msgstr "Fare"
456
457#: ../src/xfpm-power-common.c:130
458msgid "Keyboard"
459msgstr "Klavye"
460
461#: ../src/xfpm-power-common.c:134
462msgid "PDA"
463msgstr "PDA"
464
465#: ../src/xfpm-power-common.c:136
466msgid "Phone"
467msgstr "Telefon"
468
469#: ../src/xfpm-power-common.c:138 ../src/xfpm-power-common.c:153
470#: ../src/xfpm-power-common.c:168 ../src/xfpm-battery.c:842
471msgid "Unknown"
472msgstr "Bilinmiyor"
473
474#: ../src/xfpm-power-common.c:155
475msgid "Lithium ion"
476msgstr "Lityum iyon"
477
478#: ../src/xfpm-power-common.c:157
479msgid "Lithium polymer"
480msgstr "Lityum polimer"
481
482#: ../src/xfpm-power-common.c:159
483msgid "Lithium iron phosphate"
484msgstr "Lityum demir fosfat"
485
486#: ../src/xfpm-power-common.c:161
487msgid "Lead acid"
488msgstr "Kurşun asit"
489
490#: ../src/xfpm-power-common.c:163
491msgid "Nickel cadmium"
492msgstr "Nikel Kadmiyum"
493
494#: ../src/xfpm-power-common.c:165
495msgid "Nickel metal hybride"
496msgstr "Nikel metal hibrid"
497
498#: ../src/xfpm-battery.c:169
499msgid "Unknown time"
500msgstr "Bilinmeyen zaman"
501
502#: ../src/xfpm-battery.c:175
503#, c-format
504msgid "%i minute"
505msgid_plural "%i minutes"
506msgstr[0] "%i dakika"
507
508#: ../src/xfpm-battery.c:186
509#, c-format
510msgid "%i hour"
511msgid_plural "%i hours"
512msgstr[0] "%i saat"
513
514#. TRANSLATOR: "%i %s %i %s" are "%i hours %i minutes"
515#. * Swap order with "%2$s %2$i %1$s %1$i if needed
516#: ../src/xfpm-battery.c:192
517#, c-format
518msgid "%i %s %i %s"
519msgstr "%i %s %i %s"
520
521#: ../src/xfpm-battery.c:193
522msgid "hour"
523msgid_plural "hours"
524msgstr[0] "saat"
525
526#: ../src/xfpm-battery.c:194
527msgid "minute"
528msgid_plural "minutes"
529msgstr[0] "dakika"
530
531#: ../src/xfpm-battery.c:209 ../src/xfpm-battery.c:260
532#, c-format
533msgid "Your %s is fully charged"
534msgstr "%s tamamen şarj edildi"
535
536#: ../src/xfpm-battery.c:212 ../src/xfpm-battery.c:263
537#, c-format
538msgid "Your %s is charging"
539msgstr "%s şarj ediliyor"
540
541#: ../src/xfpm-battery.c:222
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: