Imported Upstream version 0.9.2
Michael Biebl
14 years ago
0 | 0 | |
1 | 1 | The polkit-gnome library (polkit-gnome/*) is licensed to you under the |
2 | 2 | GNU Lesser General Public License version 2 or later. The PolicyKit |
3 | GNOME authentication D-Bus service (src/*) is licensed to you under | |
4 | the GNU General Public License version 2 or later. | |
3 | GNOME authentication D-Bus service (src/*) and authorization tool | |
4 | (tools/*) is licensed to you under the GNU General Public License | |
5 | version 2 or later. | |
5 | 6 | |
6 | 7 | Both licenses are included here. Each source code file is marked with |
7 | 8 | the proper copyright and license information. |
0 | 2008-08-21 02:01 David Zeuthen <davidz@redhat.com> | |
1 | ||
2 | * configure.ac: Bump version to 0.9.2 and require the right polkit | |
3 | versions | |
4 | ||
5 | 2008-08-21 01:11 David Zeuthen <davidz@redhat.com> | |
6 | ||
7 | * NEWS: update NEWS for release | |
8 | ||
9 | 2008-08-21 01:09 David Zeuthen <davidz@redhat.com> | |
10 | ||
11 | * src/polkit-gnome-auth-dialog.c, src/sexy-url-label.c, | |
12 | tools/sexy-url-label.c: Don't rely on libsexy headers. Patch from | |
13 | Michael Biebl <mbiebl@gmail.com>. | |
14 | ||
15 | 2008-08-20 01:56 David Zeuthen <davidz@redhat.com> | |
16 | ||
17 | * NEWS: Update NEWS | |
18 | ||
19 | 2008-08-20 01:56 David Zeuthen <davidz@redhat.com> | |
20 | ||
21 | * NEWS, configure.ac, src/Makefile.am, | |
22 | src/polkit-gnome-auth-dialog.c, tools/Makefile.am, | |
23 | tools/polkit-gnome-authorization.c: drop gnome-vfs dep in favor | |
24 | of new gtk+ dep | |
25 | ||
26 | 2008-08-20 01:35 David Zeuthen <davidz@redhat.com> | |
27 | ||
28 | * configure.ac: bump version to 0.9.1 | |
29 | ||
30 | 2008-08-20 01:34 David Zeuthen <davidz@redhat.com> | |
31 | ||
32 | * COPYING: mention license for authorization tool | |
33 | ||
34 | 2008-08-20 01:33 David Zeuthen <davidz@redhat.com> | |
35 | ||
36 | * configure.ac, src/Makefile.am, src/sexy-url-label.c, | |
37 | src/sexy-url-label.h, tools/Makefile.am, | |
38 | tools/polkit-gnome-authorization.c, tools/sexy-url-label.c, | |
39 | tools/sexy-url-label.h: don't link against libsexy; use local | |
40 | copies instead | |
41 | ||
42 | 2008-08-14 00:50 tomaszd | |
43 | ||
44 | * po/ChangeLog, po/pl.po: Updated Polish translation | |
45 | ||
46 | 2008-08-09 10:23 djihed | |
47 | ||
48 | * po/ChangeLog, po/ar.po: Updated Arabic Translation by Khaled | |
49 | Hosny. | |
50 | ||
51 | 2008-08-08 14:52 matthiasc | |
52 | ||
53 | * polkit-gnome/polkit-gnome-toggle-action.c: Use standard icon | |
54 | names for the default icons, since gnome-icon-theme | |
55 | has stopped shipping the legacy symlinks. | |
56 | ||
57 | 2008-08-04 14:20 aihana | |
58 | ||
59 | * po/ChangeLog, po/ja.po: 2008-08-04 Takeshi AIHANA | |
60 | <takeshi.aihana@gmail.com> | |
61 | ||
62 | * ja.po: Updated Japanese translation. | |
63 | ||
64 | 2008-08-04 00:32 dnloreto | |
65 | ||
66 | * po/ChangeLog, po/pt.po: 2008-08-04 Duarte Loreto | |
67 | <happyguy_pt@hotmail.com> | |
68 | ||
69 | * pt.po: Updated Portuguese translation by António Lima | |
70 | <amrlima@gmail.com>. | |
71 | ||
72 | 2008-07-31 10:42 djihed | |
73 | ||
74 | * po/ChangeLog, po/LINGUAS, po/ar.po: Updated Arabic Translation by | |
75 | Khaled Hosny. | |
76 | ||
77 | 2008-07-30 00:32 leonardof | |
78 | ||
79 | * po/ChangeLog, po/pt_BR.po: 2008-07-29 Leonardo Ferreira | |
80 | Fontenelle <leonardof@gnome.org> | |
81 | ||
82 | * pt_BR.po: Translation updated by Igor Pires Soares. (Yes, | |
83 | again!) | |
84 | ||
0 | 85 | 2008-07-22 18:05 David Zeuthen <davidz@redhat.com> |
1 | 86 | |
2 | 87 | * Makefile.am: fix ChangeLog generation |
114 | 114 | F77 = @F77@ |
115 | 115 | FFLAGS = @FFLAGS@ |
116 | 116 | GCONFTOOL = @GCONFTOOL@ |
117 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
118 | GCONF_LIBS = @GCONF_LIBS@ | |
117 | 119 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
118 | 120 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
119 | 121 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
120 | 122 | GMOFILES = @GMOFILES@ |
121 | 123 | GMSGFMT = @GMSGFMT@ |
122 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
123 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
124 | 124 | GREP = @GREP@ |
125 | 125 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
126 | 126 | GTK_CFLAGS = @GTK_CFLAGS@ |
196 | 196 | RANLIB = @RANLIB@ |
197 | 197 | SED = @SED@ |
198 | 198 | SET_MAKE = @SET_MAKE@ |
199 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
200 | SEXY_LIBS = @SEXY_LIBS@ | |
201 | 199 | SHELL = @SHELL@ |
202 | 200 | STRIP = @STRIP@ |
203 | 201 | USE_NLS = @USE_NLS@ |
0 | ========== | |
1 | PolicyKit-gnome 0.9.2 | |
2 | ========== | |
3 | ||
4 | Released on August 20th 2008. | |
5 | ||
6 | Highlights of this release | |
7 | ||
8 | o Don't rely on libsexy headers (Michael Biebl) | |
9 | ||
10 | Requirements for PolicyKit-gnome 0.9.2 | |
11 | ||
12 | - PolicyKit == 0.9 | |
13 | - GTK+ >= 2.13.6 | |
14 | - dbus >= 1.0 | |
15 | - dbus-glib >= 0.71 | |
16 | - GConf >= 2.8 | |
17 | ||
18 | ========== | |
19 | PolicyKit-gnome 0.9.1 | |
20 | ========== | |
21 | ||
22 | Released on August 19th 2008. | |
23 | ||
24 | Highlights of this release | |
25 | ||
26 | o Avoid libsexy dep; ship with local copies of SexyURLLabel | |
27 | o Avoid libgnome-vfs dep; use recent GTK+ instead | |
28 | o Use standard icon names (Matthias Clasen) | |
29 | o New translations: ar | |
30 | o Updated translations: pt_BR, pt, ja, ar, pl | |
31 | ||
32 | Requirements for PolicyKit-gnome 0.9.1 | |
33 | ||
34 | - PolicyKit == 0.9 | |
35 | - GTK+ >= 2.13.6 | |
36 | - dbus >= 1.0 | |
37 | - dbus-glib >= 0.71 | |
38 | - GConf >= 2.8 | |
39 | ||
0 | 40 | ========== |
1 | 41 | PolicyKit-gnome 0.9 |
2 | 42 | ========== |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.62 for PolicyKit-gnome 0.9. | |
2 | # Generated by GNU Autoconf 2.62 for PolicyKit-gnome 0.9.2. | |
3 | 3 | # |
4 | 4 | # Report bugs to <mailto:david@fubar.dk>. |
5 | 5 | # |
749 | 749 | # Identity of this package. |
750 | 750 | PACKAGE_NAME='PolicyKit-gnome' |
751 | 751 | PACKAGE_TARNAME='PolicyKit-gnome' |
752 | PACKAGE_VERSION='0.9' | |
753 | PACKAGE_STRING='PolicyKit-gnome 0.9' | |
752 | PACKAGE_VERSION='0.9.2' | |
753 | PACKAGE_STRING='PolicyKit-gnome 0.9.2' | |
754 | 754 | PACKAGE_BUGREPORT='mailto:david@fubar.dk' |
755 | 755 | |
756 | 756 | ac_unique_file="src" |
921 | 921 | GTK_DOC_USE_LIBTOOL_FALSE |
922 | 922 | GTK_CFLAGS |
923 | 923 | GTK_LIBS |
924 | SEXY_CFLAGS | |
925 | SEXY_LIBS | |
926 | GNOME_VFS_CFLAGS | |
927 | GNOME_VFS_LIBS | |
924 | GCONF_CFLAGS | |
925 | GCONF_LIBS | |
928 | 926 | DBUS_GLIB_CFLAGS |
929 | 927 | DBUS_GLIB_LIBS |
930 | 928 | POLKIT_DBUS_CFLAGS |
1031 | 1029 | PKG_CONFIG |
1032 | 1030 | GTK_CFLAGS |
1033 | 1031 | GTK_LIBS |
1034 | SEXY_CFLAGS | |
1035 | SEXY_LIBS | |
1036 | GNOME_VFS_CFLAGS | |
1037 | GNOME_VFS_LIBS | |
1032 | GCONF_CFLAGS | |
1033 | GCONF_LIBS | |
1038 | 1034 | DBUS_GLIB_CFLAGS |
1039 | 1035 | DBUS_GLIB_LIBS |
1040 | 1036 | POLKIT_DBUS_CFLAGS |
1593 | 1589 | # Omit some internal or obsolete options to make the list less imposing. |
1594 | 1590 | # This message is too long to be a string in the A/UX 3.1 sh. |
1595 | 1591 | cat <<_ACEOF |
1596 | \`configure' configures PolicyKit-gnome 0.9 to adapt to many kinds of systems. | |
1592 | \`configure' configures PolicyKit-gnome 0.9.2 to adapt to many kinds of systems. | |
1597 | 1593 | |
1598 | 1594 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1599 | 1595 | |
1663 | 1659 | |
1664 | 1660 | if test -n "$ac_init_help"; then |
1665 | 1661 | case $ac_init_help in |
1666 | short | recursive ) echo "Configuration of PolicyKit-gnome 0.9:";; | |
1662 | short | recursive ) echo "Configuration of PolicyKit-gnome 0.9.2:";; | |
1667 | 1663 | esac |
1668 | 1664 | cat <<\_ACEOF |
1669 | 1665 | |
1724 | 1720 | PKG_CONFIG path to pkg-config utility |
1725 | 1721 | GTK_CFLAGS C compiler flags for GTK, overriding pkg-config |
1726 | 1722 | GTK_LIBS linker flags for GTK, overriding pkg-config |
1727 | SEXY_CFLAGS C compiler flags for SEXY, overriding pkg-config | |
1728 | SEXY_LIBS linker flags for SEXY, overriding pkg-config | |
1729 | GNOME_VFS_CFLAGS | |
1730 | C compiler flags for GNOME_VFS, overriding pkg-config | |
1731 | GNOME_VFS_LIBS | |
1732 | linker flags for GNOME_VFS, overriding pkg-config | |
1723 | GCONF_CFLAGS | |
1724 | C compiler flags for GCONF, overriding pkg-config | |
1725 | GCONF_LIBS linker flags for GCONF, overriding pkg-config | |
1733 | 1726 | DBUS_GLIB_CFLAGS |
1734 | 1727 | C compiler flags for DBUS_GLIB, overriding pkg-config |
1735 | 1728 | DBUS_GLIB_LIBS |
1809 | 1802 | test -n "$ac_init_help" && exit $ac_status |
1810 | 1803 | if $ac_init_version; then |
1811 | 1804 | cat <<\_ACEOF |
1812 | PolicyKit-gnome configure 0.9 | |
1805 | PolicyKit-gnome configure 0.9.2 | |
1813 | 1806 | generated by GNU Autoconf 2.62 |
1814 | 1807 | |
1815 | 1808 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1823 | 1816 | This file contains any messages produced by compilers while |
1824 | 1817 | running configure, to aid debugging if configure makes a mistake. |
1825 | 1818 | |
1826 | It was created by PolicyKit-gnome $as_me 0.9, which was | |
1819 | It was created by PolicyKit-gnome $as_me 0.9.2, which was | |
1827 | 1820 | generated by GNU Autoconf 2.62. Invocation command line was |
1828 | 1821 | |
1829 | 1822 | $ $0 $@ |
2538 | 2531 | |
2539 | 2532 | # Define the identity of the package. |
2540 | 2533 | PACKAGE='PolicyKit-gnome' |
2541 | VERSION='0.9' | |
2534 | VERSION='0.9.2' | |
2542 | 2535 | |
2543 | 2536 | |
2544 | 2537 | cat >>confdefs.h <<_ACEOF |
5104 | 5097 | ;; |
5105 | 5098 | *-*-irix6*) |
5106 | 5099 | # Find out which ABI we are using. |
5107 | echo '#line 5108 "configure"' > conftest.$ac_ext | |
5100 | echo '#line 5101 "configure"' > conftest.$ac_ext | |
5108 | 5101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5109 | 5102 | (eval $ac_compile) 2>&5 |
5110 | 5103 | ac_status=$? |
7799 | 7792 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7800 | 7793 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7801 | 7794 | -e 's:$: $lt_compiler_flag:'` |
7802 | (eval echo "\"\$as_me:7803: $lt_compile\"" >&5) | |
7795 | (eval echo "\"\$as_me:7796: $lt_compile\"" >&5) | |
7803 | 7796 | (eval "$lt_compile" 2>conftest.err) |
7804 | 7797 | ac_status=$? |
7805 | 7798 | cat conftest.err >&5 |
7806 | echo "$as_me:7807: \$? = $ac_status" >&5 | |
7799 | echo "$as_me:7800: \$? = $ac_status" >&5 | |
7807 | 7800 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7808 | 7801 | # The compiler can only warn and ignore the option if not recognized |
7809 | 7802 | # So say no if there are warnings other than the usual output. |
8089 | 8082 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8090 | 8083 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8091 | 8084 | -e 's:$: $lt_compiler_flag:'` |
8092 | (eval echo "\"\$as_me:8093: $lt_compile\"" >&5) | |
8085 | (eval echo "\"\$as_me:8086: $lt_compile\"" >&5) | |
8093 | 8086 | (eval "$lt_compile" 2>conftest.err) |
8094 | 8087 | ac_status=$? |
8095 | 8088 | cat conftest.err >&5 |
8096 | echo "$as_me:8097: \$? = $ac_status" >&5 | |
8089 | echo "$as_me:8090: \$? = $ac_status" >&5 | |
8097 | 8090 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8098 | 8091 | # The compiler can only warn and ignore the option if not recognized |
8099 | 8092 | # So say no if there are warnings other than the usual output. |
8193 | 8186 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8194 | 8187 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8195 | 8188 | -e 's:$: $lt_compiler_flag:'` |
8196 | (eval echo "\"\$as_me:8197: $lt_compile\"" >&5) | |
8189 | (eval echo "\"\$as_me:8190: $lt_compile\"" >&5) | |
8197 | 8190 | (eval "$lt_compile" 2>out/conftest.err) |
8198 | 8191 | ac_status=$? |
8199 | 8192 | cat out/conftest.err >&5 |
8200 | echo "$as_me:8201: \$? = $ac_status" >&5 | |
8193 | echo "$as_me:8194: \$? = $ac_status" >&5 | |
8201 | 8194 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8202 | 8195 | then |
8203 | 8196 | # The compiler can only warn and ignore the option if not recognized |
10595 | 10588 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10596 | 10589 | lt_status=$lt_dlunknown |
10597 | 10590 | cat > conftest.$ac_ext <<EOF |
10598 | #line 10599 "configure" | |
10591 | #line 10592 "configure" | |
10599 | 10592 | #include "confdefs.h" |
10600 | 10593 | |
10601 | 10594 | #if HAVE_DLFCN_H |
10695 | 10688 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10696 | 10689 | lt_status=$lt_dlunknown |
10697 | 10690 | cat > conftest.$ac_ext <<EOF |
10698 | #line 10699 "configure" | |
10691 | #line 10692 "configure" | |
10699 | 10692 | #include "confdefs.h" |
10700 | 10693 | |
10701 | 10694 | #if HAVE_DLFCN_H |
13104 | 13097 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13105 | 13098 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13106 | 13099 | -e 's:$: $lt_compiler_flag:'` |
13107 | (eval echo "\"\$as_me:13108: $lt_compile\"" >&5) | |
13100 | (eval echo "\"\$as_me:13101: $lt_compile\"" >&5) | |
13108 | 13101 | (eval "$lt_compile" 2>conftest.err) |
13109 | 13102 | ac_status=$? |
13110 | 13103 | cat conftest.err >&5 |
13111 | echo "$as_me:13112: \$? = $ac_status" >&5 | |
13104 | echo "$as_me:13105: \$? = $ac_status" >&5 | |
13112 | 13105 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13113 | 13106 | # The compiler can only warn and ignore the option if not recognized |
13114 | 13107 | # So say no if there are warnings other than the usual output. |
13208 | 13201 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13209 | 13202 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13210 | 13203 | -e 's:$: $lt_compiler_flag:'` |
13211 | (eval echo "\"\$as_me:13212: $lt_compile\"" >&5) | |
13204 | (eval echo "\"\$as_me:13205: $lt_compile\"" >&5) | |
13212 | 13205 | (eval "$lt_compile" 2>out/conftest.err) |
13213 | 13206 | ac_status=$? |
13214 | 13207 | cat out/conftest.err >&5 |
13215 | echo "$as_me:13216: \$? = $ac_status" >&5 | |
13208 | echo "$as_me:13209: \$? = $ac_status" >&5 | |
13216 | 13209 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13217 | 13210 | then |
13218 | 13211 | # The compiler can only warn and ignore the option if not recognized |
14793 | 14786 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14794 | 14787 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14795 | 14788 | -e 's:$: $lt_compiler_flag:'` |
14796 | (eval echo "\"\$as_me:14797: $lt_compile\"" >&5) | |
14789 | (eval echo "\"\$as_me:14790: $lt_compile\"" >&5) | |
14797 | 14790 | (eval "$lt_compile" 2>conftest.err) |
14798 | 14791 | ac_status=$? |
14799 | 14792 | cat conftest.err >&5 |
14800 | echo "$as_me:14801: \$? = $ac_status" >&5 | |
14793 | echo "$as_me:14794: \$? = $ac_status" >&5 | |
14801 | 14794 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14802 | 14795 | # The compiler can only warn and ignore the option if not recognized |
14803 | 14796 | # So say no if there are warnings other than the usual output. |
14897 | 14890 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14898 | 14891 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14899 | 14892 | -e 's:$: $lt_compiler_flag:'` |
14900 | (eval echo "\"\$as_me:14901: $lt_compile\"" >&5) | |
14893 | (eval echo "\"\$as_me:14894: $lt_compile\"" >&5) | |
14901 | 14894 | (eval "$lt_compile" 2>out/conftest.err) |
14902 | 14895 | ac_status=$? |
14903 | 14896 | cat out/conftest.err >&5 |
14904 | echo "$as_me:14905: \$? = $ac_status" >&5 | |
14897 | echo "$as_me:14898: \$? = $ac_status" >&5 | |
14905 | 14898 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14906 | 14899 | then |
14907 | 14900 | # The compiler can only warn and ignore the option if not recognized |
17114 | 17107 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17115 | 17108 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17116 | 17109 | -e 's:$: $lt_compiler_flag:'` |
17117 | (eval echo "\"\$as_me:17118: $lt_compile\"" >&5) | |
17110 | (eval echo "\"\$as_me:17111: $lt_compile\"" >&5) | |
17118 | 17111 | (eval "$lt_compile" 2>conftest.err) |
17119 | 17112 | ac_status=$? |
17120 | 17113 | cat conftest.err >&5 |
17121 | echo "$as_me:17122: \$? = $ac_status" >&5 | |
17114 | echo "$as_me:17115: \$? = $ac_status" >&5 | |
17122 | 17115 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17123 | 17116 | # The compiler can only warn and ignore the option if not recognized |
17124 | 17117 | # So say no if there are warnings other than the usual output. |
17404 | 17397 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17405 | 17398 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17406 | 17399 | -e 's:$: $lt_compiler_flag:'` |
17407 | (eval echo "\"\$as_me:17408: $lt_compile\"" >&5) | |
17400 | (eval echo "\"\$as_me:17401: $lt_compile\"" >&5) | |
17408 | 17401 | (eval "$lt_compile" 2>conftest.err) |
17409 | 17402 | ac_status=$? |
17410 | 17403 | cat conftest.err >&5 |
17411 | echo "$as_me:17412: \$? = $ac_status" >&5 | |
17404 | echo "$as_me:17405: \$? = $ac_status" >&5 | |
17412 | 17405 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17413 | 17406 | # The compiler can only warn and ignore the option if not recognized |
17414 | 17407 | # So say no if there are warnings other than the usual output. |
17508 | 17501 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17509 | 17502 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17510 | 17503 | -e 's:$: $lt_compiler_flag:'` |
17511 | (eval echo "\"\$as_me:17512: $lt_compile\"" >&5) | |
17504 | (eval echo "\"\$as_me:17505: $lt_compile\"" >&5) | |
17512 | 17505 | (eval "$lt_compile" 2>out/conftest.err) |
17513 | 17506 | ac_status=$? |
17514 | 17507 | cat out/conftest.err >&5 |
17515 | echo "$as_me:17516: \$? = $ac_status" >&5 | |
17508 | echo "$as_me:17509: \$? = $ac_status" >&5 | |
17516 | 17509 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17517 | 17510 | then |
17518 | 17511 | # The compiler can only warn and ignore the option if not recognized |
20771 | 20764 | # Check for required packages |
20772 | 20765 | # *************************** |
20773 | 20766 | |
20774 | GTK_REQUIRED=2.12.0 | |
20775 | SEXY_REQUIRED=0.1.11 | |
20776 | GNOME_VFS_REQUIRED=2.4 | |
20767 | GTK_REQUIRED=2.13.6 | |
20768 | GCONF_REQUIRED=2.8 | |
20777 | 20769 | DBUS_GLIB_REQUIRED=0.71 |
20778 | POLKIT_DBUS_REQUIRED=0.7 | |
20779 | POLKIT_GRANT_REQUIRED=0.7 | |
20770 | POLKIT_DBUS_REQUIRED=0.9 | |
20771 | POLKIT_GRANT_REQUIRED=0.9 | |
20780 | 20772 | |
20781 | 20773 | |
20782 | 20774 | pkg_failed=no |
20890 | 20882 | |
20891 | 20883 | |
20892 | 20884 | pkg_failed=no |
20893 | { $as_echo "$as_me:$LINENO: checking for SEXY" >&5 | |
20894 | $as_echo_n "checking for SEXY... " >&6; } | |
20895 | ||
20896 | if test -n "$SEXY_CFLAGS"; then | |
20897 | pkg_cv_SEXY_CFLAGS="$SEXY_CFLAGS" | |
20885 | { $as_echo "$as_me:$LINENO: checking for GCONF" >&5 | |
20886 | $as_echo_n "checking for GCONF... " >&6; } | |
20887 | ||
20888 | if test -n "$GCONF_CFLAGS"; then | |
20889 | pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS" | |
20898 | 20890 | elif test -n "$PKG_CONFIG"; then |
20899 | 20891 | if test -n "$PKG_CONFIG" && \ |
20900 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsexy >= \$SEXY_REQUIRED\"") >&5 | |
20901 | ($PKG_CONFIG --exists --print-errors "libsexy >= $SEXY_REQUIRED") 2>&5 | |
20892 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= \$GCONF_REQUIRED\"") >&5 | |
20893 | ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= $GCONF_REQUIRED") 2>&5 | |
20902 | 20894 | ac_status=$? |
20903 | 20895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20904 | 20896 | (exit $ac_status); }; then |
20905 | pkg_cv_SEXY_CFLAGS=`$PKG_CONFIG --cflags "libsexy >= $SEXY_REQUIRED" 2>/dev/null` | |
20897 | pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= $GCONF_REQUIRED" 2>/dev/null` | |
20906 | 20898 | else |
20907 | 20899 | pkg_failed=yes |
20908 | 20900 | fi |
20909 | 20901 | else |
20910 | 20902 | pkg_failed=untried |
20911 | 20903 | fi |
20912 | if test -n "$SEXY_LIBS"; then | |
20913 | pkg_cv_SEXY_LIBS="$SEXY_LIBS" | |
20904 | if test -n "$GCONF_LIBS"; then | |
20905 | pkg_cv_GCONF_LIBS="$GCONF_LIBS" | |
20914 | 20906 | elif test -n "$PKG_CONFIG"; then |
20915 | 20907 | if test -n "$PKG_CONFIG" && \ |
20916 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsexy >= \$SEXY_REQUIRED\"") >&5 | |
20917 | ($PKG_CONFIG --exists --print-errors "libsexy >= $SEXY_REQUIRED") 2>&5 | |
20908 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= \$GCONF_REQUIRED\"") >&5 | |
20909 | ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= $GCONF_REQUIRED") 2>&5 | |
20918 | 20910 | ac_status=$? |
20919 | 20911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20920 | 20912 | (exit $ac_status); }; then |
20921 | pkg_cv_SEXY_LIBS=`$PKG_CONFIG --libs "libsexy >= $SEXY_REQUIRED" 2>/dev/null` | |
20913 | pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= $GCONF_REQUIRED" 2>/dev/null` | |
20922 | 20914 | else |
20923 | 20915 | pkg_failed=yes |
20924 | 20916 | fi |
20936 | 20928 | _pkg_short_errors_supported=no |
20937 | 20929 | fi |
20938 | 20930 | if test $_pkg_short_errors_supported = yes; then |
20939 | SEXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsexy >= $SEXY_REQUIRED" 2>&1` | |
20931 | GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0 >= $GCONF_REQUIRED" 2>&1` | |
20940 | 20932 | else |
20941 | SEXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsexy >= $SEXY_REQUIRED" 2>&1` | |
20933 | GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0 >= $GCONF_REQUIRED" 2>&1` | |
20942 | 20934 | fi |
20943 | 20935 | # Put the nasty error message in config.log where it belongs |
20944 | echo "$SEXY_PKG_ERRORS" >&5 | |
20945 | ||
20946 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libsexy >= $SEXY_REQUIRED) were not met: | |
20947 | ||
20948 | $SEXY_PKG_ERRORS | |
20936 | echo "$GCONF_PKG_ERRORS" >&5 | |
20937 | ||
20938 | { { $as_echo "$as_me:$LINENO: error: Package requirements (gconf-2.0 >= $GCONF_REQUIRED) were not met: | |
20939 | ||
20940 | $GCONF_PKG_ERRORS | |
20949 | 20941 | |
20950 | 20942 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
20951 | 20943 | installed software in a non-standard prefix. |
20952 | 20944 | |
20953 | Alternatively, you may set the environment variables SEXY_CFLAGS | |
20954 | and SEXY_LIBS to avoid the need to call pkg-config. | |
20945 | Alternatively, you may set the environment variables GCONF_CFLAGS | |
20946 | and GCONF_LIBS to avoid the need to call pkg-config. | |
20955 | 20947 | See the pkg-config man page for more details. |
20956 | 20948 | " >&5 |
20957 | $as_echo "$as_me: error: Package requirements (libsexy >= $SEXY_REQUIRED) were not met: | |
20958 | ||
20959 | $SEXY_PKG_ERRORS | |
20949 | $as_echo "$as_me: error: Package requirements (gconf-2.0 >= $GCONF_REQUIRED) were not met: | |
20950 | ||
20951 | $GCONF_PKG_ERRORS | |
20960 | 20952 | |
20961 | 20953 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
20962 | 20954 | installed software in a non-standard prefix. |
20963 | 20955 | |
20964 | Alternatively, you may set the environment variables SEXY_CFLAGS | |
20965 | and SEXY_LIBS to avoid the need to call pkg-config. | |
20956 | Alternatively, you may set the environment variables GCONF_CFLAGS | |
20957 | and GCONF_LIBS to avoid the need to call pkg-config. | |
20966 | 20958 | See the pkg-config man page for more details. |
20967 | 20959 | " >&2;} |
20968 | 20960 | { (exit 1); exit 1; }; } |
20971 | 20963 | is in your PATH or set the PKG_CONFIG environment variable to the full |
20972 | 20964 | path to pkg-config. |
20973 | 20965 | |
20974 | Alternatively, you may set the environment variables SEXY_CFLAGS | |
20975 | and SEXY_LIBS to avoid the need to call pkg-config. | |
20966 | Alternatively, you may set the environment variables GCONF_CFLAGS | |
20967 | and GCONF_LIBS to avoid the need to call pkg-config. | |
20976 | 20968 | See the pkg-config man page for more details. |
20977 | 20969 | |
20978 | 20970 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
20981 | 20973 | is in your PATH or set the PKG_CONFIG environment variable to the full |
20982 | 20974 | path to pkg-config. |
20983 | 20975 | |
20984 | Alternatively, you may set the environment variables SEXY_CFLAGS | |
20985 | and SEXY_LIBS to avoid the need to call pkg-config. | |
20976 | Alternatively, you may set the environment variables GCONF_CFLAGS | |
20977 | and GCONF_LIBS to avoid the need to call pkg-config. | |
20986 | 20978 | See the pkg-config man page for more details. |
20987 | 20979 | |
20988 | 20980 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
20989 | 20981 | See \`config.log' for more details." >&2;} |
20990 | 20982 | { (exit 1); exit 1; }; } |
20991 | 20983 | else |
20992 | SEXY_CFLAGS=$pkg_cv_SEXY_CFLAGS | |
20993 | SEXY_LIBS=$pkg_cv_SEXY_LIBS | |
20994 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20995 | $as_echo "yes" >&6; } | |
20996 | : | |
20997 | fi | |
20998 | ||
20999 | ||
21000 | ||
21001 | ||
21002 | pkg_failed=no | |
21003 | { $as_echo "$as_me:$LINENO: checking for GNOME_VFS" >&5 | |
21004 | $as_echo_n "checking for GNOME_VFS... " >&6; } | |
21005 | ||
21006 | if test -n "$GNOME_VFS_CFLAGS"; then | |
21007 | pkg_cv_GNOME_VFS_CFLAGS="$GNOME_VFS_CFLAGS" | |
21008 | elif test -n "$PKG_CONFIG"; then | |
21009 | if test -n "$PKG_CONFIG" && \ | |
21010 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= \$GNOME_VFS_REQUIRED\"") >&5 | |
21011 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED") 2>&5 | |
21012 | ac_status=$? | |
21013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21014 | (exit $ac_status); }; then | |
21015 | pkg_cv_GNOME_VFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED" 2>/dev/null` | |
21016 | else | |
21017 | pkg_failed=yes | |
21018 | fi | |
21019 | else | |
21020 | pkg_failed=untried | |
21021 | fi | |
21022 | if test -n "$GNOME_VFS_LIBS"; then | |
21023 | pkg_cv_GNOME_VFS_LIBS="$GNOME_VFS_LIBS" | |
21024 | elif test -n "$PKG_CONFIG"; then | |
21025 | if test -n "$PKG_CONFIG" && \ | |
21026 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= \$GNOME_VFS_REQUIRED\"") >&5 | |
21027 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED") 2>&5 | |
21028 | ac_status=$? | |
21029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21030 | (exit $ac_status); }; then | |
21031 | pkg_cv_GNOME_VFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED" 2>/dev/null` | |
21032 | else | |
21033 | pkg_failed=yes | |
21034 | fi | |
21035 | else | |
21036 | pkg_failed=untried | |
21037 | fi | |
21038 | ||
21039 | ||
21040 | ||
21041 | if test $pkg_failed = yes; then | |
21042 | ||
21043 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
21044 | _pkg_short_errors_supported=yes | |
21045 | else | |
21046 | _pkg_short_errors_supported=no | |
21047 | fi | |
21048 | if test $_pkg_short_errors_supported = yes; then | |
21049 | GNOME_VFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED" 2>&1` | |
21050 | else | |
21051 | GNOME_VFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED" 2>&1` | |
21052 | fi | |
21053 | # Put the nasty error message in config.log where it belongs | |
21054 | echo "$GNOME_VFS_PKG_ERRORS" >&5 | |
21055 | ||
21056 | { { $as_echo "$as_me:$LINENO: error: Package requirements (gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED) were not met: | |
21057 | ||
21058 | $GNOME_VFS_PKG_ERRORS | |
21059 | ||
21060 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
21061 | installed software in a non-standard prefix. | |
21062 | ||
21063 | Alternatively, you may set the environment variables GNOME_VFS_CFLAGS | |
21064 | and GNOME_VFS_LIBS to avoid the need to call pkg-config. | |
21065 | See the pkg-config man page for more details. | |
21066 | " >&5 | |
21067 | $as_echo "$as_me: error: Package requirements (gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED) were not met: | |
21068 | ||
21069 | $GNOME_VFS_PKG_ERRORS | |
21070 | ||
21071 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
21072 | installed software in a non-standard prefix. | |
21073 | ||
21074 | Alternatively, you may set the environment variables GNOME_VFS_CFLAGS | |
21075 | and GNOME_VFS_LIBS to avoid the need to call pkg-config. | |
21076 | See the pkg-config man page for more details. | |
21077 | " >&2;} | |
21078 | { (exit 1); exit 1; }; } | |
21079 | elif test $pkg_failed = untried; then | |
21080 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
21081 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
21082 | path to pkg-config. | |
21083 | ||
21084 | Alternatively, you may set the environment variables GNOME_VFS_CFLAGS | |
21085 | and GNOME_VFS_LIBS to avoid the need to call pkg-config. | |
21086 | See the pkg-config man page for more details. | |
21087 | ||
21088 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
21089 | See \`config.log' for more details." >&5 | |
21090 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
21091 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
21092 | path to pkg-config. | |
21093 | ||
21094 | Alternatively, you may set the environment variables GNOME_VFS_CFLAGS | |
21095 | and GNOME_VFS_LIBS to avoid the need to call pkg-config. | |
21096 | See the pkg-config man page for more details. | |
21097 | ||
21098 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
21099 | See \`config.log' for more details." >&2;} | |
21100 | { (exit 1); exit 1; }; } | |
21101 | else | |
21102 | GNOME_VFS_CFLAGS=$pkg_cv_GNOME_VFS_CFLAGS | |
21103 | GNOME_VFS_LIBS=$pkg_cv_GNOME_VFS_LIBS | |
20984 | GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS | |
20985 | GCONF_LIBS=$pkg_cv_GCONF_LIBS | |
21104 | 20986 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21105 | 20987 | $as_echo "yes" >&6; } |
21106 | 20988 | : |
24258 | 24140 | # report actual input values of CONFIG_FILES etc. instead of their |
24259 | 24141 | # values after options handling. |
24260 | 24142 | ac_log=" |
24261 | This file was extended by PolicyKit-gnome $as_me 0.9, which was | |
24143 | This file was extended by PolicyKit-gnome $as_me 0.9.2, which was | |
24262 | 24144 | generated by GNU Autoconf 2.62. Invocation command line was |
24263 | 24145 | |
24264 | 24146 | CONFIG_FILES = $CONFIG_FILES |
24311 | 24193 | _ACEOF |
24312 | 24194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
24313 | 24195 | ac_cs_version="\\ |
24314 | PolicyKit-gnome config.status 0.9 | |
24196 | PolicyKit-gnome config.status 0.9.2 | |
24315 | 24197 | configured by $0, generated by GNU Autoconf 2.62, |
24316 | 24198 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
24317 | 24199 |
0 | AC_INIT([PolicyKit-gnome],[0.9],[mailto:david@fubar.dk],[PolicyKit-gnome]) | |
0 | AC_INIT([PolicyKit-gnome],[0.9.2],[mailto:david@fubar.dk],[PolicyKit-gnome]) | |
1 | 1 | |
2 | 2 | AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip]) |
3 | 3 | |
121 | 121 | # Check for required packages |
122 | 122 | # *************************** |
123 | 123 | |
124 | GTK_REQUIRED=2.12.0 | |
125 | SEXY_REQUIRED=0.1.11 | |
126 | GNOME_VFS_REQUIRED=2.4 | |
124 | GTK_REQUIRED=2.13.6 | |
125 | GCONF_REQUIRED=2.8 | |
127 | 126 | DBUS_GLIB_REQUIRED=0.71 |
128 | POLKIT_DBUS_REQUIRED=0.7 | |
129 | POLKIT_GRANT_REQUIRED=0.7 | |
127 | POLKIT_DBUS_REQUIRED=0.9 | |
128 | POLKIT_GRANT_REQUIRED=0.9 | |
130 | 129 | |
131 | 130 | PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED) |
132 | 131 | AC_SUBST(GTK_CFLAGS) |
133 | 132 | AC_SUBST(GTK_LIBS) |
134 | 133 | |
135 | PKG_CHECK_MODULES(SEXY, libsexy >= $SEXY_REQUIRED) | |
136 | AC_SUBST(SEXY_CFLAGS) | |
137 | AC_SUBST(SEXY_LIBS) | |
138 | ||
139 | PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED) | |
140 | AC_SUBST(GNOME_VFS_CFLAGS) | |
141 | AC_SUBST(GNOME_VFS_LIBS) | |
134 | PKG_CHECK_MODULES(GCONF, gconf-2.0 >= $GCONF_REQUIRED) | |
135 | AC_SUBST(GCONF_CFLAGS) | |
136 | AC_SUBST(GCONF_LIBS) | |
142 | 137 | |
143 | 138 | PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= $DBUS_GLIB_REQUIRED) |
144 | 139 | AC_SUBST(DBUS_GLIB_CFLAGS) |
102 | 102 | F77 = @F77@ |
103 | 103 | FFLAGS = @FFLAGS@ |
104 | 104 | GCONFTOOL = @GCONFTOOL@ |
105 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
106 | GCONF_LIBS = @GCONF_LIBS@ | |
105 | 107 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
106 | 108 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
107 | 109 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
108 | 110 | GMOFILES = @GMOFILES@ |
109 | 111 | GMSGFMT = @GMSGFMT@ |
110 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
111 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
112 | 112 | GREP = @GREP@ |
113 | 113 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
114 | 114 | GTK_CFLAGS = @GTK_CFLAGS@ |
184 | 184 | RANLIB = @RANLIB@ |
185 | 185 | SED = @SED@ |
186 | 186 | SET_MAKE = @SET_MAKE@ |
187 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
188 | SEXY_LIBS = @SEXY_LIBS@ | |
189 | 187 | SHELL = @SHELL@ |
190 | 188 | STRIP = @STRIP@ |
191 | 189 | USE_NLS = @USE_NLS@ |
92 | 92 | F77 = @F77@ |
93 | 93 | FFLAGS = @FFLAGS@ |
94 | 94 | GCONFTOOL = @GCONFTOOL@ |
95 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
96 | GCONF_LIBS = @GCONF_LIBS@ | |
95 | 97 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
96 | 98 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
97 | 99 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
98 | 100 | GMOFILES = @GMOFILES@ |
99 | 101 | GMSGFMT = @GMSGFMT@ |
100 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
101 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
102 | 102 | GREP = @GREP@ |
103 | 103 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
104 | 104 | GTK_CFLAGS = @GTK_CFLAGS@ |
174 | 174 | RANLIB = @RANLIB@ |
175 | 175 | SED = @SED@ |
176 | 176 | SET_MAKE = @SET_MAKE@ |
177 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
178 | SEXY_LIBS = @SEXY_LIBS@ | |
179 | 177 | SHELL = @SHELL@ |
180 | 178 | STRIP = @STRIP@ |
181 | 179 | USE_NLS = @USE_NLS@ |
46 | 46 | <div class="refsynopsisdiv"> |
47 | 47 | <a name="PolKitGnomeAction.synopsis"></a><h2>Synopsis</h2> |
48 | 48 | <pre class="synopsis"> |
49 | <a | |
50 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeActionPrivate" | |
51 | >PolKitGnomeActionPrivate</a>; | |
52 | <a | |
53 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction-struct" | |
54 | >PolKitGnomeAction</a>; | |
55 | <a | |
56 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
57 | >PolKitGnomeAction</a>* <a | |
58 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-new" | |
59 | >polkit_gnome_action_new</a> (const <a | |
49 | <a class="link" href="PolKitGnomeAction.html#PolKitGnomeActionPrivate" title="PolKitGnomeActionPrivate">PolKitGnomeActionPrivate</a>; | |
50 | <a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction-struct" title="PolKitGnomeAction">PolKitGnomeAction</a>; | |
51 | <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a>* <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-new" title="polkit_gnome_action_new ()">polkit_gnome_action_new</a> (const <a | |
60 | 52 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
61 | 53 | >gchar</a> *name); |
62 | <a | |
63 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
64 | >PolKitGnomeAction</a>* <a | |
65 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-new-default" | |
66 | >polkit_gnome_action_new_default</a> (const <a | |
54 | <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a>* <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-new-default" title="polkit_gnome_action_new_default ()">polkit_gnome_action_new_default</a> (const <a | |
67 | 55 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
68 | 56 | >gchar</a> *name, |
69 | 57 | <a |
70 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
58 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
71 | 59 | >PolKitAction</a> *polkit_action, |
72 | 60 | const <a |
73 | 61 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
76 | 64 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
77 | 65 | >gchar</a> *tooltip); |
78 | 66 | <a |
79 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-result.html#PolKitResult" | |
80 | >PolKitResult</a> <a | |
81 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-get-polkit-result" | |
82 | >polkit_gnome_action_get_polkit_result</a> | |
83 | (<a | |
84 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
85 | >PolKitGnomeAction</a> *action); | |
67 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-result.html#PolKitResult" | |
68 | >PolKitResult</a> <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-get-polkit-result" title="polkit_gnome_action_get_polkit_result ()">polkit_gnome_action_get_polkit_result</a> | |
69 | (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action); | |
86 | 70 | <a |
87 | 71 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
88 | >gboolean</a> <a | |
89 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-get-sensitive" | |
90 | >polkit_gnome_action_get_sensitive</a> (<a | |
91 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
92 | >PolKitGnomeAction</a> *action); | |
93 | void <a | |
94 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-set-sensitive" | |
95 | >polkit_gnome_action_set_sensitive</a> (<a | |
96 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
97 | >PolKitGnomeAction</a> *action, | |
72 | >gboolean</a> <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-get-sensitive" title="polkit_gnome_action_get_sensitive ()">polkit_gnome_action_get_sensitive</a> (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action); | |
73 | void <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-set-sensitive" title="polkit_gnome_action_set_sensitive ()">polkit_gnome_action_set_sensitive</a> (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
98 | 74 | <a |
99 | 75 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
100 | 76 | >gboolean</a> sensitive); |
101 | 77 | <a |
102 | 78 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
103 | >gboolean</a> <a | |
104 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-get-visible" | |
105 | >polkit_gnome_action_get_visible</a> (<a | |
106 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
107 | >PolKitGnomeAction</a> *action); | |
108 | void <a | |
109 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-set-visible" | |
110 | >polkit_gnome_action_set_visible</a> (<a | |
111 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
112 | >PolKitGnomeAction</a> *action, | |
79 | >gboolean</a> <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-get-visible" title="polkit_gnome_action_get_visible ()">polkit_gnome_action_get_visible</a> (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action); | |
80 | void <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-set-visible" title="polkit_gnome_action_set_visible ()">polkit_gnome_action_set_visible</a> (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
113 | 81 | <a |
114 | 82 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
115 | 83 | >gboolean</a> visible); |
116 | 84 | <a |
117 | 85 | href="/usr/share/gtk-doc/html/gtk/GtkWidget.html" |
118 | >GtkWidget</a>* <a | |
119 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-create-button" | |
120 | >polkit_gnome_action_create_button</a> (<a | |
121 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
122 | >PolKitGnomeAction</a> *action); | |
86 | >GtkWidget</a>* <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-create-button" title="polkit_gnome_action_create_button ()">polkit_gnome_action_create_button</a> (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action); | |
123 | 87 | </pre> |
124 | 88 | </div> |
125 | 89 | <div class="refsect1" lang="en"> |
132 | 96 | href="/usr/share/gtk-doc/html/gtk/GtkAction.html" |
133 | 97 | >GtkAction</a> |
134 | 98 | +----PolKitGnomeAction |
135 | +----<a | |
136 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
137 | >PolKitGnomeToggleAction</a> | |
99 | +----<a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a> | |
138 | 100 | </pre> |
139 | 101 | </div> |
140 | 102 | <div class="refsect1" lang="en"> |
148 | 110 | <div class="refsect1" lang="en"> |
149 | 111 | <a name="PolKitGnomeAction.properties"></a><h2>Properties</h2> |
150 | 112 | <pre class="synopsis"> |
151 | "<a | |
152 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--auth-icon-name" | |
153 | >auth-icon-name</a>" <a | |
113 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--auth-icon-name" title='The "auth-icon-name" property'>auth-icon-name</a>" <a | |
154 | 114 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
155 | 115 | >gchar</a>* : Read / Write |
156 | "<a | |
157 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--auth-label" | |
158 | >auth-label</a>" <a | |
116 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--auth-label" title='The "auth-label" property'>auth-label</a>" <a | |
159 | 117 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
160 | 118 | >gchar</a>* : Read / Write |
161 | "<a | |
162 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--auth-sensitive" | |
163 | >auth-sensitive</a>" <a | |
119 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--auth-sensitive" title='The "auth-sensitive" property'>auth-sensitive</a>" <a | |
164 | 120 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
165 | 121 | >gboolean</a> : Read / Write |
166 | "<a | |
167 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--auth-short-label" | |
168 | >auth-short-label</a>" <a | |
122 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--auth-short-label" title='The "auth-short-label" property'>auth-short-label</a>" <a | |
169 | 123 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
170 | 124 | >gchar</a>* : Read / Write |
171 | "<a | |
172 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--auth-tooltip" | |
173 | >auth-tooltip</a>" <a | |
125 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--auth-tooltip" title='The "auth-tooltip" property'>auth-tooltip</a>" <a | |
174 | 126 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
175 | 127 | >gchar</a>* : Read / Write |
176 | "<a | |
177 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--auth-visible" | |
178 | >auth-visible</a>" <a | |
128 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--auth-visible" title='The "auth-visible" property'>auth-visible</a>" <a | |
179 | 129 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
180 | 130 | >gboolean</a> : Read / Write |
181 | "<a | |
182 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--master-sensitive" | |
183 | >master-sensitive</a>" <a | |
131 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--master-sensitive" title='The "master-sensitive" property'>master-sensitive</a>" <a | |
184 | 132 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
185 | 133 | >gboolean</a> : Read / Write |
186 | "<a | |
187 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--master-visible" | |
188 | >master-visible</a>" <a | |
134 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--master-visible" title='The "master-visible" property'>master-visible</a>" <a | |
189 | 135 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
190 | 136 | >gboolean</a> : Read / Write |
191 | "<a | |
192 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--no-icon-name" | |
193 | >no-icon-name</a>" <a | |
137 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--no-icon-name" title='The "no-icon-name" property'>no-icon-name</a>" <a | |
194 | 138 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
195 | 139 | >gchar</a>* : Read / Write |
196 | "<a | |
197 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--no-label" | |
198 | >no-label</a>" <a | |
140 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--no-label" title='The "no-label" property'>no-label</a>" <a | |
199 | 141 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
200 | 142 | >gchar</a>* : Read / Write |
201 | "<a | |
202 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--no-sensitive" | |
203 | >no-sensitive</a>" <a | |
143 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--no-sensitive" title='The "no-sensitive" property'>no-sensitive</a>" <a | |
204 | 144 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
205 | 145 | >gboolean</a> : Read / Write |
206 | "<a | |
207 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--no-short-label" | |
208 | >no-short-label</a>" <a | |
146 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--no-short-label" title='The "no-short-label" property'>no-short-label</a>" <a | |
209 | 147 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
210 | 148 | >gchar</a>* : Read / Write |
211 | "<a | |
212 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--no-tooltip" | |
213 | >no-tooltip</a>" <a | |
149 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--no-tooltip" title='The "no-tooltip" property'>no-tooltip</a>" <a | |
214 | 150 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
215 | 151 | >gchar</a>* : Read / Write |
216 | "<a | |
217 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--no-visible" | |
218 | >no-visible</a>" <a | |
152 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--no-visible" title='The "no-visible" property'>no-visible</a>" <a | |
219 | 153 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
220 | 154 | >gboolean</a> : Read / Write |
221 | "<a | |
222 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--polkit-action" | |
223 | >polkit-action</a>" <a | |
155 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--polkit-action" title='The "polkit-action" property'>polkit-action</a>" <a | |
224 | 156 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
225 | 157 | >gpointer</a> : Read / Write / Construct |
226 | "<a | |
227 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--polkit-action-sufficient" | |
228 | >polkit-action-sufficient</a>" <a | |
158 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--polkit-action-sufficient" title='The "polkit-action-sufficient" property'>polkit-action-sufficient</a>" <a | |
229 | 159 | href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray" |
230 | 160 | >GValueArray</a>* : Read / Write / Construct |
231 | "<a | |
232 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-icon-name" | |
233 | >self-blocked-icon-name</a>" <a | |
161 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-icon-name" title='The "self-blocked-icon-name" property'>self-blocked-icon-name</a>" <a | |
234 | 162 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
235 | 163 | >gchar</a>* : Read / Write |
236 | "<a | |
237 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-label" | |
238 | >self-blocked-label</a>" <a | |
164 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-label" title='The "self-blocked-label" property'>self-blocked-label</a>" <a | |
239 | 165 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
240 | 166 | >gchar</a>* : Read / Write |
241 | "<a | |
242 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-sensitive" | |
243 | >self-blocked-sensitive</a>" <a | |
167 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-sensitive" title='The "self-blocked-sensitive" property'>self-blocked-sensitive</a>" <a | |
244 | 168 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
245 | 169 | >gboolean</a> : Read / Write |
246 | "<a | |
247 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-short-label" | |
248 | >self-blocked-short-label</a>" <a | |
170 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-short-label" title='The "self-blocked-short-label" property'>self-blocked-short-label</a>" <a | |
249 | 171 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
250 | 172 | >gchar</a>* : Read / Write |
251 | "<a | |
252 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-tooltip" | |
253 | >self-blocked-tooltip</a>" <a | |
173 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-tooltip" title='The "self-blocked-tooltip" property'>self-blocked-tooltip</a>" <a | |
254 | 174 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
255 | 175 | >gchar</a>* : Read / Write |
256 | "<a | |
257 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-visible" | |
258 | >self-blocked-visible</a>" <a | |
176 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--self-blocked-visible" title='The "self-blocked-visible" property'>self-blocked-visible</a>" <a | |
259 | 177 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
260 | 178 | >gboolean</a> : Read / Write |
261 | "<a | |
262 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--target-pid" | |
263 | >target-pid</a>" <a | |
179 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--target-pid" title='The "target-pid" property'>target-pid</a>" <a | |
264 | 180 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint" |
265 | 181 | >guint</a> : Read / Write / Construct |
266 | "<a | |
267 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--yes-icon-name" | |
268 | >yes-icon-name</a>" <a | |
182 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--yes-icon-name" title='The "yes-icon-name" property'>yes-icon-name</a>" <a | |
269 | 183 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
270 | 184 | >gchar</a>* : Read / Write |
271 | "<a | |
272 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--yes-label" | |
273 | >yes-label</a>" <a | |
185 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--yes-label" title='The "yes-label" property'>yes-label</a>" <a | |
274 | 186 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
275 | 187 | >gchar</a>* : Read / Write |
276 | "<a | |
277 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--yes-sensitive" | |
278 | >yes-sensitive</a>" <a | |
188 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--yes-sensitive" title='The "yes-sensitive" property'>yes-sensitive</a>" <a | |
279 | 189 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
280 | 190 | >gboolean</a> : Read / Write |
281 | "<a | |
282 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--yes-short-label" | |
283 | >yes-short-label</a>" <a | |
191 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--yes-short-label" title='The "yes-short-label" property'>yes-short-label</a>" <a | |
284 | 192 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
285 | 193 | >gchar</a>* : Read / Write |
286 | "<a | |
287 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--yes-tooltip" | |
288 | >yes-tooltip</a>" <a | |
194 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--yes-tooltip" title='The "yes-tooltip" property'>yes-tooltip</a>" <a | |
289 | 195 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
290 | 196 | >gchar</a>* : Read / Write |
291 | "<a | |
292 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction--yes-visible" | |
293 | >yes-visible</a>" <a | |
197 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction--yes-visible" title='The "yes-visible" property'>yes-visible</a>" <a | |
294 | 198 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
295 | 199 | >gboolean</a> : Read / Write |
296 | 200 | </pre> |
298 | 202 | <div class="refsect1" lang="en"> |
299 | 203 | <a name="PolKitGnomeAction.signals"></a><h2>Signals</h2> |
300 | 204 | <pre class="synopsis"> |
301 | "<a | |
302 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction-auth-end" | |
303 | >auth-end</a>" : Run Last | |
304 | "<a | |
305 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction-auth-start" | |
306 | >auth-start</a>" : Run Last | |
307 | "<a | |
308 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#PolKitGnomeAction-polkit-result-changed" | |
309 | >polkit-result-changed</a>" : Run Last | |
205 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction-auth-end" title='The "auth-end" signal'>auth-end</a>" : Run Last | |
206 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction-auth-start" title='The "auth-start" signal'>auth-start</a>" : Run Last | |
207 | "<a class="link" href="PolKitGnomeAction.html#PolKitGnomeAction-polkit-result-changed" title='The "polkit-result-changed" signal'>polkit-result-changed</a>" : Run Last | |
310 | 208 | </pre> |
311 | 209 | </div> |
312 | 210 | <div class="refsect1" lang="en"> |
323 | 221 | activate its action. |
324 | 222 | </p> |
325 | 223 | <p> |
326 | Instances of <a | |
327 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
328 | ><span class="type">PolKitGnomeAction</span></a> class updates the label, tooltip, | |
224 | Instances of <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> class updates the label, tooltip, | |
329 | 225 | icon-name, visible and properties of the parent <a |
330 | 226 | href="/usr/share/gtk-doc/html/gtk/GtkAction.html" |
331 | 227 | ><span class="type">GtkAction</span></a> instance |
332 | 228 | according to what result PolicyKit gives about a given |
333 | 229 | <a |
334 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
335 | ><span class="type">PolKitAction</span></a> object. The <a | |
336 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
337 | ><span class="type">PolKitGnomeContext</span></a> class is used | |
230 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
231 | ><span class="type">PolKitAction</span></a> object. The <a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext"><span class="type">PolKitGnomeContext</span></a> class is used | |
338 | 232 | internally to track changes. This means that external events (such |
339 | 233 | as the editing of the /etc/PolicyKit/PolicyKit.conf file, |
340 | 234 | ConsoleKit session activity changes or if the user gains a |
342 | 236 | connected proxy widgets, to be updated. |
343 | 237 | </p> |
344 | 238 | <p> |
345 | In addition, the <a | |
346 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
347 | ><span class="type">PolKitGnomeAction</span></a> class intercepts the ::activate | |
239 | In addition, the <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> class intercepts the ::activate | |
348 | 240 | signal defined in <a |
349 | 241 | href="/usr/share/gtk-doc/html/gtk/GtkAction.html" |
350 | 242 | ><span class="type">GtkAction</span></a>. When the result from PolicyKit is |
351 | 243 | yes, the signal is propagated. If the result is auth, |
352 | 244 | <code class="function">polkit_gnome_auth_show_dialog()</code> will be used to bring up an |
353 | 245 | authentication dialog for the given <a |
354 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
246 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
355 | 247 | ><span class="type">PolKitAction</span></a>. If the user |
356 | 248 | succesfully gained the privilege, a ::activate signal will be |
357 | 249 | synthesized. If the result is no, the signal is also propagated. |
358 | 250 | </p> |
359 | 251 | <p> |
360 | 252 | As a result, everything happens under the covers; the application |
361 | programmer using <a | |
362 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
363 | ><span class="type">PolKitGnomeAction</span></a> will only get the ::activate | |
253 | programmer using <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> will only get the ::activate | |
364 | 254 | signal when the answer from PolicyKit is yes and as such don't have |
365 | 255 | to worry about bringing up authentication dialogs if the property |
366 | 256 | "no-sensitive" is set to <a |
368 | 258 | ><span class="type">FALSE</span></a>. |
369 | 259 | </p> |
370 | 260 | <p> |
371 | When an authentication dialog is show, the <a | |
372 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
373 | ><span class="type">PolKitGnomeAction</span></a> class | |
261 | When an authentication dialog is show, the <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> class | |
374 | 262 | will pass the XID of the top-level window that the proxy widget |
375 | 263 | causing the activation to <code class="function">polkit_gnome_auth_show_dialog()</code>. |
376 | 264 | </p> |
377 | 265 | <p> |
378 | An example of how to use <a | |
379 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
380 | ><span class="type">PolKitGnomeAction</span></a> follows. First, build | |
266 | An example of how to use <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> follows. First, build | |
381 | 267 | the following program |
382 | 268 | </p> |
383 | 269 | <p> |
908 | 794 | <hr> |
909 | 795 | <div class="refsect2" lang="en"> |
910 | 796 | <a name="polkit-gnome-action-new"></a><h3>polkit_gnome_action_new ()</h3> |
911 | <pre class="programlisting"><a | |
912 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
913 | >PolKitGnomeAction</a>* polkit_gnome_action_new (const <a | |
797 | <pre class="programlisting"><a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a>* polkit_gnome_action_new (const <a | |
914 | 798 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
915 | 799 | >gchar</a> *name);</pre> |
916 | 800 | <p> |
917 | Creates a new <a | |
918 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
919 | ><span class="type">PolKitGnomeAction</span></a> object. The typical use for this | |
801 | Creates a new <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object. The typical use for this | |
920 | 802 | function is for specialized use where |
921 | <a | |
922 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html#polkit-gnome-action-new-default" | |
923 | ><code class="function">polkit_gnome_action_new_default()</code></a> does not meet the needs of the | |
803 | <a class="link" href="PolKitGnomeAction.html#polkit-gnome-action-new-default" title="polkit_gnome_action_new_default ()"><code class="function">polkit_gnome_action_new_default()</code></a> does not meet the needs of the | |
924 | 804 | application. A short example of the usage of this contructor |
925 | 805 | follows. |
926 | 806 | </p> |
929 | 809 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
930 | 810 | ><span class="type">NULL</span></a> the behavior is similar to |
931 | 811 | as if a <a |
932 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
812 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
933 | 813 | ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>. |
934 | 814 | </p> |
935 | 815 | <p> |
937 | 817 | <a |
938 | 818 | href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray" |
939 | 819 | ><span class="type">GValueArray</span></a> of pointers to <a |
940 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
820 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
941 | 821 | ><span class="type">PolKitAction</span></a> objects. The semantics of |
942 | 822 | this property is that if the user is authorized for any of the |
943 | 823 | given actions in 'polkit-action-sufficient' then the behavior is |
951 | 831 | priority of any process). As the latter clearly implies the former, |
952 | 832 | one would set the latter in the 'polkit-action-sufficient' |
953 | 833 | property when constructing a <a |
954 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
834 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
955 | 835 | ><span class="type">PolKitAction</span></a> for the former. |
956 | 836 | </p> |
957 | 837 | <p> |
995 | 875 | <col align="left" valign="top"> |
996 | 876 | <tbody> |
997 | 877 | <tr> |
998 | <td><p><span class="term"><em class="parameter"><code>name</code></em>:</span></p></td> | |
878 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> | |
999 | 879 | <td> A unique name for the action |
1000 | 880 | </td> |
1001 | 881 | </tr> |
1002 | 882 | <tr> |
1003 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
1004 | <td> a new <a | |
1005 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1006 | ><span class="type">PolKitGnomeAction</span></a> or <a | |
883 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
884 | <td> a new <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> or <a | |
1007 | 885 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
1008 | 886 | ><span class="type">NULL</span></a> if error is set |
1009 | 887 | </td> |
1014 | 892 | <hr> |
1015 | 893 | <div class="refsect2" lang="en"> |
1016 | 894 | <a name="polkit-gnome-action-new-default"></a><h3>polkit_gnome_action_new_default ()</h3> |
1017 | <pre class="programlisting"><a | |
1018 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1019 | >PolKitGnomeAction</a>* polkit_gnome_action_new_default (const <a | |
895 | <pre class="programlisting"><a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a>* polkit_gnome_action_new_default (const <a | |
1020 | 896 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
1021 | 897 | >gchar</a> *name, |
1022 | 898 | <a |
1023 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
899 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1024 | 900 | >PolKitAction</a> *polkit_action, |
1025 | 901 | const <a |
1026 | 902 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
1029 | 905 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
1030 | 906 | >gchar</a> *tooltip);</pre> |
1031 | 907 | <p> |
1032 | Creates a new <a | |
1033 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1034 | ><span class="type">PolKitGnomeAction</span></a> object with the default | |
908 | Creates a new <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object with the default | |
1035 | 909 | behavior for a given <a |
1036 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
910 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1037 | 911 | ><span class="type">PolKitAction</span></a> object. |
1038 | 912 | </p> |
1039 | 913 | <p> |
1056 | 930 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
1057 | 931 | ><span class="type">NULL</span></a> the behavior is similar to as |
1058 | 932 | if a <a |
1059 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
933 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1060 | 934 | ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.</p> |
1061 | 935 | <p> |
1062 | 936 | |
1065 | 939 | <col align="left" valign="top"> |
1066 | 940 | <tbody> |
1067 | 941 | <tr> |
1068 | <td><p><span class="term"><em class="parameter"><code>name</code></em>:</span></p></td> | |
942 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> | |
1069 | 943 | <td> A unique name for the action |
1070 | 944 | </td> |
1071 | 945 | </tr> |
1072 | 946 | <tr> |
1073 | <td><p><span class="term"><em class="parameter"><code>polkit_action</code></em>:</span></p></td> | |
947 | <td><p><span class="term"><em class="parameter"><code>polkit_action</code></em> :</span></p></td> | |
1074 | 948 | <td> the <a |
1075 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
949 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1076 | 950 | ><span class="type">PolKitAction</span></a> to track |
1077 | 951 | </td> |
1078 | 952 | </tr> |
1079 | 953 | <tr> |
1080 | <td><p><span class="term"><em class="parameter"><code>label</code></em>:</span></p></td> | |
954 | <td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td> | |
1081 | 955 | <td> the label to use (will also apply to short-label) |
1082 | 956 | </td> |
1083 | 957 | </tr> |
1084 | 958 | <tr> |
1085 | <td><p><span class="term"><em class="parameter"><code>tooltip</code></em>:</span></p></td> | |
959 | <td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td> | |
1086 | 960 | <td> the tool tip to use |
1087 | 961 | </td> |
1088 | 962 | </tr> |
1089 | 963 | <tr> |
1090 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
1091 | <td> a new <a | |
1092 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1093 | ><span class="type">PolKitGnomeAction</span></a> or <a | |
964 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
965 | <td> a new <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> or <a | |
1094 | 966 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
1095 | 967 | ><span class="type">NULL</span></a> if error is set |
1096 | 968 | </td> |
1102 | 974 | <div class="refsect2" lang="en"> |
1103 | 975 | <a name="polkit-gnome-action-get-polkit-result"></a><h3>polkit_gnome_action_get_polkit_result ()</h3> |
1104 | 976 | <pre class="programlisting"><a |
1105 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-result.html#PolKitResult" | |
977 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-result.html#PolKitResult" | |
1106 | 978 | >PolKitResult</a> polkit_gnome_action_get_polkit_result |
1107 | (<a | |
1108 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1109 | >PolKitGnomeAction</a> *action);</pre> | |
979 | (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action);</pre> | |
1110 | 980 | <p> |
1111 | 981 | Gets the <a |
1112 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-result.html#PolKitResult" | |
982 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-result.html#PolKitResult" | |
1113 | 983 | ><span class="type">PolKitResult</span></a> that indicates whether the user is |
1114 | 984 | privileged to do the <a |
1115 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
985 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1116 | 986 | ><span class="type">PolKitAction</span></a> associated with this |
1117 | <a | |
1118 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1119 | ><span class="type">PolKitGnomeAction</span></a> object.</p> | |
987 | <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object.</p> | |
1120 | 988 | <p> |
1121 | 989 | |
1122 | 990 | </p> |
1124 | 992 | <col align="left" valign="top"> |
1125 | 993 | <tbody> |
1126 | 994 | <tr> |
1127 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
995 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
996 | <td> The <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object | |
997 | </td> | |
998 | </tr> | |
999 | <tr> | |
1000 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
1128 | 1001 | <td> The <a |
1129 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1130 | ><span class="type">PolKitGnomeAction</span></a> object | |
1131 | </td> | |
1132 | </tr> | |
1133 | <tr> | |
1134 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
1135 | <td> The <a | |
1136 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
1002 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1137 | 1003 | ><span class="type">PolKitAction</span></a> object. The caller shall not unref this object. |
1138 | 1004 | </td> |
1139 | 1005 | </tr> |
1145 | 1011 | <a name="polkit-gnome-action-get-sensitive"></a><h3>polkit_gnome_action_get_sensitive ()</h3> |
1146 | 1012 | <pre class="programlisting"><a |
1147 | 1013 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
1148 | >gboolean</a> polkit_gnome_action_get_sensitive (<a | |
1149 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1150 | >PolKitGnomeAction</a> *action);</pre> | |
1014 | >gboolean</a> polkit_gnome_action_get_sensitive (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action);</pre> | |
1151 | 1015 | <p> |
1152 | 1016 | Get the master sensitivity, see PolKitGnomeAction:master-sensitive: |
1153 | 1017 | for details.</p> |
1158 | 1022 | <col align="left" valign="top"> |
1159 | 1023 | <tbody> |
1160 | 1024 | <tr> |
1161 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1162 | <td> The <a | |
1163 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1164 | ><span class="type">PolKitGnomeAction</span></a> object | |
1165 | </td> | |
1166 | </tr> | |
1167 | <tr> | |
1168 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
1025 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1026 | <td> The <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object | |
1027 | </td> | |
1028 | </tr> | |
1029 | <tr> | |
1030 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
1169 | 1031 | <td> the master sensitivity |
1170 | 1032 | </td> |
1171 | 1033 | </tr> |
1175 | 1037 | <hr> |
1176 | 1038 | <div class="refsect2" lang="en"> |
1177 | 1039 | <a name="polkit-gnome-action-set-sensitive"></a><h3>polkit_gnome_action_set_sensitive ()</h3> |
1178 | <pre class="programlisting">void polkit_gnome_action_set_sensitive (<a | |
1179 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1180 | >PolKitGnomeAction</a> *action, | |
1040 | <pre class="programlisting">void polkit_gnome_action_set_sensitive (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
1181 | 1041 | <a |
1182 | 1042 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
1183 | 1043 | >gboolean</a> sensitive);</pre> |
1191 | 1051 | <col align="left" valign="top"> |
1192 | 1052 | <tbody> |
1193 | 1053 | <tr> |
1194 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1195 | <td> The <a | |
1196 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1197 | ><span class="type">PolKitGnomeAction</span></a> object | |
1198 | </td> | |
1199 | </tr> | |
1200 | <tr> | |
1201 | <td><p><span class="term"><em class="parameter"><code>sensitive</code></em>:</span></p></td> | |
1054 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1055 | <td> The <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object | |
1056 | </td> | |
1057 | </tr> | |
1058 | <tr> | |
1059 | <td><p><span class="term"><em class="parameter"><code>sensitive</code></em> :</span></p></td> | |
1202 | 1060 | <td> master sensitivity |
1203 | 1061 | </td> |
1204 | 1062 | </tr> |
1210 | 1068 | <a name="polkit-gnome-action-get-visible"></a><h3>polkit_gnome_action_get_visible ()</h3> |
1211 | 1069 | <pre class="programlisting"><a |
1212 | 1070 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
1213 | >gboolean</a> polkit_gnome_action_get_visible (<a | |
1214 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1215 | >PolKitGnomeAction</a> *action);</pre> | |
1071 | >gboolean</a> polkit_gnome_action_get_visible (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action);</pre> | |
1216 | 1072 | <p> |
1217 | 1073 | Get the master visibility, see PolKitGnomeAction:master-visible: |
1218 | 1074 | for details.</p> |
1223 | 1079 | <col align="left" valign="top"> |
1224 | 1080 | <tbody> |
1225 | 1081 | <tr> |
1226 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1227 | <td> The <a | |
1228 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1229 | ><span class="type">PolKitGnomeAction</span></a> object | |
1230 | </td> | |
1231 | </tr> | |
1232 | <tr> | |
1233 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
1082 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1083 | <td> The <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object | |
1084 | </td> | |
1085 | </tr> | |
1086 | <tr> | |
1087 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
1234 | 1088 | <td> the master visibility |
1235 | 1089 | </td> |
1236 | 1090 | </tr> |
1240 | 1094 | <hr> |
1241 | 1095 | <div class="refsect2" lang="en"> |
1242 | 1096 | <a name="polkit-gnome-action-set-visible"></a><h3>polkit_gnome_action_set_visible ()</h3> |
1243 | <pre class="programlisting">void polkit_gnome_action_set_visible (<a | |
1244 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1245 | >PolKitGnomeAction</a> *action, | |
1097 | <pre class="programlisting">void polkit_gnome_action_set_visible (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
1246 | 1098 | <a |
1247 | 1099 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
1248 | 1100 | >gboolean</a> visible);</pre> |
1256 | 1108 | <col align="left" valign="top"> |
1257 | 1109 | <tbody> |
1258 | 1110 | <tr> |
1259 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1260 | <td> The <a | |
1261 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1262 | ><span class="type">PolKitGnomeAction</span></a> object | |
1263 | </td> | |
1264 | </tr> | |
1265 | <tr> | |
1266 | <td><p><span class="term"><em class="parameter"><code>visible</code></em>:</span></p></td> | |
1111 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1112 | <td> The <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object | |
1113 | </td> | |
1114 | </tr> | |
1115 | <tr> | |
1116 | <td><p><span class="term"><em class="parameter"><code>visible</code></em> :</span></p></td> | |
1267 | 1117 | <td> master visibility |
1268 | 1118 | </td> |
1269 | 1119 | </tr> |
1275 | 1125 | <a name="polkit-gnome-action-create-button"></a><h3>polkit_gnome_action_create_button ()</h3> |
1276 | 1126 | <pre class="programlisting"><a |
1277 | 1127 | href="/usr/share/gtk-doc/html/gtk/GtkWidget.html" |
1278 | >GtkWidget</a>* polkit_gnome_action_create_button (<a | |
1279 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1280 | >PolKitGnomeAction</a> *action);</pre> | |
1128 | >GtkWidget</a>* polkit_gnome_action_create_button (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action);</pre> | |
1281 | 1129 | <p> |
1282 | 1130 | Create a button for the given action that displays the label, |
1283 | 1131 | tooltip and icon_name corresponding to whether the state, according |
1289 | 1137 | <col align="left" valign="top"> |
1290 | 1138 | <tbody> |
1291 | 1139 | <tr> |
1292 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1293 | <td> The <a | |
1294 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1295 | ><span class="type">PolKitGnomeAction</span></a> object | |
1296 | </td> | |
1297 | </tr> | |
1298 | <tr> | |
1299 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
1140 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1141 | <td> The <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> object | |
1142 | </td> | |
1143 | </tr> | |
1144 | <tr> | |
1145 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
1300 | 1146 | <td> A <a |
1301 | 1147 | href="/usr/share/gtk-doc/html/gtk/GtkButton.html" |
1302 | 1148 | ><span class="type">GtkButton</span></a> instance connected to the action |
1571 | 1417 | <a name="PolKitGnomeAction.signal-details"></a><h2>Signal Details</h2> |
1572 | 1418 | <div class="refsect2" lang="en"> |
1573 | 1419 | <a name="PolKitGnomeAction-auth-end"></a><h3>The <code class="literal">"auth-end"</code> signal</h3> |
1574 | <pre class="programlisting">void user_function (<a | |
1575 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1576 | >PolKitGnomeAction</a> *action, | |
1420 | <pre class="programlisting">void user_function (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
1577 | 1421 | <a |
1578 | 1422 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
1579 | 1423 | >gboolean</a> gained_privilege, |
1591 | 1435 | <col align="left" valign="top"> |
1592 | 1436 | <tbody> |
1593 | 1437 | <tr> |
1594 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1438 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1595 | 1439 | <td> the object |
1596 | 1440 | </td> |
1597 | 1441 | </tr> |
1598 | 1442 | <tr> |
1599 | <td><p><span class="term"><em class="parameter"><code>gained_privilege</code></em>:</span></p></td> | |
1443 | <td><p><span class="term"><em class="parameter"><code>gained_privilege</code></em> :</span></p></td> | |
1600 | 1444 | <td> whether the privilege was gained |
1601 | 1445 | </td> |
1602 | 1446 | </tr> |
1603 | 1447 | <tr> |
1604 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
1448 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
1605 | 1449 | <td>user data set when the signal handler was connected.</td> |
1606 | 1450 | </tr> |
1607 | 1451 | </tbody> |
1610 | 1454 | <hr> |
1611 | 1455 | <div class="refsect2" lang="en"> |
1612 | 1456 | <a name="PolKitGnomeAction-auth-start"></a><h3>The <code class="literal">"auth-start"</code> signal</h3> |
1613 | <pre class="programlisting">void user_function (<a | |
1614 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1615 | >PolKitGnomeAction</a> *action, | |
1457 | <pre class="programlisting">void user_function (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
1616 | 1458 | <a |
1617 | 1459 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
1618 | 1460 | >gpointer</a> user_data) : Run Last</pre> |
1626 | 1468 | <col align="left" valign="top"> |
1627 | 1469 | <tbody> |
1628 | 1470 | <tr> |
1629 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1471 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1630 | 1472 | <td> the object |
1631 | 1473 | </td> |
1632 | 1474 | </tr> |
1633 | 1475 | <tr> |
1634 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
1476 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
1635 | 1477 | <td>user data set when the signal handler was connected.</td> |
1636 | 1478 | </tr> |
1637 | 1479 | </tbody> |
1640 | 1482 | <hr> |
1641 | 1483 | <div class="refsect2" lang="en"> |
1642 | 1484 | <a name="PolKitGnomeAction-polkit-result-changed"></a><h3>The <code class="literal">"polkit-result-changed"</code> signal</h3> |
1643 | <pre class="programlisting">void user_function (<a | |
1644 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1645 | >PolKitGnomeAction</a> *action, | |
1485 | <pre class="programlisting">void user_function (<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> *action, | |
1646 | 1486 | <a |
1647 | 1487 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" |
1648 | 1488 | >gint</a> current_result, |
1653 | 1493 | The ::polkit-result-changed signal is emitted when the |
1654 | 1494 | PolicyKit result changes. This can happen when external |
1655 | 1495 | factors (config file, ConsoleKit, privilege granted / |
1656 | revoked) change since the <a | |
1657 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
1658 | ><span class="type">PolKitGnomeAction</span></a> class listens | |
1659 | for events using the <a | |
1660 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
1661 | ><span class="type">PolKitGnomeContext</span></a> class.</p> | |
1496 | revoked) change since the <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a> class listens | |
1497 | for events using the <a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext"><span class="type">PolKitGnomeContext</span></a> class.</p> | |
1662 | 1498 | <p> |
1663 | 1499 | |
1664 | 1500 | </p> |
1666 | 1502 | <col align="left" valign="top"> |
1667 | 1503 | <tbody> |
1668 | 1504 | <tr> |
1669 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
1505 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
1670 | 1506 | <td> the object |
1671 | 1507 | </td> |
1672 | 1508 | </tr> |
1673 | 1509 | <tr> |
1674 | <td><p><span class="term"><em class="parameter"><code>current_result</code></em>:</span></p></td> | |
1510 | <td><p><span class="term"><em class="parameter"><code>current_result</code></em> :</span></p></td> | |
1675 | 1511 | <td> current <a |
1676 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-result.html#PolKitResult" | |
1512 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-result.html#PolKitResult" | |
1677 | 1513 | ><span class="type">PolKitResult</span></a> from PolicyKit regarding given <a |
1678 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
1514 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
1679 | 1515 | ><span class="type">PolKitAction</span></a> object |
1680 | 1516 | </td> |
1681 | 1517 | </tr> |
1682 | 1518 | <tr> |
1683 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
1519 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
1684 | 1520 | <td>user data set when the signal handler was connected.</td> |
1685 | 1521 | </tr> |
1686 | 1522 | </tbody> |
42 | 42 | <div class="refsynopsisdiv"> |
43 | 43 | <a name="PolKitGnomeContext.synopsis"></a><h2>Synopsis</h2> |
44 | 44 | <pre class="synopsis"> |
45 | #define <a | |
46 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#POLKIT-GNOME-CONTEXT-ERROR:CAPS" | |
47 | >POLKIT_GNOME_CONTEXT_ERROR</a> | |
48 | enum <a | |
49 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#PolKitGnomeContextError" | |
50 | >PolKitGnomeContextError</a>; | |
51 | <a | |
52 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#PolKitGnomeContextPrivate" | |
53 | >PolKitGnomeContextPrivate</a>; | |
54 | <a | |
55 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#PolKitGnomeContext-struct" | |
56 | >PolKitGnomeContext</a>; | |
57 | <a | |
58 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
59 | >PolKitGnomeContext</a>* <a | |
60 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#polkit-gnome-context-get" | |
61 | >polkit_gnome_context_get</a> (<a | |
45 | #define <a class="link" href="PolKitGnomeContext.html#POLKIT-GNOME-CONTEXT-ERROR:CAPS" title="POLKIT_GNOME_CONTEXT_ERROR">POLKIT_GNOME_CONTEXT_ERROR</a> | |
46 | enum <a class="link" href="PolKitGnomeContext.html#PolKitGnomeContextError" title="enum PolKitGnomeContextError">PolKitGnomeContextError</a>; | |
47 | <a class="link" href="PolKitGnomeContext.html#PolKitGnomeContextPrivate" title="PolKitGnomeContextPrivate">PolKitGnomeContextPrivate</a>; | |
48 | <a class="link" href="PolKitGnomeContext.html#PolKitGnomeContext-struct" title="PolKitGnomeContext">PolKitGnomeContext</a>; | |
49 | <a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext">PolKitGnomeContext</a>* <a class="link" href="PolKitGnomeContext.html#polkit-gnome-context-get" title="polkit_gnome_context_get ()">polkit_gnome_context_get</a> (<a | |
62 | 50 | href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError" |
63 | 51 | >GError</a> **error); |
64 | 52 | <a |
65 | 53 | href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark" |
66 | >GQuark</a> <a | |
67 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#polkit-gnome-context-error-quark" | |
68 | >polkit_gnome_context_error_quark</a> (void); | |
54 | >GQuark</a> <a class="link" href="PolKitGnomeContext.html#polkit-gnome-context-error-quark" title="polkit_gnome_context_error_quark ()">polkit_gnome_context_error_quark</a> (void); | |
69 | 55 | </pre> |
70 | 56 | </div> |
71 | 57 | <div class="refsect1" lang="en"> |
80 | 66 | <div class="refsect1" lang="en"> |
81 | 67 | <a name="PolKitGnomeContext.signals"></a><h2>Signals</h2> |
82 | 68 | <pre class="synopsis"> |
83 | "<a | |
84 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#PolKitGnomeContext-config-changed" | |
85 | >config-changed</a>" : Run Last | |
86 | "<a | |
87 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#PolKitGnomeContext-console-kit-db-changed" | |
88 | >console-kit-db-changed</a>" : Run Last | |
69 | "<a class="link" href="PolKitGnomeContext.html#PolKitGnomeContext-config-changed" title='The "config-changed" signal'>config-changed</a>" : Run Last | |
70 | "<a class="link" href="PolKitGnomeContext.html#PolKitGnomeContext-console-kit-db-changed" title='The "console-kit-db-changed" signal'>console-kit-db-changed</a>" : Run Last | |
89 | 71 | </pre> |
90 | 72 | </div> |
91 | 73 | <div class="refsect1" lang="en"> |
107 | 89 | callers will share the underlying <a |
108 | 90 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#PolKitContext" |
109 | 91 | ><span class="type">PolKitContext</span></a> and <a |
110 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-dbus.html#PolKitTracker" | |
92 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-tracker.html#PolKitTracker" | |
111 | 93 | ><span class="type">PolKitTracker</span></a> |
112 | 94 | objects. Do not use any of the life cycle methods of these objects; |
113 | 95 | only use them to gather information.</p> |
123 | 105 | </pre> |
124 | 106 | <p> |
125 | 107 | Error domain for using the GNOME PolicyKit context. Errors in this |
126 | domain will be from the <a | |
127 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html#PolKitGnomeContextError" | |
128 | ><span class="type">PolKitGnomeContextError</span></a> enumeration. See | |
108 | domain will be from the <a class="link" href="PolKitGnomeContext.html#PolKitGnomeContextError" title="enum PolKitGnomeContextError"><span class="type">PolKitGnomeContextError</span></a> enumeration. See | |
129 | 109 | <a |
130 | 110 | href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError" |
131 | 111 | ><span class="type">GError</span></a> for information on error domains.</p> |
142 | 122 | } PolKitGnomeContextError; |
143 | 123 | </pre> |
144 | 124 | <p> |
145 | Error codes describing how <a | |
146 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
147 | ><span class="type">PolKitGnomeContext</span></a> can fail.</p> | |
125 | Error codes describing how <a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext"><span class="type">PolKitGnomeContext</span></a> can fail.</p> | |
148 | 126 | <p> |
149 | 127 | |
150 | 128 | </p> |
177 | 155 | Provide access to <a |
178 | 156 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#PolKitContext" |
179 | 157 | ><span class="type">PolKitContext</span></a> and <a |
180 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-dbus.html#PolKitTracker" | |
158 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-tracker.html#PolKitTracker" | |
181 | 159 | ><span class="type">PolKitTracker</span></a> instances |
182 | 160 | shared among many callers.</p> |
183 | 161 | <p> |
189 | 167 | <tr> |
190 | 168 | <td><p><span class="term"><a |
191 | 169 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#PolKitContext" |
192 | >PolKitContext</a>*<em class="structfield"><code>pk_context</code></em>;</span></p></td> | |
170 | >PolKitContext</a> *<em class="structfield"><code>pk_context</code></em>;</span></p></td> | |
193 | 171 | <td> for interfacing with PolicyKit; e.g. typically <a |
194 | 172 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#polkit-context-can-caller-do-action" |
195 | 173 | ><code class="function">polkit_context_can_caller_do_action()</code></a> |
197 | 175 | </tr> |
198 | 176 | <tr> |
199 | 177 | <td><p><span class="term"><a |
200 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-dbus.html#PolKitTracker" | |
201 | >PolKitTracker</a>*<em class="structfield"><code>pk_tracker</code></em>;</span></p></td> | |
178 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-tracker.html#PolKitTracker" | |
179 | >PolKitTracker</a> *<em class="structfield"><code>pk_tracker</code></em>;</span></p></td> | |
202 | 180 | <td> this is used for effieciently obtaining <a |
203 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-caller.html#PolKitCaller" | |
181 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-caller.html#PolKitCaller" | |
204 | 182 | ><span class="type">PolKitCaller</span></a> objects |
205 | 183 | </td> |
206 | 184 | </tr> |
210 | 188 | <hr> |
211 | 189 | <div class="refsect2" lang="en"> |
212 | 190 | <a name="polkit-gnome-context-get"></a><h3>polkit_gnome_context_get ()</h3> |
213 | <pre class="programlisting"><a | |
214 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
215 | >PolKitGnomeContext</a>* polkit_gnome_context_get (<a | |
191 | <pre class="programlisting"><a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext">PolKitGnomeContext</a>* polkit_gnome_context_get (<a | |
216 | 192 | href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError" |
217 | 193 | >GError</a> **error);</pre> |
218 | 194 | <p> |
219 | Returns a <a | |
220 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
221 | ><span class="type">PolKitGnomeContext</span></a> object. The context is a global | |
195 | Returns a <a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext"><span class="type">PolKitGnomeContext</span></a> object. The context is a global | |
222 | 196 | singleton that may be shared with other callers of this function. |
223 | 197 | </p> |
224 | 198 | <p> |
236 | 210 | <col align="left" valign="top"> |
237 | 211 | <tbody> |
238 | 212 | <tr> |
239 | <td><p><span class="term"><em class="parameter"><code>error</code></em>:</span></p></td> | |
213 | <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> | |
240 | 214 | <td> return location for error |
241 | 215 | </td> |
242 | 216 | </tr> |
243 | 217 | <tr> |
244 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
245 | <td> a new <a | |
246 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
247 | ><span class="type">PolKitGnomeContext</span></a> or NULL if error is set | |
218 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
219 | <td> a new <a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext"><span class="type">PolKitGnomeContext</span></a> or NULL if error is set | |
248 | 220 | </td> |
249 | 221 | </tr> |
250 | 222 | </tbody> |
262 | 234 | <div class="variablelist"><table border="0"> |
263 | 235 | <col align="left" valign="top"> |
264 | 236 | <tbody><tr> |
265 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
237 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
266 | 238 | <td> |
267 | 239 | |
268 | 240 | |
275 | 247 | <a name="PolKitGnomeContext.signal-details"></a><h2>Signal Details</h2> |
276 | 248 | <div class="refsect2" lang="en"> |
277 | 249 | <a name="PolKitGnomeContext-config-changed"></a><h3>The <code class="literal">"config-changed"</code> signal</h3> |
278 | <pre class="programlisting">void user_function (<a | |
279 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
280 | >PolKitGnomeContext</a> *context, | |
250 | <pre class="programlisting">void user_function (<a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext">PolKitGnomeContext</a> *context, | |
281 | 251 | <a |
282 | 252 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
283 | 253 | >gpointer</a> user_data) : Run Last</pre> |
297 | 267 | <col align="left" valign="top"> |
298 | 268 | <tbody> |
299 | 269 | <tr> |
300 | <td><p><span class="term"><em class="parameter"><code>context</code></em>:</span></p></td> | |
270 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | |
301 | 271 | <td> the object |
302 | 272 | </td> |
303 | 273 | </tr> |
304 | 274 | <tr> |
305 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
275 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
306 | 276 | <td>user data set when the signal handler was connected.</td> |
307 | 277 | </tr> |
308 | 278 | </tbody> |
311 | 281 | <hr> |
312 | 282 | <div class="refsect2" lang="en"> |
313 | 283 | <a name="PolKitGnomeContext-console-kit-db-changed"></a><h3>The <code class="literal">"console-kit-db-changed"</code> signal</h3> |
314 | <pre class="programlisting">void user_function (<a | |
315 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeContext.html" | |
316 | >PolKitGnomeContext</a> *context, | |
284 | <pre class="programlisting">void user_function (<a class="link" href="PolKitGnomeContext.html" title="PolKitGnomeContext">PolKitGnomeContext</a> *context, | |
317 | 285 | <a |
318 | 286 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
319 | 287 | >gpointer</a> user_data) : Run Last</pre> |
333 | 301 | <col align="left" valign="top"> |
334 | 302 | <tbody> |
335 | 303 | <tr> |
336 | <td><p><span class="term"><em class="parameter"><code>context</code></em>:</span></p></td> | |
304 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | |
337 | 305 | <td> the object |
338 | 306 | </td> |
339 | 307 | </tr> |
340 | 308 | <tr> |
341 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
309 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
342 | 310 | <td>user data set when the signal handler was connected.</td> |
343 | 311 | </tr> |
344 | 312 | </tbody> |
47 | 47 | <div class="refsynopsisdiv"> |
48 | 48 | <a name="PolKitGnomeToggleAction.synopsis"></a><h2>Synopsis</h2> |
49 | 49 | <pre class="synopsis"> |
50 | <a | |
51 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleActionPrivate" | |
52 | >PolKitGnomeToggleActionPrivate</a>; | |
53 | <a | |
54 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction-struct" | |
55 | >PolKitGnomeToggleAction</a>; | |
56 | <a | |
57 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
58 | >PolKitGnomeToggleAction</a>* <a | |
59 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-new" | |
60 | >polkit_gnome_toggle_action_new</a> (const <a | |
50 | <a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleActionPrivate" title="PolKitGnomeToggleActionPrivate">PolKitGnomeToggleActionPrivate</a>; | |
51 | <a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction-struct" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a>; | |
52 | <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a>* <a class="link" href="PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-new" title="polkit_gnome_toggle_action_new ()">polkit_gnome_toggle_action_new</a> (const <a | |
61 | 53 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
62 | 54 | >gchar</a> *name); |
63 | <a | |
64 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
65 | >PolKitGnomeToggleAction</a>* <a | |
66 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-new-default" | |
67 | >polkit_gnome_toggle_action_new_default</a> | |
55 | <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a>* <a class="link" href="PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-new-default" title="polkit_gnome_toggle_action_new_default ()">polkit_gnome_toggle_action_new_default</a> | |
68 | 56 | (const <a |
69 | 57 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
70 | 58 | >gchar</a> *name, |
71 | 59 | <a |
72 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
60 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
73 | 61 | >PolKitAction</a> *polkit_action, |
74 | 62 | const <a |
75 | 63 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
79 | 67 | >gchar</a> *unlocked_label); |
80 | 68 | <a |
81 | 69 | href="/usr/share/gtk-doc/html/gtk/GtkWidget.html" |
82 | >GtkWidget</a>* <a | |
83 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-create-toggle-button" | |
84 | >polkit_gnome_toggle_action_create_toggle_button</a> | |
85 | (<a | |
86 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
87 | >PolKitGnomeToggleAction</a> *action); | |
70 | >GtkWidget</a>* <a class="link" href="PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-create-toggle-button" title="polkit_gnome_toggle_action_create_toggle_button ()">polkit_gnome_toggle_action_create_toggle_button</a> | |
71 | (<a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a> *action); | |
88 | 72 | </pre> |
89 | 73 | </div> |
90 | 74 | <div class="refsect1" lang="en"> |
96 | 80 | +----<a |
97 | 81 | href="/usr/share/gtk-doc/html/gtk/GtkAction.html" |
98 | 82 | >GtkAction</a> |
99 | +----<a | |
100 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
101 | >PolKitGnomeAction</a> | |
83 | +----<a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction">PolKitGnomeAction</a> | |
102 | 84 | +----PolKitGnomeToggleAction |
103 | 85 | </pre> |
104 | 86 | </div> |
113 | 95 | <div class="refsect1" lang="en"> |
114 | 96 | <a name="PolKitGnomeToggleAction.properties"></a><h2>Properties</h2> |
115 | 97 | <pre class="synopsis"> |
116 | "<a | |
117 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-icon-name" | |
118 | >auth-underway-icon-name</a>" <a | |
98 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-icon-name" title='The "auth-underway-icon-name" property'>auth-underway-icon-name</a>" <a | |
119 | 99 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
120 | 100 | >gchar</a>* : Read / Write |
121 | "<a | |
122 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-label" | |
123 | >auth-underway-label</a>" <a | |
101 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-label" title='The "auth-underway-label" property'>auth-underway-label</a>" <a | |
124 | 102 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
125 | 103 | >gchar</a>* : Read / Write |
126 | "<a | |
127 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-sensitive" | |
128 | >auth-underway-sensitive</a>" <a | |
104 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-sensitive" title='The "auth-underway-sensitive" property'>auth-underway-sensitive</a>" <a | |
129 | 105 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
130 | 106 | >gboolean</a> : Read / Write |
131 | "<a | |
132 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-short-label" | |
133 | >auth-underway-short-label</a>" <a | |
107 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-short-label" title='The "auth-underway-short-label" property'>auth-underway-short-label</a>" <a | |
134 | 108 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
135 | 109 | >gchar</a>* : Read / Write |
136 | "<a | |
137 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-tooltip" | |
138 | >auth-underway-tooltip</a>" <a | |
110 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-tooltip" title='The "auth-underway-tooltip" property'>auth-underway-tooltip</a>" <a | |
139 | 111 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
140 | 112 | >gchar</a>* : Read / Write |
141 | "<a | |
142 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-visible" | |
143 | >auth-underway-visible</a>" <a | |
113 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction--auth-underway-visible" title='The "auth-underway-visible" property'>auth-underway-visible</a>" <a | |
144 | 114 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
145 | 115 | >gboolean</a> : Read / Write |
146 | 116 | </pre> |
148 | 118 | <div class="refsect1" lang="en"> |
149 | 119 | <a name="PolKitGnomeToggleAction.signals"></a><h2>Signals</h2> |
150 | 120 | <pre class="synopsis"> |
151 | "<a | |
152 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#PolKitGnomeToggleAction-toggled" | |
153 | >toggled</a>" : Run Last | |
121 | "<a class="link" href="PolKitGnomeToggleAction.html#PolKitGnomeToggleAction-toggled" title='The "toggled" signal'>toggled</a>" : Run Last | |
154 | 122 | </pre> |
155 | 123 | </div> |
156 | 124 | <div class="refsect1" lang="en"> |
157 | 125 | <a name="PolKitGnomeToggleAction.description"></a><h2>Description</h2> |
158 | 126 | <p> |
159 | 127 | For an example of how to use this class, see the documentation for |
160 | <a | |
161 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
162 | ><span class="type">PolKitGnomeAction</span></a>.</p> | |
128 | <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a>.</p> | |
163 | 129 | <p> |
164 | 130 | |
165 | 131 | </p> |
186 | 152 | <hr> |
187 | 153 | <div class="refsect2" lang="en"> |
188 | 154 | <a name="polkit-gnome-toggle-action-new"></a><h3>polkit_gnome_toggle_action_new ()</h3> |
189 | <pre class="programlisting"><a | |
190 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
191 | >PolKitGnomeToggleAction</a>* polkit_gnome_toggle_action_new (const <a | |
155 | <pre class="programlisting"><a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a>* polkit_gnome_toggle_action_new (const <a | |
192 | 156 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
193 | 157 | >gchar</a> *name);</pre> |
194 | 158 | <p> |
195 | Creates a new <a | |
196 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
197 | ><span class="type">PolKitGnomeToggleAction</span></a> object. The typical use for | |
159 | Creates a new <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction"><span class="type">PolKitGnomeToggleAction</span></a> object. The typical use for | |
198 | 160 | this function is for specialized use where |
199 | <a | |
200 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-new-default" | |
201 | ><code class="function">polkit_gnome_toggle_action_new_default()</code></a> does not meet the needs of | |
161 | <a class="link" href="PolKitGnomeToggleAction.html#polkit-gnome-toggle-action-new-default" title="polkit_gnome_toggle_action_new_default ()"><code class="function">polkit_gnome_toggle_action_new_default()</code></a> does not meet the needs of | |
202 | 162 | the application. |
203 | 163 | </p> |
204 | 164 | <p> |
206 | 166 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
207 | 167 | ><span class="type">NULL</span></a> the behavior is similar to |
208 | 168 | as if a <a |
209 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
169 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
210 | 170 | ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.</p> |
211 | 171 | <p> |
212 | 172 | |
215 | 175 | <col align="left" valign="top"> |
216 | 176 | <tbody> |
217 | 177 | <tr> |
218 | <td><p><span class="term"><em class="parameter"><code>name</code></em>:</span></p></td> | |
178 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> | |
219 | 179 | <td> A unique name for the toggle_action |
220 | 180 | </td> |
221 | 181 | </tr> |
222 | 182 | <tr> |
223 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
224 | <td> a new <a | |
225 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
226 | ><span class="type">PolKitGnomeToggleAction</span></a> or <a | |
183 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
184 | <td> a new <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction"><span class="type">PolKitGnomeToggleAction</span></a> or <a | |
227 | 185 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
228 | 186 | ><span class="type">NULL</span></a> if error is set |
229 | 187 | </td> |
234 | 192 | <hr> |
235 | 193 | <div class="refsect2" lang="en"> |
236 | 194 | <a name="polkit-gnome-toggle-action-new-default"></a><h3>polkit_gnome_toggle_action_new_default ()</h3> |
237 | <pre class="programlisting"><a | |
238 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
239 | >PolKitGnomeToggleAction</a>* polkit_gnome_toggle_action_new_default | |
195 | <pre class="programlisting"><a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a>* polkit_gnome_toggle_action_new_default | |
240 | 196 | (const <a |
241 | 197 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
242 | 198 | >gchar</a> *name, |
243 | 199 | <a |
244 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
200 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
245 | 201 | >PolKitAction</a> *polkit_action, |
246 | 202 | const <a |
247 | 203 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
250 | 206 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" |
251 | 207 | >gchar</a> *unlocked_label);</pre> |
252 | 208 | <p> |
253 | Creates a new <a | |
254 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
255 | ><span class="type">PolKitGnomeToggleAction</span></a> object with the default | |
209 | Creates a new <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction"><span class="type">PolKitGnomeToggleAction</span></a> object with the default | |
256 | 210 | behavior for a given <a |
257 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
211 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
258 | 212 | ><span class="type">PolKitAction</span></a> object. The toggle represents |
259 | 213 | whether the user is authorized for the given <a |
260 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
214 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
261 | 215 | ><span class="type">PolKitAction</span></a>. If the |
262 | 216 | user is not authorized, clicking on a proxy widget (if it's |
263 | 217 | sensitive) will cause an authentication dialog to appear. If the |
279 | 233 | be revoked. |
280 | 234 | </p> |
281 | 235 | <p> |
282 | Default behavior is defined as having the icon_name be 'stock_lock' | |
236 | Default behavior is defined as having the icon_name be 'security-medium' | |
283 | 237 | by default except for the YES PolicyKit answer where it's set to |
284 | 'stock_lock-open'. No tooltips are set. The label and short-label | |
238 | 'security-low'. No tooltips are set. The label and short-label | |
285 | 239 | will be 'locked_label' everywhere except in the YES state where |
286 | 240 | it's set to 'unlocked-label'. When authentication is underway, the |
287 | 241 | label will be "Authenticating..." and icon_name is untouched. If |
295 | 249 | <p> |
296 | 250 | The caller can always modify individual aspects of the |
297 | 251 | toggle_action after creation, e.g. change the tooltip for the no, |
298 | auth and yes states; see the parent class <a | |
299 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeAction.html" | |
300 | ><span class="type">PolKitGnomeAction</span></a>. In | |
252 | auth and yes states; see the parent class <a class="link" href="PolKitGnomeAction.html" title="PolKitGnomeAction"><span class="type">PolKitGnomeAction</span></a>. In | |
301 | 253 | addition to the properties in the parent class, this subclass |
302 | 254 | sports six new properties, "auth-underway-*" to control the look |
303 | 255 | of proxy widgets when authentication is underway. |
307 | 259 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
308 | 260 | ><span class="type">NULL</span></a> the behavior is similar to as |
309 | 261 | if a <a |
310 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
262 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
311 | 263 | ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.</p> |
312 | 264 | <p> |
313 | 265 | |
316 | 268 | <col align="left" valign="top"> |
317 | 269 | <tbody> |
318 | 270 | <tr> |
319 | <td><p><span class="term"><em class="parameter"><code>name</code></em>:</span></p></td> | |
271 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> | |
320 | 272 | <td> A unique name for the toggle_action |
321 | 273 | </td> |
322 | 274 | </tr> |
323 | 275 | <tr> |
324 | <td><p><span class="term"><em class="parameter"><code>polkit_action</code></em>:</span></p></td> | |
276 | <td><p><span class="term"><em class="parameter"><code>polkit_action</code></em> :</span></p></td> | |
325 | 277 | <td> the <a |
326 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
278 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
327 | 279 | ><span class="type">PolKitAction</span></a> to track |
328 | 280 | </td> |
329 | 281 | </tr> |
330 | 282 | <tr> |
331 | <td><p><span class="term"><em class="parameter"><code>locked_label</code></em>:</span></p></td> | |
283 | <td><p><span class="term"><em class="parameter"><code>locked_label</code></em> :</span></p></td> | |
332 | 284 | <td> The label to show when the user do not possess the |
333 | 285 | authorization, e.g. "Click to make changes" |
334 | 286 | </td> |
335 | 287 | </tr> |
336 | 288 | <tr> |
337 | <td><p><span class="term"><em class="parameter"><code>unlocked_label</code></em>:</span></p></td> | |
289 | <td><p><span class="term"><em class="parameter"><code>unlocked_label</code></em> :</span></p></td> | |
338 | 290 | <td> The label to show when the user does posses the |
339 | 291 | authorization; e.g. "Click to prevent changes" |
340 | 292 | </td> |
341 | 293 | </tr> |
342 | 294 | <tr> |
343 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
344 | <td> a new <a | |
345 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
346 | ><span class="type">PolKitGnomeToggleAction</span></a> or <a | |
295 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
296 | <td> a new <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction"><span class="type">PolKitGnomeToggleAction</span></a> or <a | |
347 | 297 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
348 | 298 | ><span class="type">NULL</span></a> if error is set |
349 | 299 | </td> |
357 | 307 | <pre class="programlisting"><a |
358 | 308 | href="/usr/share/gtk-doc/html/gtk/GtkWidget.html" |
359 | 309 | >GtkWidget</a>* polkit_gnome_toggle_action_create_toggle_button |
360 | (<a | |
361 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
362 | >PolKitGnomeToggleAction</a> *action);</pre> | |
310 | (<a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a> *action);</pre> | |
363 | 311 | <p> |
364 | 312 | Create a toggle button for the given action that displays the |
365 | 313 | label, tooltip and icon_name corresponding to whether the state, |
371 | 319 | <col align="left" valign="top"> |
372 | 320 | <tbody> |
373 | 321 | <tr> |
374 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
375 | <td> The <a | |
376 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
377 | ><span class="type">PolKitGnomeToggleAction</span></a> object | |
378 | </td> | |
379 | </tr> | |
380 | <tr> | |
381 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
322 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
323 | <td> The <a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction"><span class="type">PolKitGnomeToggleAction</span></a> object | |
324 | </td> | |
325 | </tr> | |
326 | <tr> | |
327 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
382 | 328 | <td> A <a |
383 | 329 | href="/usr/share/gtk-doc/html/gtk/GtkToggleButton.html" |
384 | 330 | ><span class="type">GtkToggleButton</span></a> instance connected to the action |
448 | 394 | <a name="PolKitGnomeToggleAction.signal-details"></a><h2>Signal Details</h2> |
449 | 395 | <div class="refsect2" lang="en"> |
450 | 396 | <a name="PolKitGnomeToggleAction-toggled"></a><h3>The <code class="literal">"toggled"</code> signal</h3> |
451 | <pre class="programlisting">void user_function (<a | |
452 | href="/usr/share/gtk-doc/html/polkit-gnome/PolKitGnomeToggleAction.html" | |
453 | >PolKitGnomeToggleAction</a> *toggle_action, | |
397 | <pre class="programlisting">void user_function (<a class="link" href="PolKitGnomeToggleAction.html" title="PolKitGnomeToggleAction">PolKitGnomeToggleAction</a> *toggle_action, | |
454 | 398 | <a |
455 | 399 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
456 | 400 | >gpointer</a> user_data) : Run Last</pre> |
463 | 407 | <col align="left" valign="top"> |
464 | 408 | <tbody> |
465 | 409 | <tr> |
466 | <td><p><span class="term"><em class="parameter"><code>toggle_action</code></em>:</span></p></td> | |
410 | <td><p><span class="term"><em class="parameter"><code>toggle_action</code></em> :</span></p></td> | |
467 | 411 | <td> the object |
468 | 412 | </td> |
469 | 413 | </tr> |
470 | 414 | <tr> |
471 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
415 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
472 | 416 | <td>user data set when the signal handler was connected.</td> |
473 | 417 | </tr> |
474 | 418 | </tbody> |
24 | 24 | <code class="email"><<a class="email" href="mailto:david@fubar.dk">david@fubar.dk</a>></code><br> |
25 | 25 | </p></div></div> |
26 | 26 | </div></div></div> |
27 | <div><p class="releaseinfo">Version 0.9 | |
27 | <div><p class="releaseinfo">Version 0.9.2 | |
28 | 28 | </p></div> |
29 | 29 | <div><p class="copyright">Copyright © 2007 The PolicyKit-gnome Authors</p></div> |
30 | 30 | <div><div class="legalnotice"> |
31 | <a name="id338498"></a><p> | |
31 | <a name="id532886"></a><p> | |
32 | 32 | Permission is granted to copy, distribute and/or modify this |
33 | 33 | document under the terms of the <em class="citetitle">GNU Free |
34 | 34 | Documentation License</em>, Version 1.1 or any later |
38 | 38 | <div class="refsynopsisdiv"> |
39 | 39 | <a name="polkit-gnome-polkit-gnome-auth.synopsis"></a><h2>Synopsis</h2> |
40 | 40 | <pre class="synopsis"> |
41 | void (<a | |
42 | href="/usr/share/gtk-doc/html/polkit-gnome/polkit-gnome-polkit-gnome-auth.html#PolKitGnomeAuthCB" | |
43 | >*PolKitGnomeAuthCB</a>) (<a | |
44 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
41 | void (<a class="link" href="polkit-gnome-polkit-gnome-auth.html#PolKitGnomeAuthCB" title="PolKitGnomeAuthCB ()">*PolKitGnomeAuthCB</a>) (<a | |
42 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
45 | 43 | >PolKitAction</a> *action, |
46 | 44 | <a |
47 | 45 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
54 | 52 | >gpointer</a> user_data); |
55 | 53 | <a |
56 | 54 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
57 | >gboolean</a> <a | |
58 | href="/usr/share/gtk-doc/html/polkit-gnome/polkit-gnome-polkit-gnome-auth.html#polkit-gnome-auth-obtain" | |
59 | >polkit_gnome_auth_obtain</a> (<a | |
60 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
55 | >gboolean</a> <a class="link" href="polkit-gnome-polkit-gnome-auth.html#polkit-gnome-auth-obtain" title="polkit_gnome_auth_obtain ()">polkit_gnome_auth_obtain</a> (<a | |
56 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
61 | 57 | >PolKitAction</a> *action, |
62 | 58 | <a |
63 | 59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint" |
64 | 60 | >guint</a> xid, |
65 | 61 | pid_t pid, |
66 | <a | |
67 | href="/usr/share/gtk-doc/html/polkit-gnome/polkit-gnome-polkit-gnome-auth.html#PolKitGnomeAuthCB" | |
68 | >PolKitGnomeAuthCB</a> callback, | |
62 | <a class="link" href="polkit-gnome-polkit-gnome-auth.html#PolKitGnomeAuthCB" title="PolKitGnomeAuthCB ()">PolKitGnomeAuthCB</a> callback, | |
69 | 63 | <a |
70 | 64 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
71 | 65 | >gpointer</a> user_data, |
87 | 81 | <div class="refsect2" lang="en"> |
88 | 82 | <a name="PolKitGnomeAuthCB"></a><h3>PolKitGnomeAuthCB ()</h3> |
89 | 83 | <pre class="programlisting">void (*PolKitGnomeAuthCB) (<a |
90 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
84 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
91 | 85 | >PolKitAction</a> *action, |
92 | 86 | <a |
93 | 87 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
108 | 102 | <col align="left" valign="top"> |
109 | 103 | <tbody> |
110 | 104 | <tr> |
111 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
105 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
112 | 106 | <td> the <a |
113 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
107 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
114 | 108 | ><span class="type">PolKitAction</span></a> passed in <code class="function">polkit_gnome_auth_show_dialog()</code> |
115 | 109 | </td> |
116 | 110 | </tr> |
117 | 111 | <tr> |
118 | <td><p><span class="term"><em class="parameter"><code>gained_privilege</code></em>:</span></p></td> | |
112 | <td><p><span class="term"><em class="parameter"><code>gained_privilege</code></em> :</span></p></td> | |
119 | 113 | <td> whether the user gained the privilege. Set to |
120 | 114 | <a |
121 | 115 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS" |
125 | 119 | </td> |
126 | 120 | </tr> |
127 | 121 | <tr> |
128 | <td><p><span class="term"><em class="parameter"><code>error</code></em>:</span></p></td> | |
122 | <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> | |
129 | 123 | <td> if the call failed, this parameter will be non-<a |
130 | 124 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS" |
131 | 125 | ><span class="type">NULL</span></a>. The |
133 | 127 | </td> |
134 | 128 | </tr> |
135 | 129 | <tr> |
136 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
130 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
137 | 131 | <td> user data |
138 | 132 | </td> |
139 | 133 | </tr> |
146 | 140 | <pre class="programlisting"><a |
147 | 141 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" |
148 | 142 | >gboolean</a> polkit_gnome_auth_obtain (<a |
149 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
143 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
150 | 144 | >PolKitAction</a> *action, |
151 | 145 | <a |
152 | 146 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint" |
153 | 147 | >guint</a> xid, |
154 | 148 | pid_t pid, |
155 | <a | |
156 | href="/usr/share/gtk-doc/html/polkit-gnome/polkit-gnome-polkit-gnome-auth.html#PolKitGnomeAuthCB" | |
157 | >PolKitGnomeAuthCB</a> callback, | |
149 | <a class="link" href="polkit-gnome-polkit-gnome-auth.html#PolKitGnomeAuthCB" title="PolKitGnomeAuthCB ()">PolKitGnomeAuthCB</a> callback, | |
158 | 150 | <a |
159 | 151 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" |
160 | 152 | >gpointer</a> user_data, |
175 | 167 | </p> |
176 | 168 | <p> |
177 | 169 | The Authentication Agent shipped with PolicyKit-gnome is described |
178 | in this section. | |
170 | in <a class="link" href="ref-auth-daemon.html" title="Authentication Agent">this section</a>. | |
179 | 171 | </p> |
180 | 172 | <p> |
181 | 173 | This function is similar to the <a |
182 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-simple.html#polkit-auth-obtain" | |
174 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-simple.html#polkit-auth-obtain" | |
183 | 175 | ><code class="function">polkit_auth_obtain()</code></a> function |
184 | 176 | supplied in <code class="literal">libpolkit-dbus</code> except that this |
185 | 177 | function is asynchronous.</p> |
190 | 182 | <col align="left" valign="top"> |
191 | 183 | <tbody> |
192 | 184 | <tr> |
193 | <td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td> | |
185 | <td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> | |
194 | 186 | <td> The <a |
195 | href="/usr/share/gtk-doc/html/polkit/polkit-polkit-action.html#PolKitAction" | |
187 | href="/usr/share/gtk-doc/html/polkit-1/polkit-1-polkit-action.html#PolKitAction" | |
196 | 188 | ><span class="type">PolKitAction</span></a> to make the user authenticate for |
197 | 189 | </td> |
198 | 190 | </tr> |
199 | 191 | <tr> |
200 | <td><p><span class="term"><em class="parameter"><code>xid</code></em>:</span></p></td> | |
192 | <td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td> | |
201 | 193 | <td> X11 window ID for the window that the dialog will be transient for. If there is no window, pass 0. |
202 | 194 | </td> |
203 | 195 | </tr> |
204 | 196 | <tr> |
205 | <td><p><span class="term"><em class="parameter"><code>pid</code></em>:</span></p></td> | |
197 | <td><p><span class="term"><em class="parameter"><code>pid</code></em> :</span></p></td> | |
206 | 198 | <td> Process ID of process to grant authorization to. Normally one wants to pass result of <code class="function">getpid()</code>. |
207 | 199 | </td> |
208 | 200 | </tr> |
209 | 201 | <tr> |
210 | <td><p><span class="term"><em class="parameter"><code>callback</code></em>:</span></p></td> | |
202 | <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td> | |
211 | 203 | <td> Function to call when authentication is done |
212 | 204 | </td> |
213 | 205 | </tr> |
214 | 206 | <tr> |
215 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em>:</span></p></td> | |
207 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | |
216 | 208 | <td> Data to pass to the callback function |
217 | 209 | </td> |
218 | 210 | </tr> |
219 | 211 | <tr> |
220 | <td><p><span class="term"><em class="parameter"><code>error</code></em>:</span></p></td> | |
212 | <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> | |
221 | 213 | <td> Return location for error |
222 | 214 | </td> |
223 | 215 | </tr> |
224 | 216 | <tr> |
225 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td> | |
217 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | |
226 | 218 | <td> <a |
227 | 219 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS" |
228 | 220 | ><span class="type">TRUE</span></a> if the authentication session was scheduled to |
153 | 153 | be revoked. |
154 | 154 | </para> |
155 | 155 | <para> |
156 | Default behavior is defined as having the icon_name be 'stock_lock' | |
156 | Default behavior is defined as having the icon_name be 'security-medium' | |
157 | 157 | by default except for the YES PolicyKit answer where it's set to |
158 | 'stock_lock-open'. No tooltips are set. The label and short-label | |
158 | 'security-low'. No tooltips are set. The label and short-label | |
159 | 159 | will be 'locked_label' everywhere except in the YES state where |
160 | 160 | it's set to 'unlocked-label'. When authentication is underway, the |
161 | 161 | label will be "Authenticating..." and icon_name is untouched. If |
127 | 127 | F77 = @F77@ |
128 | 128 | FFLAGS = @FFLAGS@ |
129 | 129 | GCONFTOOL = @GCONFTOOL@ |
130 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
131 | GCONF_LIBS = @GCONF_LIBS@ | |
130 | 132 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
131 | 133 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
132 | 134 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
133 | 135 | GMOFILES = @GMOFILES@ |
134 | 136 | GMSGFMT = @GMSGFMT@ |
135 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
136 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
137 | 137 | GREP = @GREP@ |
138 | 138 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
139 | 139 | GTK_CFLAGS = @GTK_CFLAGS@ |
209 | 209 | RANLIB = @RANLIB@ |
210 | 210 | SED = @SED@ |
211 | 211 | SET_MAKE = @SET_MAKE@ |
212 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
213 | SEXY_LIBS = @SEXY_LIBS@ | |
214 | 212 | SHELL = @SHELL@ |
215 | 213 | STRIP = @STRIP@ |
216 | 214 | USE_NLS = @USE_NLS@ |
11 | 11 | <description xml:lang="fi">Hyppää</description> |
12 | 12 | <description xml:lang="fr">Sauter</description> |
13 | 13 | <description xml:lang="ja">Jump</description> |
14 | <description xml:lang="pl">Wykonaj "Jump"</description> | |
14 | 15 | <description xml:lang="pt_BR">Pular</description> |
15 | 16 | <description xml:lang="ru">Jump</description> |
16 | 17 | <description xml:lang="sk">Jump</description> |
20 | 21 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta hyppäämästä</message> |
21 | 22 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de sauter</message> |
22 | 23 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Jumping</message> |
24 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Jump"</message> | |
23 | 25 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um pulo</message> |
24 | 26 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Jumping</message> |
25 | 27 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Jump</message> |
37 | 39 | <description xml:lang="fi">Säädä</description> |
38 | 40 | <description xml:lang="fr">Tripatouiller</description> |
39 | 41 | <description xml:lang="ja">Frobnicate</description> |
42 | <description xml:lang="pl">Wykonaj "Frobnicate"</description> | |
40 | 43 | <description xml:lang="pt_BR">Ajustar</description> |
41 | 44 | <description xml:lang="ru">Frobnicate</description> |
42 | 45 | <description xml:lang="sk">Frobnicate</description> |
47 | 50 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta säätämästä</message> |
48 | 51 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de tripatouiller</message> |
49 | 52 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Frobnicating</message> |
53 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Frobnicate"</message> | |
50 | 54 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um ajuste</message> |
51 | 55 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Frobnicating</message> |
52 | 56 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Frobnicate.</message> |
77 | 81 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta virittämästä</message> |
78 | 82 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome d'ajuster</message> |
79 | 83 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Tweaking</message> |
84 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Tweak"</message> | |
80 | 85 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um Tweak</message> |
81 | 86 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Tweaking</message> |
82 | 87 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Tweak</message> |
94 | 99 | <description xml:lang="fi">Pyörittele</description> |
95 | 100 | <description xml:lang="fr">Bidouiller</description> |
96 | 101 | <description xml:lang="ja">Twiddle</description> |
102 | <description xml:lang="pl">Wykonaj "Twiddle"</description> | |
97 | 103 | <description xml:lang="pt_BR">Girar</description> |
98 | 104 | <description xml:lang="ru">Twiddle</description> |
99 | 105 | <description xml:lang="sk">Twiddle</description> |
104 | 110 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta pyörittelemästä</message> |
105 | 111 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de bidouiller</message> |
106 | 112 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Twiddling</message> |
113 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Twiddle"</message> | |
107 | 114 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um giro</message> |
108 | 115 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Twiddling</message> |
109 | 116 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Twiddle</message> |
121 | 128 | <description xml:lang="fi">Näpäytä</description> |
122 | 129 | <description xml:lang="fr">Frapper</description> |
123 | 130 | <description xml:lang="ja">Punch</description> |
131 | <description xml:lang="pl">Wykonaj "Punch"</description> | |
124 | 132 | <description xml:lang="pt_BR">Socar</description> |
125 | 133 | <description xml:lang="ru">Punch</description> |
126 | 134 | <description xml:lang="sk">Punch</description> |
131 | 139 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta näpäyttämästä</message> |
132 | 140 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de frapper</message> |
133 | 141 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Punching</message> |
142 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Punch"</message> | |
134 | 143 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um soco</message> |
135 | 144 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Punching</message> |
136 | 145 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Punch</message> |
151 | 160 | <description xml:lang="fi">Kytke</description> |
152 | 161 | <description xml:lang="fr">Basculer</description> |
153 | 162 | <description xml:lang="ja">Toggle</description> |
163 | <description xml:lang="pl">Wykonaj "Toggle"</description> | |
154 | 164 | <description xml:lang="pt_BR">Alternar</description> |
155 | 165 | <description xml:lang="ru">Toggle</description> |
156 | 166 | <description xml:lang="sk">Toggle</description> |
161 | 171 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta kytkemästä</message> |
162 | 172 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de basculer</message> |
163 | 173 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Toggling</message> |
174 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Toggle"</message> | |
164 | 175 | <message xml:lang="pt_BR">A política do sistema impediu o assistente de exemplo do PolicyKit-gnome de realizar uma alternância.</message> |
165 | 176 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Toggling</message> |
166 | 177 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Toggle</message> |
177 | 188 | <description xml:lang="fi">Potkaise foota</description> |
178 | 189 | <description xml:lang="fr">Pousser toto</description> |
179 | 190 | <description xml:lang="ja">Kick foo</description> |
191 | <description xml:lang="pl">Wykonaj "Kick" na "foo"</description> | |
180 | 192 | <description xml:lang="pt_BR">Kick foo</description> |
181 | 193 | <description xml:lang="ru">Kick foo</description> |
182 | 194 | <description xml:lang="sk">Kick foo</description> |
187 | 199 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta potkaisemasta foota</message> |
188 | 200 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de pousser toto</message> |
189 | 201 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Kicking foo</message> |
202 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Kick" na "foo"</message> | |
190 | 203 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um kick foo</message> |
191 | 204 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Kicking foo</message> |
192 | 205 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Kick foo</message> |
204 | 217 | <description xml:lang="fi">Potkaise baria</description> |
205 | 218 | <description xml:lang="fr">Pousser titi</description> |
206 | 219 | <description xml:lang="ja">Kick bar</description> |
220 | <description xml:lang="pl">Wykonaj "Kick" na "bar"</description> | |
207 | 221 | <description xml:lang="pt_BR">Kick bar</description> |
208 | 222 | <description xml:lang="ru">Kick bar</description> |
209 | 223 | <description xml:lang="sk">Kick bar</description> |
214 | 228 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta potkaisemasta baria</message> |
215 | 229 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de pousser titi</message> |
216 | 230 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Kicking bar</message> |
231 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Kick" na "bar"</message> | |
217 | 232 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um kick bar</message> |
218 | 233 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Kicking bar</message> |
219 | 234 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Kick bar</message> |
231 | 246 | <description xml:lang="fi">Potkaise bazia</description> |
232 | 247 | <description xml:lang="fr">Pousser tata</description> |
233 | 248 | <description xml:lang="ja">Kick baz</description> |
249 | <description xml:lang="pl">Wykonaj "Kick" na "baz</description> | |
234 | 250 | <description xml:lang="pt_BR">Kick baz</description> |
235 | 251 | <description xml:lang="ru">Kick baz</description> |
236 | 252 | <description xml:lang="sk">Kick baz</description> |
241 | 257 | <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta potkaisemasta bazia</message> |
242 | 258 | <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de pousser tata</message> |
243 | 259 | <message xml:lang="ja">System policy prevents the PolicyKit-gnome example helper from Kicking baz</message> |
260 | <message xml:lang="pl">Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem "Kick" na "baz"</message> | |
244 | 261 | <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um kick baz</message> |
245 | 262 | <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Kicking baz</message> |
246 | 263 | <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Kick baz</message> |
0 | 2008-08-14 Tomasz Dominikowski <tdominikowski@aviary.pl> | |
1 | ||
2 | * pl.po: Updated Polish translation. | |
3 | ||
4 | 2008-08-09 Djihed Afifi <djihed@gmail.com> | |
5 | ||
6 | * ar.po: Updated Arabic Translation by Khaled Hosny. | |
7 | ||
8 | 2008-08-04 Takeshi AIHANA <takeshi.aihana@gmail.com> | |
9 | ||
10 | * ja.po: Updated Japanese translation. | |
11 | ||
12 | 2008-08-04 Duarte Loreto <happyguy_pt@hotmail.com> | |
13 | ||
14 | * pt.po: Updated Portuguese translation by António Lima | |
15 | <amrlima@gmail.com>. | |
16 | ||
17 | 2008-07-31 Djihed Afifi <djihed@gmail.com> | |
18 | ||
19 | * ar.po: Added Arabic Translation. | |
20 | * LINGUAS: Added ar. | |
21 | ||
22 | 2008-07-29 Leonardo Ferreira Fontenelle <leonardof@gnome.org> | |
23 | ||
24 | * pt_BR.po: Translation updated by Igor Pires Soares. (Yes, again!) | |
25 | ||
0 | 26 | 2008-07-21 Leonardo Ferreira Fontenelle <leonardof@gnome.org> |
1 | 27 | |
2 | 28 | * pt_BR.po: Translation updated by Igor Pires Soares. |
55 | 55 | |
56 | 56 | PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi) |
57 | 57 | |
58 | USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi) | |
59 | ||
60 | USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) | |
58 | USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep ^$$lang$$`"; then printf "$$lang "; fi; done; fi) | |
59 | ||
60 | USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) | |
61 | 61 | |
62 | 62 | POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) |
63 | 63 | |
100 | 100 | install-data: install-data-@USE_NLS@ |
101 | 101 | install-data-no: all |
102 | 102 | install-data-yes: all |
103 | $(mkdir_p) $(DESTDIR)$(itlocaledir) | |
104 | 103 | linguas="$(USE_LINGUAS)"; \ |
105 | 104 | for lang in $$linguas; do \ |
106 | 105 | dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ |
0 | # translation of policykit-gnome.HEAD.po to Arabic | |
1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PACKAGE package. | |
3 | # | |
4 | # Khaled Hosny <khaledhosny@eglug.org>, 2008. | |
5 | msgid "" | |
6 | msgstr "" | |
7 | "Project-Id-Version: policykit-gnome.HEAD\n" | |
8 | "Report-Msgid-Bugs-To: \n" | |
9 | "POT-Creation-Date: 2008-07-31 11:08+0100\n" | |
10 | "PO-Revision-Date: 2008-08-09 12:58+0300\n" | |
11 | "Last-Translator: Khaled Hosny <khaledhosny@eglug.org>\n" | |
12 | "Language-Team: Arabic <doc@arabeyes.org>\n" | |
13 | "MIME-Version: 1.0\n" | |
14 | "Content-Type: text/plain; charset=UTF-8\n" | |
15 | "Content-Transfer-Encoding: 8bit\n" | |
16 | "X-Generator: KBabel 1.11.4\n" | |
17 | "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | |
18 | ||
19 | #: ../data/polkit-gnome-authorization.desktop.in.h:1 | |
20 | #: ../tools/polkit-gnome-authorization.c:2443 | |
21 | msgid "Authorizations" | |
22 | msgstr "التخويلات" | |
23 | ||
24 | #: ../data/polkit-gnome-authorization.desktop.in.h:2 | |
25 | msgid "Configure authorizations" | |
26 | msgstr "اضبط التخويلات" | |
27 | ||
28 | #: ../data/polkit-gnome.schemas.in.h:1 | |
29 | msgid "" | |
30 | "A list of PolicyKit action where the \"retain authorization\" checkbox isn't " | |
31 | "checked by default; this list is maintained by the authentication dialog " | |
32 | "code itself. For example, if a user unchecks the \"retain authorization\" " | |
33 | "check box for an action and successfully obtains an authorization for the " | |
34 | "action, the action will be added to this list." | |
35 | msgstr "" | |
36 | ||
37 | #: ../data/polkit-gnome.schemas.in.h:2 | |
38 | msgid "" | |
39 | "A list of actions where the \"retain authorization\" checkbox isn't checked " | |
40 | "by default" | |
41 | msgstr "" | |
42 | ||
43 | #: ../data/polkit-gnome.schemas.in.h:3 | |
44 | msgid "" | |
45 | "If set to true, the authentication dialog from PolicyKit-gnome will grab the " | |
46 | "keyboard, so that you will not be able to type in other programs while the " | |
47 | "dialog is active. Use this if your window manager does not focus the " | |
48 | "authentication dialog automatically, and you want to avoid accidentally " | |
49 | "typing passwords in other programs." | |
50 | msgstr "" | |
51 | ||
52 | #: ../data/polkit-gnome.schemas.in.h:4 | |
53 | msgid "" | |
54 | "If set to true, then \"retain authorization\" check box (if present) is " | |
55 | "checked by default in the authentication dialog unless the action is " | |
56 | "mentioned in the \"/desktop/gnome/policykit/" | |
57 | "auth_dialog_retain_authorization_blacklist\" key." | |
58 | msgstr "" | |
59 | ||
60 | #: ../data/polkit-gnome.schemas.in.h:5 | |
61 | msgid "Whether the authentication dialog should grab the keyboard" | |
62 | msgstr "" | |
63 | ||
64 | #: ../data/polkit-gnome.schemas.in.h:6 | |
65 | msgid "Whether the retain authorization check box is checked by default" | |
66 | msgstr "" | |
67 | ||
68 | #: ../examples/polkit-gnome-example.c:137 | |
69 | msgid "Copyright © 2007 David Zeuthen" | |
70 | msgstr "حقوق النشر 2007 ديفيد زيوثين" | |
71 | ||
72 | #: ../examples/polkit-gnome-example.c:138 | |
73 | msgid "PolicyKit-gnome Website" | |
74 | msgstr "موقع PolicyKit-gnome" | |
75 | ||
76 | #: ../examples/polkit-gnome-example.c:140 | |
77 | #: ../examples/polkit-gnome-example.c:446 | |
78 | msgid "PolicyKit-gnome demo" | |
79 | msgstr "عرض PolicyKit-gnome" | |
80 | ||
81 | #: ../examples/polkit-gnome-example.c:141 | |
82 | msgid "PolicyKit for the GNOME desktop" | |
83 | msgstr "عُدّة سياسات لمكتب جنوم" | |
84 | ||
85 | #: ../examples/polkit-gnome-example.c:151 | |
86 | msgid "_File" | |
87 | msgstr "_ملف" | |
88 | ||
89 | #. name, stock id, label | |
90 | #: ../examples/polkit-gnome-example.c:152 | |
91 | msgid "_Actions" | |
92 | msgstr "إ_جراءات" | |
93 | ||
94 | #. name, stock id, label | |
95 | #: ../examples/polkit-gnome-example.c:153 | |
96 | msgid "_Help" | |
97 | msgstr "م_ساعدة" | |
98 | ||
99 | #. name, stock id, label | |
100 | #. name, stock id | |
101 | #: ../examples/polkit-gnome-example.c:156 | |
102 | msgid "_Quit" | |
103 | msgstr "أ_غلق" | |
104 | ||
105 | #. label, accelerator | |
106 | #: ../examples/polkit-gnome-example.c:157 | |
107 | msgid "Quit" | |
108 | msgstr "أغلق" | |
109 | ||
110 | #. name, stock id | |
111 | #: ../examples/polkit-gnome-example.c:161 | |
112 | msgid "_About" | |
113 | msgstr "_عنْ" | |
114 | ||
115 | #. label, accelerator | |
116 | #: ../examples/polkit-gnome-example.c:162 | |
117 | msgid "About" | |
118 | msgstr "عنْ" | |
119 | ||
120 | #: ../examples/polkit-gnome-example.c:243 | |
121 | msgid "" | |
122 | "Making the helper <b>Frobnicate</b> requires the user to authenticate. The " | |
123 | "authorization is kept for the life time of the process" | |
124 | msgstr "" | |
125 | ||
126 | #: ../examples/polkit-gnome-example.c:252 | |
127 | msgid "Frobnicate!" | |
128 | msgstr "" | |
129 | ||
130 | #: ../examples/polkit-gnome-example.c:267 | |
131 | msgid "" | |
132 | "Making the helper <b>Jump</b> requires the user to authenticate. This is a " | |
133 | "one-shot authorization." | |
134 | msgstr "" | |
135 | ||
136 | #: ../examples/polkit-gnome-example.c:275 | |
137 | msgid "Jump!" | |
138 | msgstr "اقفز!" | |
139 | ||
140 | #: ../examples/polkit-gnome-example.c:290 | |
141 | msgid "" | |
142 | "Making the helper <b>Tweak</b> requires a system administrator to " | |
143 | "authenticate. This instance overrides the defaults set in " | |
144 | "polkit_gnome_action_new()." | |
145 | msgstr "" | |
146 | ||
147 | #: ../examples/polkit-gnome-example.c:299 | |
148 | #: ../examples/polkit-gnome-example.c:320 | |
149 | msgid "Tweak!" | |
150 | msgstr "" | |
151 | ||
152 | #: ../examples/polkit-gnome-example.c:306 | |
153 | #: ../examples/org.gnome.policykit.examples.policy.in.h:17 | |
154 | msgid "Tweak" | |
155 | msgstr "" | |
156 | ||
157 | #: ../examples/polkit-gnome-example.c:307 | |
158 | msgid "Tweak (long)" | |
159 | msgstr "" | |
160 | ||
161 | #: ../examples/polkit-gnome-example.c:308 | |
162 | msgid "If your admin wasn't annoying, you could do this" | |
163 | msgstr "" | |
164 | ||
165 | #: ../examples/polkit-gnome-example.c:313 | |
166 | msgid "Tweak..." | |
167 | msgstr "" | |
168 | ||
169 | #: ../examples/polkit-gnome-example.c:314 | |
170 | msgid "Tweak... (long)" | |
171 | msgstr "" | |
172 | ||
173 | #: ../examples/polkit-gnome-example.c:315 | |
174 | msgid "Only card carrying tweakers can do this!" | |
175 | msgstr "" | |
176 | ||
177 | #: ../examples/polkit-gnome-example.c:321 | |
178 | msgid "Tweak! (long)" | |
179 | msgstr "" | |
180 | ||
181 | #: ../examples/polkit-gnome-example.c:322 | |
182 | msgid "Go ahead, tweak tweak tweak!" | |
183 | msgstr "" | |
184 | ||
185 | #: ../examples/polkit-gnome-example.c:339 | |
186 | msgid "" | |
187 | "Making the helper <b>Twiddle</b> requires a system administrator to " | |
188 | "authenticate. Once authenticated, this privilege can be retained " | |
189 | "indefinitely." | |
190 | msgstr "" | |
191 | ||
192 | #: ../examples/polkit-gnome-example.c:348 | |
193 | msgid "Twiddle!" | |
194 | msgstr "" | |
195 | ||
196 | #: ../examples/polkit-gnome-example.c:363 | |
197 | msgid "" | |
198 | "Making the helper <b>Punch</b> requires the user to authenticate. Once " | |
199 | "authenticated, this privilege can be retained for the remainder of the " | |
200 | "desktop session." | |
201 | msgstr "" | |
202 | ||
203 | #: ../examples/polkit-gnome-example.c:372 | |
204 | msgid "Punch!" | |
205 | msgstr "" | |
206 | ||
207 | #: ../examples/polkit-gnome-example.c:387 | |
208 | msgid "" | |
209 | "The <b>Toggle</b> action demonstrates the use of PolicyKit to drive a " | |
210 | "GtkToggleButton; it's an intuitive way to ask users to give up " | |
211 | "authorizations when they are done with them. E.g. the button is 'pressed in' " | |
212 | "exactlywhen the authorization is held. Toggling the button means obtaining " | |
213 | "resp. revoking the authorization in question." | |
214 | msgstr "" | |
215 | ||
216 | #: ../examples/polkit-gnome-example.c:401 | |
217 | msgid "Click to make changes..." | |
218 | msgstr "" | |
219 | ||
220 | #: ../examples/polkit-gnome-example.c:402 | |
221 | msgid "Click to prevent changes" | |
222 | msgstr "" | |
223 | ||
224 | #: ../examples/polkit-gnome-example.c:422 | |
225 | msgid "" | |
226 | "<i>Tip: try editing /etc/PolicyKit/Policy.conf and see the proxy widgets " | |
227 | "update in real-time.</i>." | |
228 | msgstr "" | |
229 | ||
230 | #: ../examples/org.gnome.policykit.examples.policy.in.h:1 | |
231 | msgid "Frobnicate" | |
232 | msgstr "" | |
233 | ||
234 | #: ../examples/org.gnome.policykit.examples.policy.in.h:2 | |
235 | msgid "Jump" | |
236 | msgstr "" | |
237 | ||
238 | #: ../examples/org.gnome.policykit.examples.policy.in.h:3 | |
239 | msgid "Kick bar" | |
240 | msgstr "" | |
241 | ||
242 | #: ../examples/org.gnome.policykit.examples.policy.in.h:4 | |
243 | msgid "Kick baz" | |
244 | msgstr "" | |
245 | ||
246 | #: ../examples/org.gnome.policykit.examples.policy.in.h:5 | |
247 | msgid "Kick foo" | |
248 | msgstr "" | |
249 | ||
250 | #: ../examples/org.gnome.policykit.examples.policy.in.h:6 | |
251 | msgid "Punch" | |
252 | msgstr "" | |
253 | ||
254 | #: ../examples/org.gnome.policykit.examples.policy.in.h:7 | |
255 | msgid "System policy prevents the PolicyKit-gnome example helper from Frobnicating" | |
256 | msgstr "" | |
257 | ||
258 | #: ../examples/org.gnome.policykit.examples.policy.in.h:8 | |
259 | msgid "System policy prevents the PolicyKit-gnome example helper from Jumping" | |
260 | msgstr "" | |
261 | ||
262 | #: ../examples/org.gnome.policykit.examples.policy.in.h:9 | |
263 | msgid "System policy prevents the PolicyKit-gnome example helper from Kicking bar" | |
264 | msgstr "" | |
265 | ||
266 | #: ../examples/org.gnome.policykit.examples.policy.in.h:10 | |
267 | msgid "System policy prevents the PolicyKit-gnome example helper from Kicking baz" | |
268 | msgstr "" | |
269 | ||
270 | #: ../examples/org.gnome.policykit.examples.policy.in.h:11 | |
271 | msgid "System policy prevents the PolicyKit-gnome example helper from Kicking foo" | |
272 | msgstr "" | |
273 | ||
274 | #: ../examples/org.gnome.policykit.examples.policy.in.h:12 | |
275 | msgid "System policy prevents the PolicyKit-gnome example helper from Punching" | |
276 | msgstr "" | |
277 | ||
278 | #: ../examples/org.gnome.policykit.examples.policy.in.h:13 | |
279 | msgid "System policy prevents the PolicyKit-gnome example helper from Toggling" | |
280 | msgstr "" | |
281 | ||
282 | #: ../examples/org.gnome.policykit.examples.policy.in.h:14 | |
283 | msgid "System policy prevents the PolicyKit-gnome example helper from Tweaking" | |
284 | msgstr "" | |
285 | ||
286 | #: ../examples/org.gnome.policykit.examples.policy.in.h:15 | |
287 | msgid "System policy prevents the PolicyKit-gnome example helper from Twiddling" | |
288 | msgstr "" | |
289 | ||
290 | #: ../examples/org.gnome.policykit.examples.policy.in.h:16 | |
291 | msgid "Toggle" | |
292 | msgstr "" | |
293 | ||
294 | #: ../examples/org.gnome.policykit.examples.policy.in.h:18 | |
295 | msgid "Twiddle" | |
296 | msgstr "" | |
297 | ||
298 | #: ../polkit-gnome/polkit-gnome-toggle-action.c:400 | |
299 | #: ../polkit-gnome/polkit-gnome-toggle-action.c:401 | |
300 | msgid "Authenticating..." | |
301 | msgstr "يجري التخويل..." | |
302 | ||
303 | #: ../src/main.c:139 | |
304 | msgid "Don't exit after 30 seconds of inactivity" | |
305 | msgstr "لا تخرج بعد 30 ثانية من عدم النشاط" | |
306 | ||
307 | #: ../src/main.c:148 | |
308 | msgid "PolicyKit GNOME session daemon" | |
309 | msgstr "جني عُدّة السياسات لجلسة جنوم" | |
310 | ||
311 | #: ../src/main.c:174 | |
312 | #, c-format | |
313 | msgid "Starting PolicyKit GNOME session daemon version %s" | |
314 | msgstr "يبدأ جني عُدّة سياسات جلسة جنوم، إصدارة %s" | |
315 | ||
316 | #: ../src/polkit-gnome-auth-dialog.c:191 | |
317 | #: ../tools/polkit-gnome-authorization.c:649 | |
318 | msgid "Select user..." | |
319 | msgstr "اختر مستخدما..." | |
320 | ||
321 | #: ../src/polkit-gnome-auth-dialog.c:212 | |
322 | #: ../tools/polkit-gnome-authorization.c:665 | |
323 | #, c-format | |
324 | msgid "%s (%s)" | |
325 | msgstr "%s (%s)" | |
326 | ||
327 | #: ../src/polkit-gnome-auth-dialog.c:293 | |
328 | msgid "_Remember authorization for this session" | |
329 | msgstr "_تذكّر التخويل لهذه الجلسة" | |
330 | ||
331 | #: ../src/polkit-gnome-auth-dialog.c:299 | |
332 | msgid "_Remember authorization" | |
333 | msgstr "_تذكّر التخويل" | |
334 | ||
335 | #: ../src/polkit-gnome-auth-dialog.c:314 | |
336 | msgid "" | |
337 | "An application is attempting to perform an action that requires privileges. " | |
338 | "Authentication as one of the users below is required to perform this action." | |
339 | msgstr "" | |
340 | "يحاول أحد التطبيقات القيام بإجراء يتطلب صلاحيات. تحتاج للاستيثاق كأحد " | |
341 | "المستخدمين المذكورين أسفل للقيام بهذا الإجراء." | |
342 | ||
343 | #: ../src/polkit-gnome-auth-dialog.c:321 | |
344 | msgid "" | |
345 | "An application is attempting to perform an action that requires privileges. " | |
346 | "Authentication as the super user is required to perform this action." | |
347 | msgstr "" | |
348 | "يحاول أحد التطبيقات القيام بإجراء يتطلب صلاحيات. تحتاج للاستيثاق كمستخدم " | |
349 | "فائق للقيام بهذا الإجراء." | |
350 | ||
351 | #: ../src/polkit-gnome-auth-dialog.c:325 | |
352 | msgid "" | |
353 | "An application is attempting to perform an action that requires privileges. " | |
354 | "Authentication is required to perform this action." | |
355 | msgstr "" | |
356 | "يحاول أحد التطبيقات القيام بإجراء يتطلب صلاحيات. تحتاج للاستيثاق للقيام بهذا " | |
357 | "الإجراء." | |
358 | ||
359 | #: ../src/polkit-gnome-auth-dialog.c:406 | |
360 | #, c-format | |
361 | msgid "Click to edit %s" | |
362 | msgstr "انقر لتحرير %s" | |
363 | ||
364 | #: ../src/polkit-gnome-auth-dialog.c:431 | |
365 | #: ../tools/polkit-gnome-authorization.c:1391 | |
366 | #, c-format | |
367 | msgid "Click to open %s" | |
368 | msgstr "انقر لفتح %s" | |
369 | ||
370 | #: ../src/polkit-gnome-auth-dialog.c:668 | |
371 | msgid "_Authenticate" | |
372 | msgstr "ا_ستوثق" | |
373 | ||
374 | #: ../src/polkit-gnome-auth-dialog.c:727 ../src/polkit-gnome-manager.c:686 | |
375 | #: ../src/polkit-gnome-manager.c:735 | |
376 | msgid "_Password:" | |
377 | msgstr "_كلمة السر:" | |
378 | ||
379 | #: ../src/polkit-gnome-auth-dialog.c:749 | |
380 | msgid "For this _session only" | |
381 | msgstr "لهذه الج_لسة فقط" | |
382 | ||
383 | #: ../src/polkit-gnome-auth-dialog.c:757 | |
384 | msgid "<small><b>_Details</b></small>" | |
385 | msgstr "<small><b>ال_تفاصيل</b></small>" | |
386 | ||
387 | #: ../src/polkit-gnome-auth-dialog.c:778 | |
388 | msgid "<small><b>Application:</b></small>" | |
389 | msgstr "<small><b>التطبيق:</b></small>" | |
390 | ||
391 | #: ../src/polkit-gnome-auth-dialog.c:782 | |
392 | msgid "<small><b>Action:</b></small>" | |
393 | msgstr "<small><b>الإجراء:</b></small>" | |
394 | ||
395 | #: ../src/polkit-gnome-auth-dialog.c:787 | |
396 | msgid "<small><b>Vendor:</b></small>" | |
397 | msgstr "<small><b>المُنتِج:</b></small>" | |
398 | ||
399 | #: ../src/polkit-gnome-auth-dialog.c:916 | |
400 | msgid "Authenticate" | |
401 | msgstr "استوثق" | |
402 | ||
403 | #: ../src/polkit-gnome-manager.c:367 | |
404 | msgid "(unknown" | |
405 | msgstr "(مجهول" | |
406 | ||
407 | #: ../src/polkit-gnome-manager.c:730 | |
408 | #, c-format | |
409 | msgid "_Password for %s:" | |
410 | msgstr "_كلمة سر %s:" | |
411 | ||
412 | #: ../src/polkit-gnome-manager.c:732 | |
413 | msgid "_Password for root:" | |
414 | msgstr "_كلمة سر الجذر:" | |
415 | ||
416 | #: ../src/polkit-gnome-manager.c:740 | |
417 | #, c-format | |
418 | msgid "_Password or swipe finger for %s:" | |
419 | msgstr "_كلمة سر أو طرقة إصبع %s:" | |
420 | ||
421 | #: ../src/polkit-gnome-manager.c:743 | |
422 | msgid "_Password or swipe finger for root:" | |
423 | msgstr "_كلمة سر أو طرقة إصبع الجذر:" | |
424 | ||
425 | #: ../src/polkit-gnome-manager.c:746 | |
426 | msgid "_Password or swipe finger:" | |
427 | msgstr "_كلمة السر أو طرقة الإصبع:" | |
428 | ||
429 | #: ../tools/polkit-gnome-authorization.c:117 | |
430 | msgid "No" | |
431 | msgstr "لا" | |
432 | ||
433 | #: ../tools/polkit-gnome-authorization.c:119 | |
434 | msgid "Admin Authentication (one shot)" | |
435 | msgstr "استيثاق المدير (مرة واحدة)" | |
436 | ||
437 | #: ../tools/polkit-gnome-authorization.c:120 | |
438 | msgid "Admin Authentication" | |
439 | msgstr "استيثاق المدير" | |
440 | ||
441 | #: ../tools/polkit-gnome-authorization.c:121 | |
442 | msgid "Admin Authentication (keep session)" | |
443 | msgstr "استيثاق المدير (احفظ الجلسة)" | |
444 | ||
445 | #: ../tools/polkit-gnome-authorization.c:122 | |
446 | msgid "Admin Authentication (keep indefinitely)" | |
447 | msgstr "استيثاق المدير (احفظ بلا تحديد)" | |
448 | ||
449 | #: ../tools/polkit-gnome-authorization.c:124 | |
450 | msgid "Authentication (one shot)" | |
451 | msgstr "الاستيثاق (مرة واحدة)" | |
452 | ||
453 | #: ../tools/polkit-gnome-authorization.c:125 | |
454 | msgid "Authentication" | |
455 | msgstr "الاستيثاق" | |
456 | ||
457 | #: ../tools/polkit-gnome-authorization.c:126 | |
458 | msgid "Authentication (keep session)" | |
459 | msgstr "الاستيثاق (احفظ الجلسة)" | |
460 | ||
461 | #: ../tools/polkit-gnome-authorization.c:127 | |
462 | msgid "Authentication (keep indefinitely)" | |
463 | msgstr "الاستيثاق (احفظ بلا تحديد)" | |
464 | ||
465 | #: ../tools/polkit-gnome-authorization.c:129 | |
466 | msgid "Yes" | |
467 | msgstr "نعم" | |
468 | ||
469 | #: ../tools/polkit-gnome-authorization.c:272 | |
470 | msgid ", " | |
471 | msgstr "، " | |
472 | ||
473 | #: ../tools/polkit-gnome-authorization.c:276 | |
474 | msgid "Must be on console" | |
475 | msgstr "يجب أن يكون مِعراضا" | |
476 | ||
477 | #: ../tools/polkit-gnome-authorization.c:279 | |
478 | msgid "Must be in active session" | |
479 | msgstr "يجب أن تكون جلسة نشطة" | |
480 | ||
481 | #: ../tools/polkit-gnome-authorization.c:282 | |
482 | #, c-format | |
483 | msgid "Must be program %s" | |
484 | msgstr "يجب أن تكون برنامج %s" | |
485 | ||
486 | #: ../tools/polkit-gnome-authorization.c:286 | |
487 | #, c-format | |
488 | msgid "Must be SELinux Context %s" | |
489 | msgstr "يجب أن يكون سياق SELinux %s" | |
490 | ||
491 | #: ../tools/polkit-gnome-authorization.c:344 | |
492 | msgid "A moment ago" | |
493 | msgstr "منذ لحظة" | |
494 | ||
495 | #: ../tools/polkit-gnome-authorization.c:348 | |
496 | msgid "1 minute ago" | |
497 | msgstr "" | |
498 | ||
499 | #: ../tools/polkit-gnome-authorization.c:350 | |
500 | #, c-format | |
501 | msgid "%d minutes ago" | |
502 | msgstr "" | |
503 | ||
504 | #: ../tools/polkit-gnome-authorization.c:354 | |
505 | msgid "1 hour ago" | |
506 | msgstr "" | |
507 | ||
508 | #: ../tools/polkit-gnome-authorization.c:356 | |
509 | #, c-format | |
510 | msgid "%d hours ago" | |
511 | msgstr "" | |
512 | ||
513 | #: ../tools/polkit-gnome-authorization.c:360 | |
514 | msgid "1 day ago" | |
515 | msgstr "" | |
516 | ||
517 | #: ../tools/polkit-gnome-authorization.c:362 | |
518 | #, c-format | |
519 | msgid "%d days ago" | |
520 | msgstr "" | |
521 | ||
522 | #: ../tools/polkit-gnome-authorization.c:379 | |
523 | #, c-format | |
524 | msgid "Auth as %s (uid %d)" | |
525 | msgstr "استوثق باسم %s (رقم المعرّف %Id)" | |
526 | ||
527 | #: ../tools/polkit-gnome-authorization.c:381 | |
528 | #, c-format | |
529 | msgid "Auth as uid %d" | |
530 | msgstr "استوثق كرقم المعرّف %Id" | |
531 | ||
532 | #: ../tools/polkit-gnome-authorization.c:387 | |
533 | #, c-format | |
534 | msgid "Blocked by %s (uid %d)" | |
535 | msgstr "منعه %s (رقم المعرّف %Id)" | |
536 | ||
537 | #: ../tools/polkit-gnome-authorization.c:389 | |
538 | #, c-format | |
539 | msgid "Blocked by uid %d" | |
540 | msgstr "منعه رقم المعرّف %Id" | |
541 | ||
542 | #: ../tools/polkit-gnome-authorization.c:392 | |
543 | #, c-format | |
544 | msgid "Granted by %s (uid %d)" | |
545 | msgstr "منحه %s (رقم المعرّف %Id)" | |
546 | ||
547 | #: ../tools/polkit-gnome-authorization.c:394 | |
548 | #, c-format | |
549 | msgid "Granted by uid %d" | |
550 | msgstr "منحه رقم المعرّف %Id" | |
551 | ||
552 | #: ../tools/polkit-gnome-authorization.c:409 | |
553 | #, c-format | |
554 | msgid "Single shot pid %d (%s)" | |
555 | msgstr "معرّف عملية المرة الواحدة %Id (%s)" | |
556 | ||
557 | #: ../tools/polkit-gnome-authorization.c:415 | |
558 | #, c-format | |
559 | msgid "pid %d (%s)" | |
560 | msgstr "معرّف العملية %Id (%s)" | |
561 | ||
562 | #: ../tools/polkit-gnome-authorization.c:418 | |
563 | msgid "This session" | |
564 | msgstr "هذه الجلسة" | |
565 | ||
566 | #: ../tools/polkit-gnome-authorization.c:421 | |
567 | msgid "Always" | |
568 | msgstr "دائما" | |
569 | ||
570 | #: ../tools/polkit-gnome-authorization.c:431 | |
571 | msgid "None" | |
572 | msgstr "لا" | |
573 | ||
574 | #: ../tools/polkit-gnome-authorization.c:827 | |
575 | msgid "Grant Negative Authorization" | |
576 | msgstr "امنح تخويلا سالبا" | |
577 | ||
578 | #: ../tools/polkit-gnome-authorization.c:827 | |
579 | msgid "Grant Authorization" | |
580 | msgstr "امنح تخويلا" | |
581 | ||
582 | #: ../tools/polkit-gnome-authorization.c:850 | |
583 | #, c-format | |
584 | msgid "" | |
585 | "<b><big>Granting a negative authorization for the <i>%s</i> action requires " | |
586 | "more information</big></b>" | |
587 | msgstr "<b><big>يتطلب منح تخويل سالب للإجراء <i>%s</i> مزيدا من المعلومات</big></b>" | |
588 | ||
589 | #: ../tools/polkit-gnome-authorization.c:851 | |
590 | #, c-format | |
591 | msgid "" | |
592 | "<b><big>Granting an authorization for the <i>%s</i> action requires more " | |
593 | "information</big></b>" | |
594 | msgstr "<b><big>يتطلب منح تخويل للإجراء <i>%s</i> مزيدا من المعلومات</big></b>" | |
595 | ||
596 | #: ../tools/polkit-gnome-authorization.c:862 | |
597 | msgid "" | |
598 | "Select the user to block for the action and, optionally, any constraints on " | |
599 | "the negative authorization that you are about to grant." | |
600 | msgstr "اختر مستخدما لمنعه من هذا الإجراء و -اختياريا- أي قيود على التخويل السلبي الذي ستمنحه." | |
601 | ||
602 | #: ../tools/polkit-gnome-authorization.c:864 | |
603 | msgid "" | |
604 | "Select the beneficiary and, optionally, how to constrain the authorization " | |
605 | "that you are about to grant." | |
606 | msgstr "اختر مستفيدا و -اختياريا- كيف تقيد التخويل الذي ستمنحه." | |
607 | ||
608 | #: ../tools/polkit-gnome-authorization.c:875 | |
609 | msgid "<b>Beneficiary</b>" | |
610 | msgstr "<b>المستفيد</b>" | |
611 | ||
612 | #: ../tools/polkit-gnome-authorization.c:887 | |
613 | msgid "Select the user that will receive the negative authorization." | |
614 | msgstr "اختر المستخدم الذي سيحصل على التخويل السالب." | |
615 | ||
616 | #: ../tools/polkit-gnome-authorization.c:889 | |
617 | msgid "Select the user that will receive the authorization." | |
618 | msgstr "اختر المستخدم الذي سيحصل على التخويل." | |
619 | ||
620 | #: ../tools/polkit-gnome-authorization.c:898 | |
621 | msgid "_Show system users" | |
622 | msgstr "ا_عرض مستخدمي النظام" | |
623 | ||
624 | #: ../tools/polkit-gnome-authorization.c:913 | |
625 | msgid "<b>Constraints</b>" | |
626 | msgstr "<b>القيود</b>" | |
627 | ||
628 | #: ../tools/polkit-gnome-authorization.c:924 | |
629 | msgid "" | |
630 | "Constraints limits the authorization such that it only applies under certain " | |
631 | "circumstances." | |
632 | msgstr "تقيد هذه القيود التخويل بحيث يطبق وفقا لضوابط معينة." | |
633 | ||
634 | #: ../tools/polkit-gnome-authorization.c:930 | |
635 | msgid "_None" | |
636 | msgstr "_لا شيء" | |
637 | ||
638 | #: ../tools/polkit-gnome-authorization.c:932 | |
639 | msgid "Must be _in active session" | |
640 | msgstr "يجب أن يكون في جلسة _نشطة" | |
641 | ||
642 | #: ../tools/polkit-gnome-authorization.c:934 | |
643 | msgid "Must be on _local console" | |
644 | msgstr "يجب أن يكون في _معراض محلي" | |
645 | ||
646 | #: ../tools/polkit-gnome-authorization.c:936 | |
647 | msgid "Must be in _active session on local console" | |
648 | msgstr "يجب أن يكون في جلسة ن_شطة ومِعراض محلي" | |
649 | ||
650 | #: ../tools/polkit-gnome-authorization.c:957 | |
651 | #: ../tools/polkit-gnome-authorization.c:2133 | |
652 | msgid "_Block..." | |
653 | msgstr "ام_نع..." | |
654 | ||
655 | #: ../tools/polkit-gnome-authorization.c:961 | |
656 | #: ../tools/polkit-gnome-authorization.c:2126 | |
657 | msgid "_Grant..." | |
658 | msgstr "ا_منح..." | |
659 | ||
660 | #: ../tools/polkit-gnome-authorization.c:1155 | |
661 | msgid "Edit Implicit Authorizations" | |
662 | msgstr "حرر التخويل الضمني" | |
663 | ||
664 | #: ../tools/polkit-gnome-authorization.c:1176 | |
665 | msgid "<b><big>Choose new implicit authorizations</big></b>" | |
666 | msgstr "<b><big>اختر تخويلات ضمنية جديدة</big></b>" | |
667 | ||
668 | #: ../tools/polkit-gnome-authorization.c:1190 | |
669 | #, c-format | |
670 | msgid "" | |
671 | "Implicit authorizations are authorizations that are granted automatically to " | |
672 | "users under certain circumstances. Choose what is required for the action <i>" | |
673 | "%s</i>." | |
674 | msgstr "" | |
675 | "التخويلات الضمنية هي تلك التخويلات التي تمنح تلقائيا للمستخدمين في ظروف " | |
676 | "معينة. اختر المطلوب للإجراء <i>%s</i>." | |
677 | ||
678 | #: ../tools/polkit-gnome-authorization.c:1215 | |
679 | #: ../tools/polkit-gnome-authorization.c:1974 | |
680 | msgid "<i>Anyone:</i>" | |
681 | msgstr "<i>أي شخص:</i>" | |
682 | ||
683 | #: ../tools/polkit-gnome-authorization.c:1222 | |
684 | #: ../tools/polkit-gnome-authorization.c:1978 | |
685 | msgid "<i>Console:</i>" | |
686 | msgstr "<i>المعراض:</i>" | |
687 | ||
688 | #: ../tools/polkit-gnome-authorization.c:1229 | |
689 | #: ../tools/polkit-gnome-authorization.c:1982 | |
690 | msgid "<i>Active Console:</i>" | |
691 | msgstr "<i>المِعراض النشط:</i>" | |
692 | ||
693 | #: ../tools/polkit-gnome-authorization.c:1258 | |
694 | msgid "_Modify..." | |
695 | msgstr "_عدِّل..." | |
696 | ||
697 | #: ../tools/polkit-gnome-authorization.c:1890 | |
698 | msgid "<b>Action</b>" | |
699 | msgstr "<b>الإجراء</b>" | |
700 | ||
701 | #: ../tools/polkit-gnome-authorization.c:1905 | |
702 | msgid "<i>Identifier:</i>" | |
703 | msgstr "<i>المعرّف:</i>" | |
704 | ||
705 | #: ../tools/polkit-gnome-authorization.c:1915 | |
706 | msgid "<i>Description:</i>" | |
707 | msgstr "<i>الوصف:</i>" | |
708 | ||
709 | #: ../tools/polkit-gnome-authorization.c:1925 | |
710 | msgid "<i>Vendor:</i>" | |
711 | msgstr "<i>المُنتِج:</i>" | |
712 | ||
713 | #: ../tools/polkit-gnome-authorization.c:1951 | |
714 | msgid "<b>Implicit Authorizations</b>" | |
715 | msgstr "<b>التخويلات الضمنية</b>" | |
716 | ||
717 | #: ../tools/polkit-gnome-authorization.c:1959 | |
718 | msgid "" | |
719 | "Implicit authorizations are authorizations automatically given to users " | |
720 | "based on certain criteria such as if they are on the local console." | |
721 | msgstr "" | |
722 | "التخويلات الضمنية هي تلك التخويلات التي تمنح تلقائيا للمستخدمين بناء على " | |
723 | "معايير محددة ككونهم على معراض محلي." | |
724 | ||
725 | #: ../tools/polkit-gnome-authorization.c:2002 | |
726 | msgid "_Edit..." | |
727 | msgstr "_حرِّر..." | |
728 | ||
729 | #: ../tools/polkit-gnome-authorization.c:2009 | |
730 | msgid "Revert To _Defaults..." | |
731 | msgstr "استعد ال_مبدئيات..." | |
732 | ||
733 | #: ../tools/polkit-gnome-authorization.c:2032 | |
734 | msgid "<b>Explicit Authorizations</b>" | |
735 | msgstr "<b>تخويلات صريحة</b>" | |
736 | ||
737 | #: ../tools/polkit-gnome-authorization.c:2043 | |
738 | msgid "" | |
739 | "This list displays authorizations that are either obtained through " | |
740 | "authentication or specifically given to the entity in question. Blocked " | |
741 | "authorizations are marked with a STOP sign." | |
742 | msgstr "" | |
743 | "تعرض هذه القائمة التخويلات التي إما حُصِل عليها عبر الاستيثاق أو أُعطيت تحديدا " | |
744 | "للكيانات المذكورة. التخويلات الممنوعة معلمة بعلامة قف." | |
745 | ||
746 | #: ../tools/polkit-gnome-authorization.c:2073 | |
747 | msgid "Entity" | |
748 | msgstr "الكيان" | |
749 | ||
750 | #: ../tools/polkit-gnome-authorization.c:2081 | |
751 | msgid "Scope" | |
752 | msgstr "المدى" | |
753 | ||
754 | #: ../tools/polkit-gnome-authorization.c:2089 | |
755 | msgid "Obtained" | |
756 | msgstr "حُصِل عليها" | |
757 | ||
758 | #: ../tools/polkit-gnome-authorization.c:2097 | |
759 | msgid "How" | |
760 | msgstr "كيف" | |
761 | ||
762 | #: ../tools/polkit-gnome-authorization.c:2105 | |
763 | msgid "Constraints" | |
764 | msgstr "القيود" | |
765 | ||
766 | #: ../tools/polkit-gnome-authorization.c:2147 | |
767 | #: ../tools/polkit-gnome-authorization.c:2161 | |
768 | msgid "_Revoke" | |
769 | msgstr "ا_سحب" | |
770 | ||
771 | #: ../tools/polkit-gnome-authorization.c:2154 | |
772 | msgid "_Revoke..." | |
773 | msgstr "ا_سحب..." | |
774 | ||
775 | #: ../tools/polkit-gnome-authorization.c:2174 | |
776 | msgid "_Show authorizations from all users..." | |
777 | msgstr "ا_عرض تخويلات كل المستخدمين..." | |
778 | ||
779 | #: ../tools/polkit-gnome-authorization.c:2175 | |
780 | msgid "_Show authorizations from all users" | |
781 | msgstr "ا_عرض تخويلات كل المستخدمين" | |
782 | ||
783 | #: ../tools/polkit-gnome-authorization.c:2417 | |
784 | msgid "Select an action" | |
785 | msgstr "اختر إجراء" | |
786 |
6 | 6 | msgstr "" |
7 | 7 | "Project-Id-Version: policykit-gnome trunk\n" |
8 | 8 | "Report-Msgid-Bugs-To: \n" |
9 | "POT-Creation-Date: 2008-04-13 12:56+0900\n" | |
10 | "PO-Revision-Date: 2008-04-13 12:55+0900\n" | |
9 | "POT-Creation-Date: 2008-08-04 23:13+0900\n" | |
10 | "PO-Revision-Date: 2008-08-04 23:12+0900\n" | |
11 | 11 | "Last-Translator: Takeshi AIHANA <takeshi.aihana@gmail.com>\n" |
12 | 12 | "Language-Team: Japanese <takeshi.aihana@gmail.com>\n" |
13 | 13 | "MIME-Version: 1.0\n" |
15 | 15 | "Content-Transfer-Encoding: 8bit\n" |
16 | 16 | |
17 | 17 | #: ../data/polkit-gnome-authorization.desktop.in.h:1 |
18 | #: ../tools/polkit-gnome-authorization.c:2439 | |
18 | #: ../tools/polkit-gnome-authorization.c:2443 | |
19 | 19 | msgid "Authorizations" |
20 | 20 | msgstr "権限の管理" |
21 | 21 | |
22 | 22 | #: ../data/polkit-gnome-authorization.desktop.in.h:2 |
23 | 23 | msgid "Configure authorizations" |
24 | 24 | msgstr "いろいろな権限を設定します" |
25 | ||
26 | #: ../data/polkit-gnome.schemas.in.h:1 | |
27 | msgid "" | |
28 | "A list of PolicyKit action where the \"retain authorization\" checkbox isn't " | |
29 | "checked by default; this list is maintained by the authentication dialog " | |
30 | "code itself. For example, if a user unchecks the \"retain authorization\" " | |
31 | "check box for an action and successfully obtains an authorization for the " | |
32 | "action, the action will be added to this list." | |
33 | msgstr "" | |
34 | "\"認証結果を使用し続ける\" のチェックボックスをデフォルトで OFF にしておく " | |
35 | "PolicyKit アクションを並べたリストです。このリストは認証ダイアログのオブジェ" | |
36 | "クトよって管理されます。例えば、ユーザが任意のアクションに対して \"認証結果を" | |
37 | "使用し続ける\" のチェックを外し、そのアクションを実行する権限を手に入れたら、" | |
38 | "このリストにそのアクションが追加されるということです。" | |
39 | ||
40 | #: ../data/polkit-gnome.schemas.in.h:2 | |
41 | msgid "" | |
42 | "A list of actions where the \"retain authorization\" checkbox isn't checked " | |
43 | "by default" | |
44 | msgstr "" | |
45 | "デフォルトで \"認証結果を使用し続ける\" のチェックボックスを OFF にしておくア" | |
46 | "クション" | |
47 | ||
48 | #: ../data/polkit-gnome.schemas.in.h:3 | |
49 | msgid "" | |
50 | "If set to true, the authentication dialog from PolicyKit-gnome will grab the " | |
51 | "keyboard, so that you will not be able to type in other programs while the " | |
52 | "dialog is active. Use this if your window manager does not focus the " | |
53 | "authentication dialog automatically, and you want to avoid accidentally " | |
54 | "typing passwords in other programs." | |
55 | msgstr "" | |
56 | "TRUE にすると、PolicyKit-gnome の認証ダイアログでキーボード入力をつかんだまま" | |
57 | "にするので、このダイアログが表示されている間は他のアプリでキーボードを利用す" | |
58 | "ることができなくなります。この機能を使えば、お使いのウィンドウ・マネージャが" | |
59 | "認証ダイアログにフォーカスを与えなかった場合、キーボードからパスワードを入力" | |
60 | "した時にフォーカスが当たっている他のプログラムに誤って表示されるという危険性" | |
61 | "を回避することができます。" | |
62 | ||
63 | #: ../data/polkit-gnome.schemas.in.h:4 | |
64 | msgid "" | |
65 | "If set to true, then \"retain authorization\" check box (if present) is " | |
66 | "checked by default in the authentication dialog unless the action is " | |
67 | "mentioned in the \"/desktop/gnome/policykit/" | |
68 | "auth_dialog_retain_authorization_blacklist\" key." | |
69 | msgstr "" | |
70 | "TRUE にすると、\"/desktop/gnome/policykit/" | |
71 | "auth_dialog_retain_authorization_blacklist\" キーに格納したアクションを除き、" | |
72 | "認証ダイアログで \"認証結果を使用し続ける\" のチェックボックスをデフォルトで " | |
73 | "ON にしておきます。" | |
74 | ||
75 | #: ../data/polkit-gnome.schemas.in.h:5 | |
76 | msgid "Whether the authentication dialog should grab the keyboard" | |
77 | msgstr "認証ダイアログでキーボード入力をつかんだままにするかどうか" | |
78 | ||
79 | #: ../data/polkit-gnome.schemas.in.h:6 | |
80 | msgid "Whether the retain authorization check box is checked by default" | |
81 | msgstr "" | |
82 | "\"認証結果を使用し続ける\" のチェックボックスをデフォルトで ON にするかどうか" | |
25 | 83 | |
26 | 84 | #: ../examples/polkit-gnome-example.c:137 |
27 | 85 | msgid "Copyright © 2007 David Zeuthen" |
114 | 172 | msgstr "Tweak!" |
115 | 173 | |
116 | 174 | #: ../examples/polkit-gnome-example.c:306 |
117 | #: ../examples/polkit-gnome-example.policy.in.h:17 | |
175 | #: ../examples/org.gnome.policykit.examples.policy.in.h:17 | |
118 | 176 | msgid "Tweak" |
119 | 177 | msgstr "Tweak" |
120 | 178 | |
201 | 259 | "<i>メモ: /etc/PolicyKit/Policy.conf というファイルを編集して時債に代理ウィ" |
202 | 260 | "ジェットが更新しているか確認してみて下さい。</i>" |
203 | 261 | |
204 | #: ../examples/polkit-gnome-example.policy.in.h:1 | |
262 | #: ../examples/org.gnome.policykit.examples.policy.in.h:1 | |
205 | 263 | msgid "Frobnicate" |
206 | 264 | msgstr "Frobnicate" |
207 | 265 | |
208 | #: ../examples/polkit-gnome-example.policy.in.h:2 | |
266 | #: ../examples/org.gnome.policykit.examples.policy.in.h:2 | |
209 | 267 | msgid "Jump" |
210 | 268 | msgstr "Jump" |
211 | 269 | |
212 | #: ../examples/polkit-gnome-example.policy.in.h:3 | |
270 | #: ../examples/org.gnome.policykit.examples.policy.in.h:3 | |
213 | 271 | msgid "Kick bar" |
214 | 272 | msgstr "Kick bar" |
215 | 273 | |
216 | #: ../examples/polkit-gnome-example.policy.in.h:4 | |
274 | #: ../examples/org.gnome.policykit.examples.policy.in.h:4 | |
217 | 275 | msgid "Kick baz" |
218 | 276 | msgstr "Kick baz" |
219 | 277 | |
220 | #: ../examples/polkit-gnome-example.policy.in.h:5 | |
278 | #: ../examples/org.gnome.policykit.examples.policy.in.h:5 | |
221 | 279 | msgid "Kick foo" |
222 | 280 | msgstr "Kick foo" |
223 | 281 | |
224 | #: ../examples/polkit-gnome-example.policy.in.h:6 | |
282 | #: ../examples/org.gnome.policykit.examples.policy.in.h:6 | |
225 | 283 | msgid "Punch" |
226 | 284 | msgstr "Punch" |
227 | 285 | |
228 | #: ../examples/polkit-gnome-example.policy.in.h:7 | |
286 | #: ../examples/org.gnome.policykit.examples.policy.in.h:7 | |
229 | 287 | msgid "" |
230 | 288 | "System policy prevents the PolicyKit-gnome example helper from Frobnicating" |
231 | 289 | msgstr "" |
232 | 290 | "System policy prevents the PolicyKit-gnome example helper from Frobnicating" |
233 | 291 | |
234 | #: ../examples/polkit-gnome-example.policy.in.h:8 | |
292 | #: ../examples/org.gnome.policykit.examples.policy.in.h:8 | |
235 | 293 | msgid "System policy prevents the PolicyKit-gnome example helper from Jumping" |
236 | 294 | msgstr "System policy prevents the PolicyKit-gnome example helper from Jumping" |
237 | 295 | |
238 | #: ../examples/polkit-gnome-example.policy.in.h:9 | |
296 | #: ../examples/org.gnome.policykit.examples.policy.in.h:9 | |
239 | 297 | msgid "" |
240 | 298 | "System policy prevents the PolicyKit-gnome example helper from Kicking bar" |
241 | 299 | msgstr "" |
242 | 300 | "System policy prevents the PolicyKit-gnome example helper from Kicking bar" |
243 | 301 | |
244 | #: ../examples/polkit-gnome-example.policy.in.h:10 | |
302 | #: ../examples/org.gnome.policykit.examples.policy.in.h:10 | |
245 | 303 | msgid "" |
246 | 304 | "System policy prevents the PolicyKit-gnome example helper from Kicking baz" |
247 | 305 | msgstr "" |
248 | 306 | "System policy prevents the PolicyKit-gnome example helper from Kicking baz" |
249 | 307 | |
250 | #: ../examples/polkit-gnome-example.policy.in.h:11 | |
308 | #: ../examples/org.gnome.policykit.examples.policy.in.h:11 | |
251 | 309 | msgid "" |
252 | 310 | "System policy prevents the PolicyKit-gnome example helper from Kicking foo" |
253 | 311 | msgstr "" |
254 | 312 | "System policy prevents the PolicyKit-gnome example helper from Kicking foo" |
255 | 313 | |
256 | #: ../examples/polkit-gnome-example.policy.in.h:12 | |
314 | #: ../examples/org.gnome.policykit.examples.policy.in.h:12 | |
257 | 315 | msgid "System policy prevents the PolicyKit-gnome example helper from Punching" |
258 | 316 | msgstr "" |
259 | 317 | "System policy prevents the PolicyKit-gnome example helper from Punching" |
260 | 318 | |
261 | #: ../examples/polkit-gnome-example.policy.in.h:13 | |
319 | #: ../examples/org.gnome.policykit.examples.policy.in.h:13 | |
262 | 320 | msgid "System policy prevents the PolicyKit-gnome example helper from Toggling" |
263 | 321 | msgstr "" |
264 | 322 | "System policy prevents the PolicyKit-gnome example helper from Toggling" |
265 | 323 | |
266 | #: ../examples/polkit-gnome-example.policy.in.h:14 | |
324 | #: ../examples/org.gnome.policykit.examples.policy.in.h:14 | |
267 | 325 | msgid "System policy prevents the PolicyKit-gnome example helper from Tweaking" |
268 | 326 | msgstr "" |
269 | 327 | "System policy prevents the PolicyKit-gnome example helper from Tweaking" |
270 | 328 | |
271 | #: ../examples/polkit-gnome-example.policy.in.h:15 | |
329 | #: ../examples/org.gnome.policykit.examples.policy.in.h:15 | |
272 | 330 | msgid "" |
273 | 331 | "System policy prevents the PolicyKit-gnome example helper from Twiddling" |
274 | 332 | msgstr "" |
275 | 333 | "System policy prevents the PolicyKit-gnome example helper from Twiddling" |
276 | 334 | |
277 | #: ../examples/polkit-gnome-example.policy.in.h:16 | |
335 | #: ../examples/org.gnome.policykit.examples.policy.in.h:16 | |
278 | 336 | msgid "Toggle" |
279 | 337 | msgstr "Toggle" |
280 | 338 | |
281 | #: ../examples/polkit-gnome-example.policy.in.h:18 | |
339 | #: ../examples/org.gnome.policykit.examples.policy.in.h:18 | |
282 | 340 | msgid "Twiddle" |
283 | 341 | msgstr "Twiddle" |
284 | 342 | |
300 | 358 | msgid "Starting PolicyKit GNOME session daemon version %s" |
301 | 359 | msgstr "PolicyKit の GNOME セッション・デーモン (バージョン %s) の起動中..." |
302 | 360 | |
303 | #: ../src/polkit-gnome-auth-dialog.c:190 | |
361 | #: ../src/polkit-gnome-auth-dialog.c:191 | |
304 | 362 | #: ../tools/polkit-gnome-authorization.c:649 |
305 | 363 | msgid "Select user..." |
306 | 364 | msgstr "ユーザの選択..." |
307 | 365 | |
308 | #: ../src/polkit-gnome-auth-dialog.c:211 | |
366 | #: ../src/polkit-gnome-auth-dialog.c:212 | |
309 | 367 | #: ../tools/polkit-gnome-authorization.c:665 |
310 | 368 | #, c-format |
311 | 369 | msgid "%s (%s)" |
312 | 370 | msgstr "%s (%s)" |
313 | 371 | |
314 | #: ../src/polkit-gnome-auth-dialog.c:292 | |
372 | #: ../src/polkit-gnome-auth-dialog.c:293 | |
315 | 373 | msgid "_Remember authorization for this session" |
316 | 374 | msgstr "このセッションに対する権限を記憶しておく(_R)" |
317 | 375 | |
318 | #: ../src/polkit-gnome-auth-dialog.c:298 | |
376 | #: ../src/polkit-gnome-auth-dialog.c:299 | |
319 | 377 | msgid "_Remember authorization" |
320 | 378 | msgstr "権限を記憶しておく(_R)" |
321 | 379 | |
322 | #: ../src/polkit-gnome-auth-dialog.c:313 | |
380 | #: ../src/polkit-gnome-auth-dialog.c:314 | |
323 | 381 | msgid "" |
324 | 382 | "An application is attempting to perform an action that requires privileges. " |
325 | 383 | "Authentication as one of the users below is required to perform this action." |
328 | 386 | "クションを実行するには、次に示すいずれかのユーザとしての認証が必要になりま" |
329 | 387 | "す。" |
330 | 388 | |
331 | #: ../src/polkit-gnome-auth-dialog.c:320 | |
389 | #: ../src/polkit-gnome-auth-dialog.c:321 | |
332 | 390 | msgid "" |
333 | 391 | "An application is attempting to perform an action that requires privileges. " |
334 | 392 | "Authentication as the super user is required to perform this action." |
336 | 394 | "あるアプリケーションが特権の必要なアクションを実行しようとしています。このア" |
337 | 395 | "クションを実行するには root 権限としての認証が必要になります。" |
338 | 396 | |
339 | #: ../src/polkit-gnome-auth-dialog.c:324 | |
397 | #: ../src/polkit-gnome-auth-dialog.c:325 | |
340 | 398 | msgid "" |
341 | 399 | "An application is attempting to perform an action that requires privileges. " |
342 | 400 | "Authentication is required to perform this action." |
344 | 402 | "あるアプリケーションが特権の必要なアクションを実行しようとしています。このア" |
345 | 403 | "クションを実行するには認証が必要になります。" |
346 | 404 | |
347 | #: ../src/polkit-gnome-auth-dialog.c:348 | |
405 | #: ../src/polkit-gnome-auth-dialog.c:406 | |
348 | 406 | #, c-format |
349 | 407 | msgid "Click to edit %s" |
350 | 408 | msgstr "ここをクリックして %s を編集して下さい" |
351 | 409 | |
352 | #: ../src/polkit-gnome-auth-dialog.c:371 | |
410 | #: ../src/polkit-gnome-auth-dialog.c:431 | |
353 | 411 | #: ../tools/polkit-gnome-authorization.c:1391 |
354 | 412 | #, c-format |
355 | 413 | msgid "Click to open %s" |
356 | 414 | msgstr "ここをクリックして %s を開いて下さい" |
357 | 415 | |
358 | #: ../src/polkit-gnome-auth-dialog.c:600 | |
416 | #: ../src/polkit-gnome-auth-dialog.c:668 | |
359 | 417 | msgid "_Authenticate" |
360 | 418 | msgstr "認証する(_A)" |
361 | 419 | |
362 | #: ../src/polkit-gnome-auth-dialog.c:659 ../src/polkit-gnome-manager.c:680 | |
363 | #: ../src/polkit-gnome-manager.c:729 | |
420 | #: ../src/polkit-gnome-auth-dialog.c:727 ../src/polkit-gnome-manager.c:686 | |
421 | #: ../src/polkit-gnome-manager.c:735 | |
364 | 422 | msgid "_Password:" |
365 | 423 | msgstr "パスワード(_P):" |
366 | 424 | |
367 | #: ../src/polkit-gnome-auth-dialog.c:681 | |
425 | #: ../src/polkit-gnome-auth-dialog.c:749 | |
368 | 426 | msgid "For this _session only" |
369 | 427 | msgstr "このセッションだけ有効にする(_S)" |
370 | 428 | |
371 | #: ../src/polkit-gnome-auth-dialog.c:689 | |
429 | #: ../src/polkit-gnome-auth-dialog.c:757 | |
372 | 430 | msgid "<small><b>_Details</b></small>" |
373 | 431 | msgstr "<small><b>詳細(_D)</b></small>" |
374 | 432 | |
375 | #: ../src/polkit-gnome-auth-dialog.c:710 | |
433 | #: ../src/polkit-gnome-auth-dialog.c:778 | |
376 | 434 | msgid "<small><b>Application:</b></small>" |
377 | 435 | msgstr "<small><b>アプリケーション:</b></small>" |
378 | 436 | |
379 | #: ../src/polkit-gnome-auth-dialog.c:714 | |
437 | #: ../src/polkit-gnome-auth-dialog.c:782 | |
380 | 438 | msgid "<small><b>Action:</b></small>" |
381 | 439 | msgstr "<small><b>アクション:</b></small>" |
382 | 440 | |
383 | #: ../src/polkit-gnome-auth-dialog.c:719 | |
441 | #: ../src/polkit-gnome-auth-dialog.c:787 | |
384 | 442 | msgid "<small><b>Vendor:</b></small>" |
385 | 443 | msgstr "<small><b>ベンダ:</b></small>" |
386 | 444 | |
387 | #: ../src/polkit-gnome-auth-dialog.c:848 | |
445 | #: ../src/polkit-gnome-auth-dialog.c:916 | |
388 | 446 | msgid "Authenticate" |
389 | 447 | msgstr "認証" |
390 | 448 | |
391 | #: ../src/polkit-gnome-manager.c:724 | |
449 | #: ../src/polkit-gnome-manager.c:367 | |
450 | msgid "(unknown" | |
451 | msgstr "(不明" | |
452 | ||
453 | #: ../src/polkit-gnome-manager.c:730 | |
392 | 454 | #, c-format |
393 | 455 | msgid "_Password for %s:" |
394 | 456 | msgstr "%s のパスワード(_P):" |
395 | 457 | |
396 | #: ../src/polkit-gnome-manager.c:726 | |
458 | #: ../src/polkit-gnome-manager.c:732 | |
397 | 459 | msgid "_Password for root:" |
398 | 460 | msgstr "root のパスワード(_P):" |
399 | 461 | |
400 | #: ../src/polkit-gnome-manager.c:734 | |
462 | #: ../src/polkit-gnome-manager.c:740 | |
401 | 463 | #, c-format |
402 | 464 | msgid "_Password or swipe finger for %s:" |
403 | 465 | msgstr "%s のパスワードまたは指紋認証(_P):" |
404 | 466 | |
405 | #: ../src/polkit-gnome-manager.c:737 | |
467 | #: ../src/polkit-gnome-manager.c:743 | |
406 | 468 | msgid "_Password or swipe finger for root:" |
407 | 469 | msgstr "root のパスワードまたは指紋認証(_P):" |
408 | 470 | |
409 | #: ../src/polkit-gnome-manager.c:740 | |
471 | #: ../src/polkit-gnome-manager.c:746 | |
410 | 472 | msgid "_Password or swipe finger:" |
411 | 473 | msgstr "パスワードまたは指紋認証(_P):" |
412 | 474 | |
773 | 835 | msgid "_Show authorizations from all users" |
774 | 836 | msgstr "全てのユーザの権限を表示する(_S)" |
775 | 837 | |
776 | #: ../tools/polkit-gnome-authorization.c:2413 | |
838 | #: ../tools/polkit-gnome-authorization.c:2417 | |
777 | 839 | msgid "Select an action" |
778 | 840 | msgstr "アクションを選択して下さい" |
0 | # translation of pl.po to Polish | |
0 | # translation of policykit-gnome to Polish | |
1 | # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
2 | # Aviary.pl | |
3 | # Jeśli masz jakiekolwiek uwagi odnoszące się do tłumaczenia lub chcesz | |
4 | # pomóc w jego rozwijaniu i pielęgnowaniu, napisz do nas: | |
5 | # gnomepl@aviary.pl | |
6 | # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
1 | 7 | # Piotr Drąg <piotrdrag@gmail.com>, 2008. |
2 | # | |
8 | # Tomasz Dominikowski <tdominikowski@aviary.pl>, 2008 | |
3 | 9 | msgid "" |
4 | 10 | msgstr "" |
5 | "Project-Id-Version: pl\n" | |
11 | "Project-Id-Version: gnome-policykit\n" | |
6 | 12 | "Report-Msgid-Bugs-To: \n" |
7 | "POT-Creation-Date: 2008-05-26 22:14+0200\n" | |
8 | "PO-Revision-Date: 2008-05-24 17:59+0200\n" | |
9 | "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n" | |
10 | "Language-Team: Polish <pl@li.org>\n" | |
13 | "POT-Creation-Date: 2008-08-14 02:05+0200\n" | |
14 | "PO-Revision-Date: 2008-08-14 02:49+0100\n" | |
15 | "Last-Translator: Tomasz Dominikowski <dominikowski@gmail.com>\n" | |
16 | "Language-Team: Aviary.pl <gnomepl@aviary.pl>\n" | |
11 | 17 | "MIME-Version: 1.0\n" |
12 | 18 | "Content-Type: text/plain; charset=UTF-8\n" |
13 | 19 | "Content-Transfer-Encoding: 8bit\n" |
20 | "X-Launchpad-Export-Date: 2008-05-17 17:20+0000\n" | |
21 | "X-Generator: Launchpad (build Unknown)\n" | |
22 | "X-Poedit-Country: Poland\n" | |
23 | "X-Poedit-Language: Polish\n" | |
24 | "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" | |
14 | 25 | |
15 | 26 | #: ../data/polkit-gnome-authorization.desktop.in.h:1 |
16 | 27 | #: ../tools/polkit-gnome-authorization.c:2443 |
19 | 30 | |
20 | 31 | #: ../data/polkit-gnome-authorization.desktop.in.h:2 |
21 | 32 | msgid "Configure authorizations" |
22 | msgstr "Konfiguracja upoważnień" | |
33 | msgstr "Konfigurowanie upoważnień" | |
23 | 34 | |
24 | 35 | #: ../data/polkit-gnome.schemas.in.h:1 |
25 | msgid "" | |
26 | "If set to true, the authentication dialog from PolicyKit-gnome will grab the " | |
27 | "keyboard, so that you will not be able to type in other programs while the " | |
28 | "dialog is active. Use this if your window manager does not focus the " | |
29 | "authentication dialog automatically, and you want to avoid accidentally " | |
30 | "typing passwords in other programs." | |
31 | msgstr "" | |
32 | "Jeśli włączone, to okno dialogowe uwierzytelniania programu PolicyKit-gnome " | |
33 | "przejmie klawiaturę tak, że nie będzie możliwe korzystanie z niej dopóki " | |
34 | "okno to jest aktywne. Opcja przydatna jest gdy menedżer okien nie aktywuje " | |
35 | "automatycznie okna uwierzytelniania i użytkownik chce zabezpieczyć się przed " | |
36 | "przypadkowym wpisaniem hasła w innym programie." | |
36 | msgid "A list of PolicyKit action where the \"retain authorization\" checkbox isn't checked by default; this list is maintained by the authentication dialog code itself. For example, if a user unchecks the \"retain authorization\" check box for an action and successfully obtains an authorization for the action, the action will be added to this list." | |
37 | msgstr "Lista działań PolicyKit, przy których opcja \"Zachowanie uwierzytelnienia\" nie jest domyślnie włączona; ta lista jest utrzymywana przez kod okna dialogowego uwierzytelniania. Przykładowo, jeśli użytkownik odznaczy opcję \"Zachowaj uwierzytelnienie\" dla działania i uzyska uwierzytelnienie dla tego działania, to te działanie zostanie dodane do listy." | |
37 | 38 | |
38 | 39 | #: ../data/polkit-gnome.schemas.in.h:2 |
40 | msgid "A list of actions where the \"retain authorization\" checkbox isn't checked by default" | |
41 | msgstr "Lista działań, przy których opcja \"Zachowanie uwierzytelnienia\" nie jest domyślnie włączona." | |
42 | ||
43 | #: ../data/polkit-gnome.schemas.in.h:3 | |
44 | msgid "If set to true, the authentication dialog from PolicyKit-gnome will grab the keyboard, so that you will not be able to type in other programs while the dialog is active. Use this if your window manager does not focus the authentication dialog automatically, and you want to avoid accidentally typing passwords in other programs." | |
45 | msgstr "Jeśli ustawione na \"true\", okno dialogowe uwierzytelniania z PolicyKit-gnome przechwyci klawiaturę, co uniemożliwi wprowadzanie znaków do innych programów podczas aktywności okna. Należy tego użyć, jeśli menedżer okien nie wprowadza automatycznie skupienia na okno dialogowe uwierzytelniania, a istnieje potrzeba uniknięcia przypadkowego wprowadzenia hasła w innych programach." | |
46 | ||
47 | #: ../data/polkit-gnome.schemas.in.h:4 | |
48 | msgid "If set to true, then \"retain authorization\" check box (if present) is checked by default in the authentication dialog unless the action is mentioned in the \"/desktop/gnome/policykit/auth_dialog_retain_authorization_blacklist\" key." | |
49 | msgstr "Jeśli ustawione na \"true\", opcja \"Zachowanie uwierzytelnienia\" (jeśli obecna) jest domyślnie włączona w oknie dialogowym uwierzytelniania, chyba, że działanie jest wymienione w kluczu \"/desktop/gnome/policykit/auth_dialog_retain_authorization_blacklist\"." | |
50 | ||
51 | #: ../data/polkit-gnome.schemas.in.h:5 | |
39 | 52 | msgid "Whether the authentication dialog should grab the keyboard" |
40 | msgstr "" | |
41 | "Określa, czy okno dialogowe uwierzytelniania ma przechwytywać klawiaturę" | |
53 | msgstr "Określa, czy okno dialogowe uwierzytelniania powinno przejąć klawiaturę" | |
54 | ||
55 | #: ../data/polkit-gnome.schemas.in.h:6 | |
56 | msgid "Whether the retain authorization check box is checked by default" | |
57 | msgstr "Określa, czy opcja \"Zachowanie uwierzytelnienia\" jest domyślnie zaznaczona" | |
42 | 58 | |
43 | 59 | #: ../examples/polkit-gnome-example.c:137 |
44 | 60 | msgid "Copyright © 2007 David Zeuthen" |
46 | 62 | |
47 | 63 | #: ../examples/polkit-gnome-example.c:138 |
48 | 64 | msgid "PolicyKit-gnome Website" |
49 | msgstr "Strona WWW PolicyKit-gnome" | |
65 | msgstr "Witryna PolicyKit-gnome" | |
50 | 66 | |
51 | 67 | #: ../examples/polkit-gnome-example.c:140 |
52 | 68 | #: ../examples/polkit-gnome-example.c:446 |
53 | 69 | msgid "PolicyKit-gnome demo" |
54 | msgstr "Demo PolicyKit-gnome" | |
70 | msgstr "Demonstracja PolicyKit-gnome" | |
55 | 71 | |
56 | 72 | #: ../examples/polkit-gnome-example.c:141 |
57 | 73 | msgid "PolicyKit for the GNOME desktop" |
64 | 80 | #. name, stock id, label |
65 | 81 | #: ../examples/polkit-gnome-example.c:152 |
66 | 82 | msgid "_Actions" |
67 | msgstr "Dzi_ałania" | |
83 | msgstr "_Działania" | |
68 | 84 | |
69 | 85 | #. name, stock id, label |
70 | 86 | #: ../examples/polkit-gnome-example.c:153 |
75 | 91 | #. name, stock id |
76 | 92 | #: ../examples/polkit-gnome-example.c:156 |
77 | 93 | msgid "_Quit" |
78 | msgstr "Za_kończ" | |
94 | msgstr "_Zakończ" | |
79 | 95 | |
80 | 96 | #. label, accelerator |
81 | 97 | #: ../examples/polkit-gnome-example.c:157 |
85 | 101 | #. name, stock id |
86 | 102 | #: ../examples/polkit-gnome-example.c:161 |
87 | 103 | msgid "_About" |
88 | msgstr "_Informacje" | |
104 | msgstr "_O programie" | |
89 | 105 | |
90 | 106 | #. label, accelerator |
91 | 107 | #: ../examples/polkit-gnome-example.c:162 |
92 | 108 | msgid "About" |
93 | msgstr "Informacje" | |
109 | msgstr "O programie" | |
94 | 110 | |
95 | 111 | #: ../examples/polkit-gnome-example.c:243 |
96 | msgid "" | |
97 | "Making the helper <b>Frobnicate</b> requires the user to authenticate. The " | |
98 | "authorization is kept for the life time of the process" | |
99 | msgstr "" | |
100 | "Aby program pomocniczy wykonał <b>Frobnicate</b>, użytkownik musi się " | |
101 | "uwierzytelnić. Upoważnienie jest zachowane w czasie trwania procesu" | |
112 | msgid "Making the helper <b>Frobnicate</b> requires the user to authenticate. The authorization is kept for the life time of the process" | |
113 | msgstr "Aby program pomocniczy wykonał <b>Frobnicate</b>, użytkownik musi się uwierzytelnić. Upoważnienie jest zachowane w czasie trwania procesu" | |
102 | 114 | |
103 | 115 | #: ../examples/polkit-gnome-example.c:252 |
104 | 116 | msgid "Frobnicate!" |
105 | msgstr "Wykonaj \"Frobnicate\"!" | |
117 | msgstr "Wykonaj \"Frobnicate\"" | |
106 | 118 | |
107 | 119 | #: ../examples/polkit-gnome-example.c:267 |
108 | msgid "" | |
109 | "Making the helper <b>Jump</b> requires the user to authenticate. This is a " | |
110 | "one-shot authorization." | |
111 | msgstr "" | |
112 | "Aby program pomocniczy wykonał <b>Jump</b>, użytkownik musi się " | |
113 | "uwierzytelnić. Upoważnienie jest jednorazowe." | |
120 | msgid "Making the helper <b>Jump</b> requires the user to authenticate. This is a one-shot authorization." | |
121 | msgstr "Aby program pomocniczy wykonał <b>Jump</b>, użytkownik musi się uwierzytelnić. Upoważnienie jest jednorazowe." | |
114 | 122 | |
115 | 123 | #: ../examples/polkit-gnome-example.c:275 |
116 | 124 | msgid "Jump!" |
117 | msgstr "Wykonaj \"Jump\"!" | |
125 | msgstr "Wykonaj \"Jump\"" | |
118 | 126 | |
119 | 127 | #: ../examples/polkit-gnome-example.c:290 |
120 | msgid "" | |
121 | "Making the helper <b>Tweak</b> requires a system administrator to " | |
122 | "authenticate. This instance overrides the defaults set in " | |
123 | "polkit_gnome_action_new()." | |
124 | msgstr "" | |
125 | "Aby program pomocniczy wykonał <b>Frobnicate</b>, administrator systemu musi " | |
126 | "się uwierzytelnić. Domyślne ustawienia w polkit_gnome_action_new() zostaną " | |
127 | "zastąpione." | |
128 | msgid "Making the helper <b>Tweak</b> requires a system administrator to authenticate. This instance overrides the defaults set in polkit_gnome_action_new()." | |
129 | msgstr "Aby program pomocniczy wykonał <b>Frobnicate</b>, administrator systemu musi się uwierzytelnić. Domyślne ustawienia w polkit_gnome_action_new() zostaną zastąpione." | |
128 | 130 | |
129 | 131 | #: ../examples/polkit-gnome-example.c:299 |
130 | 132 | #: ../examples/polkit-gnome-example.c:320 |
131 | 133 | msgid "Tweak!" |
132 | msgstr "Wykonaj \"Tweak\"!" | |
134 | msgstr "Wykonaj \"Tweak\"" | |
133 | 135 | |
134 | 136 | #: ../examples/polkit-gnome-example.c:306 |
137 | #: ../examples/org.gnome.policykit.examples.policy.in.h:17 | |
135 | 138 | msgid "Tweak" |
136 | 139 | msgstr "Wykonaj \"Tweak\"" |
137 | 140 | |
141 | 144 | |
142 | 145 | #: ../examples/polkit-gnome-example.c:308 |
143 | 146 | msgid "If your admin wasn't annoying, you could do this" |
144 | msgstr "Gdyby administrator nie był wredny, sam mógłbyś to zrobić" | |
147 | msgstr "Jeśli administrator nie byłby wkurzający, użytkownik mógłby tego dokonać" | |
145 | 148 | |
146 | 149 | #: ../examples/polkit-gnome-example.c:313 |
147 | 150 | msgid "Tweak..." |
148 | msgstr "Wykonaj \"Tweak\"..." | |
151 | msgstr "Wykonaj \"Tweak...\"" | |
149 | 152 | |
150 | 153 | #: ../examples/polkit-gnome-example.c:314 |
151 | 154 | msgid "Tweak... (long)" |
152 | msgstr "Wykonaj \"Tweak\"... (długie)" | |
155 | msgstr "Wykonaj \"Tweak...\" (długie)" | |
153 | 156 | |
154 | 157 | #: ../examples/polkit-gnome-example.c:315 |
155 | 158 | msgid "Only card carrying tweakers can do this!" |
156 | msgstr "Tylko posiadacze kart firmy \"Tweak\" mogą to robić!" | |
159 | msgstr "Tylko członkowie klubu mogą wykonać \"Tweak\"." | |
157 | 160 | |
158 | 161 | #: ../examples/polkit-gnome-example.c:321 |
159 | 162 | msgid "Tweak! (long)" |
160 | msgstr "Wykonaj \"Tweak\"! (długie)" | |
163 | msgstr "Wykonaj \"Tweak\" (długie)" | |
161 | 164 | |
162 | 165 | #: ../examples/polkit-gnome-example.c:322 |
163 | 166 | msgid "Go ahead, tweak tweak tweak!" |
164 | msgstr "No dalej, zrób \"tweak\", \"tweak\", \"tweak\"!" | |
167 | msgstr "No dalej, wykonaj \"tweak\" \"tweak\" \"tweak\"." | |
165 | 168 | |
166 | 169 | #: ../examples/polkit-gnome-example.c:339 |
167 | msgid "" | |
168 | "Making the helper <b>Twiddle</b> requires a system administrator to " | |
169 | "authenticate. Once authenticated, this privilege can be retained " | |
170 | "indefinitely." | |
171 | msgstr "" | |
172 | "Aby program pomocniczy wykonał <b>Twiddle</b>, administrator systemu musi " | |
173 | "się uwierzytelnić. Po uwierzytelnieniu to uprawnienie może być utrzymywane w " | |
174 | "nieskończoność." | |
170 | msgid "Making the helper <b>Twiddle</b> requires a system administrator to authenticate. Once authenticated, this privilege can be retained indefinitely." | |
171 | msgstr "Aby program pomocniczy wykonał <b>Twiddle</b>, administrator systemu musi się uwierzytelnić. Po uwierzytelnieniu to uprawnienie może być zachowane na stałe." | |
175 | 172 | |
176 | 173 | #: ../examples/polkit-gnome-example.c:348 |
177 | 174 | msgid "Twiddle!" |
178 | msgstr "Wykonaj \"Twiddle\"!" | |
175 | msgstr "Wykonaj \"Twiddle\"" | |
179 | 176 | |
180 | 177 | #: ../examples/polkit-gnome-example.c:363 |
181 | msgid "" | |
182 | "Making the helper <b>Punch</b> requires the user to authenticate. Once " | |
183 | "authenticated, this privilege can be retained for the remainder of the " | |
184 | "desktop session." | |
185 | msgstr "" | |
186 | "Aby program pomocniczy wykonał <b>Punch</b>, użytkownik musi się " | |
187 | "uwierzytelnić. Po uwierzytelnieniu to uprawnienie może być utrzymywane przez " | |
188 | "całą sesję pulpitu." | |
178 | msgid "Making the helper <b>Punch</b> requires the user to authenticate. Once authenticated, this privilege can be retained for the remainder of the desktop session." | |
179 | msgstr "Aby program pomocniczy wykonał <b>Punch</b>, użytkownik musi się uwierzytelnić. Po uwierzytelnieniu to uprawnienie może być zachowane na czas całej sesji." | |
189 | 180 | |
190 | 181 | #: ../examples/polkit-gnome-example.c:372 |
191 | 182 | msgid "Punch!" |
192 | msgstr "Wykonaj \"Punch\"!" | |
183 | msgstr "Wykonaj \"Punch\"" | |
193 | 184 | |
194 | 185 | #: ../examples/polkit-gnome-example.c:387 |
195 | msgid "" | |
196 | "The <b>Toggle</b> action demonstrates the use of PolicyKit to drive a " | |
197 | "GtkToggleButton; it's an intuitive way to ask users to give up " | |
198 | "authorizations when they are done with them. E.g. the button is 'pressed in' " | |
199 | "exactlywhen the authorization is held. Toggling the button means obtaining " | |
200 | "resp. revoking the authorization in question." | |
201 | msgstr "" | |
202 | "Działanie <b>Toggle</b> pokazuje użycie PolicyKit do sterowania " | |
203 | "GtkToggleButton. Jest to intuicyjny sposób na odbieranie upoważnień " | |
204 | "użytkowników, gdy nie są one im już dłużej potrzebne. Na przykład przycisk " | |
205 | "jest \"naciśnięty\" właśnie wtedy, kiedy upoważnienie jest utrzymane. " | |
206 | "Przełączenie przycisku oznacza uzyskanie odebrania upoważnienia." | |
186 | msgid "The <b>Toggle</b> action demonstrates the use of PolicyKit to drive a GtkToggleButton; it's an intuitive way to ask users to give up authorizations when they are done with them. E.g. the button is 'pressed in' exactlywhen the authorization is held. Toggling the button means obtaining resp. revoking the authorization in question." | |
187 | msgstr "Działanie <b>Toggle</b> demonstruje użycie PolicyKit do sterowania GtkToggleButton. Jest to intuicyjny sposób na odbieranie upoważnień użytkowników, gdy nie są one im już dłużej potrzebne. Na przykład przycisk jest \"wciśnięty\" właśnie wtedy, kiedy upoważnienie jest utrzymane. Przełączenie przycisku oznacza uzyskanie odebrania upoważnienia." | |
207 | 188 | |
208 | 189 | #: ../examples/polkit-gnome-example.c:401 |
209 | 190 | msgid "Click to make changes..." |
210 | msgstr "Naciśnij, aby wprowadzić zmiany..." | |
191 | msgstr "Kliknięcie dokona zmian..." | |
211 | 192 | |
212 | 193 | #: ../examples/polkit-gnome-example.c:402 |
213 | 194 | msgid "Click to prevent changes" |
214 | msgstr "Naciśnij, aby powstrzymać zmiany" | |
195 | msgstr "Kliknięcie zapobiegnie zmianom" | |
215 | 196 | |
216 | 197 | #: ../examples/polkit-gnome-example.c:422 |
217 | msgid "" | |
218 | "<i>Tip: try editing /etc/PolicyKit/Policy.conf and see the proxy widgets " | |
219 | "update in real-time.</i>." | |
220 | msgstr "" | |
221 | "<i>Wskazówka: można spróbować zmodyfikować /etc/PolicyKit/Policy.conf i " | |
222 | "zobaczyć aktualizację widgetów pośredniczących w czasie rzeczywistym.</i>." | |
198 | msgid "<i>Tip: try editing /etc/PolicyKit/Policy.conf and see the proxy widgets update in real-time.</i>." | |
199 | msgstr "<i>Wskazówka: można spróbować zmodyfikować /etc/PolicyKit/Policy.conf i zobaczyć aktualizowanie widgetów pośredniczących w czasie rzeczywistym.</i>." | |
200 | ||
201 | #: ../examples/org.gnome.policykit.examples.policy.in.h:1 | |
202 | msgid "Frobnicate" | |
203 | msgstr "Wykonaj \"Frobnicate\"" | |
204 | ||
205 | #: ../examples/org.gnome.policykit.examples.policy.in.h:2 | |
206 | msgid "Jump" | |
207 | msgstr "Wykonaj \"Jump\"" | |
208 | ||
209 | #: ../examples/org.gnome.policykit.examples.policy.in.h:3 | |
210 | msgid "Kick bar" | |
211 | msgstr "Wykonaj \"Kick\" na \"bar\"" | |
212 | ||
213 | #: ../examples/org.gnome.policykit.examples.policy.in.h:4 | |
214 | msgid "Kick baz" | |
215 | msgstr "Wykonaj \"Kick\" na \"baz" | |
216 | ||
217 | #: ../examples/org.gnome.policykit.examples.policy.in.h:5 | |
218 | msgid "Kick foo" | |
219 | msgstr "Wykonaj \"Kick\" na \"foo\"" | |
220 | ||
221 | #: ../examples/org.gnome.policykit.examples.policy.in.h:6 | |
222 | msgid "Punch" | |
223 | msgstr "Wykonaj \"Punch\"" | |
224 | ||
225 | #: ../examples/org.gnome.policykit.examples.policy.in.h:7 | |
226 | msgid "System policy prevents the PolicyKit-gnome example helper from Frobnicating" | |
227 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Frobnicate\"" | |
228 | ||
229 | #: ../examples/org.gnome.policykit.examples.policy.in.h:8 | |
230 | msgid "System policy prevents the PolicyKit-gnome example helper from Jumping" | |
231 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Jump\"" | |
232 | ||
233 | #: ../examples/org.gnome.policykit.examples.policy.in.h:9 | |
234 | msgid "System policy prevents the PolicyKit-gnome example helper from Kicking bar" | |
235 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Kick\" na \"bar\"" | |
236 | ||
237 | #: ../examples/org.gnome.policykit.examples.policy.in.h:10 | |
238 | msgid "System policy prevents the PolicyKit-gnome example helper from Kicking baz" | |
239 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Kick\" na \"baz\"" | |
240 | ||
241 | #: ../examples/org.gnome.policykit.examples.policy.in.h:11 | |
242 | msgid "System policy prevents the PolicyKit-gnome example helper from Kicking foo" | |
243 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Kick\" na \"foo\"" | |
244 | ||
245 | #: ../examples/org.gnome.policykit.examples.policy.in.h:12 | |
246 | msgid "System policy prevents the PolicyKit-gnome example helper from Punching" | |
247 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Punch\"" | |
248 | ||
249 | #: ../examples/org.gnome.policykit.examples.policy.in.h:13 | |
250 | msgid "System policy prevents the PolicyKit-gnome example helper from Toggling" | |
251 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Toggle\"" | |
252 | ||
253 | #: ../examples/org.gnome.policykit.examples.policy.in.h:14 | |
254 | msgid "System policy prevents the PolicyKit-gnome example helper from Tweaking" | |
255 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Tweak\"" | |
256 | ||
257 | #: ../examples/org.gnome.policykit.examples.policy.in.h:15 | |
258 | msgid "System policy prevents the PolicyKit-gnome example helper from Twiddling" | |
259 | msgstr "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-gnome przed wykonaniem \"Twiddle\"" | |
260 | ||
261 | #: ../examples/org.gnome.policykit.examples.policy.in.h:16 | |
262 | msgid "Toggle" | |
263 | msgstr "Wykonaj \"Toggle\"" | |
264 | ||
265 | #: ../examples/org.gnome.policykit.examples.policy.in.h:18 | |
266 | msgid "Twiddle" | |
267 | msgstr "Wykonaj \"Twiddle\"" | |
223 | 268 | |
224 | 269 | #: ../polkit-gnome/polkit-gnome-toggle-action.c:400 |
225 | 270 | #: ../polkit-gnome/polkit-gnome-toggle-action.c:401 |
226 | 271 | msgid "Authenticating..." |
227 | msgstr "Upoważnianie..." | |
272 | msgstr "Uwierzytelnianie..." | |
228 | 273 | |
229 | 274 | #: ../src/main.c:139 |
230 | 275 | msgid "Don't exit after 30 seconds of inactivity" |
231 | msgstr "Nie kończ po 30 sekundach nieaktywności" | |
276 | msgstr "Bez zakończenia po 30 sekundach bezczynności" | |
232 | 277 | |
233 | 278 | #: ../src/main.c:148 |
234 | 279 | msgid "PolicyKit GNOME session daemon" |
235 | msgstr "Demon sesji GNOME PolicyKit" | |
280 | msgstr "Usługa sesji PolicyKit GNOME" | |
236 | 281 | |
237 | 282 | #: ../src/main.c:174 |
238 | 283 | #, c-format |
239 | 284 | msgid "Starting PolicyKit GNOME session daemon version %s" |
240 | msgstr "Uruchamianie demona sesji GNOME PolicyKit wersja %s" | |
241 | ||
242 | #: ../src/polkit-gnome-auth-dialog.c:190 | |
285 | msgstr "Uruchamianie usługi sesji PolicyKit wersja %s" | |
286 | ||
287 | #: ../src/polkit-gnome-auth-dialog.c:191 | |
243 | 288 | #: ../tools/polkit-gnome-authorization.c:649 |
244 | 289 | msgid "Select user..." |
245 | msgstr "Wybierz użytkownika..." | |
246 | ||
247 | #: ../src/polkit-gnome-auth-dialog.c:211 | |
290 | msgstr "Wybór użytkownika..." | |
291 | ||
292 | #: ../src/polkit-gnome-auth-dialog.c:212 | |
248 | 293 | #: ../tools/polkit-gnome-authorization.c:665 |
249 | 294 | #, c-format |
250 | 295 | msgid "%s (%s)" |
251 | 296 | msgstr "%s (%s)" |
252 | 297 | |
253 | #: ../src/polkit-gnome-auth-dialog.c:292 | |
298 | #: ../src/polkit-gnome-auth-dialog.c:293 | |
254 | 299 | msgid "_Remember authorization for this session" |
255 | msgstr "_Zapamiętaj upoważnienie dla tej sesji" | |
256 | ||
257 | #: ../src/polkit-gnome-auth-dialog.c:298 | |
300 | msgstr "_Zapamiętanie upoważnienia dla tej sesji" | |
301 | ||
302 | #: ../src/polkit-gnome-auth-dialog.c:299 | |
258 | 303 | msgid "_Remember authorization" |
259 | msgstr "_Zapamiętaj upoważnienie" | |
260 | ||
261 | #: ../src/polkit-gnome-auth-dialog.c:313 | |
262 | msgid "" | |
263 | "An application is attempting to perform an action that requires privileges. " | |
264 | "Authentication as one of the users below is required to perform this action." | |
265 | msgstr "" | |
266 | "Program próbuje wykonać działanie, które wymaga uprawnień. Wymagane jest " | |
267 | "uwierzytelnienie jako jeden z poniższych użytkowników." | |
268 | ||
269 | #: ../src/polkit-gnome-auth-dialog.c:320 | |
270 | msgid "" | |
271 | "An application is attempting to perform an action that requires privileges. " | |
272 | "Authentication as the super user is required to perform this action." | |
273 | msgstr "" | |
274 | "Program próbuje wykonać działanie, które wymaga uprawnień. Wymagane jest " | |
275 | "uwierzytelnienie jako super użytkownik." | |
276 | ||
277 | #: ../src/polkit-gnome-auth-dialog.c:324 | |
278 | msgid "" | |
279 | "An application is attempting to perform an action that requires privileges. " | |
280 | "Authentication is required to perform this action." | |
281 | msgstr "" | |
282 | "Program próbuje wykonać działanie, które wymaga uprawnień. Wymagane jest " | |
283 | "uwierzytelnienie." | |
284 | ||
285 | #: ../src/polkit-gnome-auth-dialog.c:348 | |
304 | msgstr "_Zapamiętanie upoważnienia" | |
305 | ||
306 | #: ../src/polkit-gnome-auth-dialog.c:314 | |
307 | msgid "An application is attempting to perform an action that requires privileges. Authentication as one of the users below is required to perform this action." | |
308 | msgstr "Program próbuje dokonać działania wymagającego upoważnienia. Aby dokonać tego działania wymagane jest uwierzytelnienie jako jeden z użytkowników poniżej." | |
309 | ||
310 | #: ../src/polkit-gnome-auth-dialog.c:321 | |
311 | msgid "An application is attempting to perform an action that requires privileges. Authentication as the super user is required to perform this action." | |
312 | msgstr "Program próbuje dokonać działania wymagającego upoważnienia. Aby dokonać tego działania wymagane jest uwierzytelnienie jako administrator." | |
313 | ||
314 | #: ../src/polkit-gnome-auth-dialog.c:325 | |
315 | msgid "An application is attempting to perform an action that requires privileges. Authentication is required to perform this action." | |
316 | msgstr "Program próbuje dokonać działania wymagającego upoważnienia. Aby dokonać tego działania wymagane jest uwierzytelnienie." | |
317 | ||
318 | #: ../src/polkit-gnome-auth-dialog.c:406 | |
286 | 319 | #, c-format |
287 | 320 | msgid "Click to edit %s" |
288 | msgstr "Naciśnij, aby zmodyfikować %s" | |
289 | ||
290 | #: ../src/polkit-gnome-auth-dialog.c:371 | |
321 | msgstr "Kliknięcie otwiera %s do modyfikacji" | |
322 | ||
323 | #: ../src/polkit-gnome-auth-dialog.c:431 | |
291 | 324 | #: ../tools/polkit-gnome-authorization.c:1391 |
292 | 325 | #, c-format |
293 | 326 | msgid "Click to open %s" |
294 | msgstr "Naciśnij, aby otworzyć %s" | |
295 | ||
296 | #: ../src/polkit-gnome-auth-dialog.c:600 | |
327 | msgstr "Kliknięcie otwiera %s" | |
328 | ||
329 | #: ../src/polkit-gnome-auth-dialog.c:668 | |
297 | 330 | msgid "_Authenticate" |
298 | 331 | msgstr "_Uwierzytelnij" |
299 | 332 | |
300 | #: ../src/polkit-gnome-auth-dialog.c:659 ../src/polkit-gnome-manager.c:686 | |
333 | #: ../src/polkit-gnome-auth-dialog.c:727 | |
334 | #: ../src/polkit-gnome-manager.c:686 | |
301 | 335 | #: ../src/polkit-gnome-manager.c:735 |
302 | 336 | msgid "_Password:" |
303 | 337 | msgstr "_Hasło:" |
304 | 338 | |
305 | #: ../src/polkit-gnome-auth-dialog.c:681 | |
339 | #: ../src/polkit-gnome-auth-dialog.c:749 | |
306 | 340 | msgid "For this _session only" |
307 | 341 | msgstr "Tylko dla tej _sesji" |
308 | 342 | |
309 | #: ../src/polkit-gnome-auth-dialog.c:689 | |
343 | #: ../src/polkit-gnome-auth-dialog.c:757 | |
310 | 344 | msgid "<small><b>_Details</b></small>" |
311 | 345 | msgstr "<small><b>S_zczegóły</b></small>" |
312 | 346 | |
313 | #: ../src/polkit-gnome-auth-dialog.c:710 | |
347 | #: ../src/polkit-gnome-auth-dialog.c:778 | |
314 | 348 | msgid "<small><b>Application:</b></small>" |
315 | 349 | msgstr "<small><b>Program:</b></small>" |
316 | 350 | |
317 | #: ../src/polkit-gnome-auth-dialog.c:714 | |
351 | #: ../src/polkit-gnome-auth-dialog.c:782 | |
318 | 352 | msgid "<small><b>Action:</b></small>" |
319 | 353 | msgstr "<small><b>Działanie:</b></small>" |
320 | 354 | |
321 | #: ../src/polkit-gnome-auth-dialog.c:719 | |
355 | #: ../src/polkit-gnome-auth-dialog.c:787 | |
322 | 356 | msgid "<small><b>Vendor:</b></small>" |
323 | 357 | msgstr "<small><b>Dostawca:</b></small>" |
324 | 358 | |
325 | #: ../src/polkit-gnome-auth-dialog.c:848 | |
359 | #: ../src/polkit-gnome-auth-dialog.c:916 | |
326 | 360 | msgid "Authenticate" |
327 | msgstr "Upoważnij" | |
361 | msgstr "Uwierzytelnianie" | |
328 | 362 | |
329 | 363 | #: ../src/polkit-gnome-manager.c:367 |
330 | 364 | msgid "(unknown" |
331 | msgstr "(nieznane" | |
365 | msgstr "(nieznany" | |
332 | 366 | |
333 | 367 | #: ../src/polkit-gnome-manager.c:730 |
334 | 368 | #, c-format |
337 | 371 | |
338 | 372 | #: ../src/polkit-gnome-manager.c:732 |
339 | 373 | msgid "_Password for root:" |
340 | msgstr "_Hasło użytkownika root:" | |
374 | msgstr "_Hasło administratora:" | |
341 | 375 | |
342 | 376 | #: ../src/polkit-gnome-manager.c:740 |
343 | 377 | #, c-format |
344 | 378 | msgid "_Password or swipe finger for %s:" |
345 | msgstr "_Hasło lub odcisk palca użytkownika %s:" | |
379 | msgstr "_Hasło lub odczyt linii papilarnych dla %s:" | |
346 | 380 | |
347 | 381 | #: ../src/polkit-gnome-manager.c:743 |
348 | 382 | msgid "_Password or swipe finger for root:" |
349 | msgstr "_Hasło lub odcisk palca użytkownika root:" | |
383 | msgstr "_Hasło lub odczyt linii papilarnych administratora:" | |
350 | 384 | |
351 | 385 | #: ../src/polkit-gnome-manager.c:746 |
352 | 386 | msgid "_Password or swipe finger:" |
353 | msgstr "_Hasło lub odcisk palca:" | |
387 | msgstr "_Hasło lub odczyt linii papilarnych:" | |
354 | 388 | |
355 | 389 | #: ../tools/polkit-gnome-authorization.c:117 |
356 | 390 | msgid "No" |
358 | 392 | |
359 | 393 | #: ../tools/polkit-gnome-authorization.c:119 |
360 | 394 | msgid "Admin Authentication (one shot)" |
361 | msgstr "Uwierzytelnienie administratora (jeden raz)" | |
395 | msgstr "Uwierzytelnienie administratora (pojedyncze)" | |
362 | 396 | |
363 | 397 | #: ../tools/polkit-gnome-authorization.c:120 |
364 | 398 | msgid "Admin Authentication" |
366 | 400 | |
367 | 401 | #: ../tools/polkit-gnome-authorization.c:121 |
368 | 402 | msgid "Admin Authentication (keep session)" |
369 | msgstr "Uwierzytelnienie administratora (zatrzymaj sesję)" | |
403 | msgstr "Uwierzytelnienie administratora (na czas sesji)" | |
370 | 404 | |
371 | 405 | #: ../tools/polkit-gnome-authorization.c:122 |
372 | 406 | msgid "Admin Authentication (keep indefinitely)" |
373 | msgstr "Uwierzytelnienie administratora (zatrzymaj w nieskończoność)" | |
407 | msgstr "Uwierzytelnienie administratora (na czas nieokreślony)" | |
374 | 408 | |
375 | 409 | #: ../tools/polkit-gnome-authorization.c:124 |
376 | 410 | msgid "Authentication (one shot)" |
377 | msgstr "Uwierzytelnienie (jeden raz)" | |
411 | msgstr "Uwierzytelnienie (pojedyncze)" | |
378 | 412 | |
379 | 413 | #: ../tools/polkit-gnome-authorization.c:125 |
380 | 414 | msgid "Authentication" |
382 | 416 | |
383 | 417 | #: ../tools/polkit-gnome-authorization.c:126 |
384 | 418 | msgid "Authentication (keep session)" |
385 | msgstr "Uwierzytelnienie (zatrzymaj sesję)" | |
419 | msgstr "Uwierzytelnienie (na czas sesji)" | |
386 | 420 | |
387 | 421 | #: ../tools/polkit-gnome-authorization.c:127 |
388 | 422 | msgid "Authentication (keep indefinitely)" |
389 | msgstr "Uwierzytelnienie (zatrzymaj w nieskończoność)" | |
423 | msgstr "Uwierzytelnienie (na czas nieokreślony)" | |
390 | 424 | |
391 | 425 | #: ../tools/polkit-gnome-authorization.c:129 |
392 | 426 | msgid "Yes" |
398 | 432 | |
399 | 433 | #: ../tools/polkit-gnome-authorization.c:276 |
400 | 434 | msgid "Must be on console" |
401 | msgstr "Musi być na konsoli" | |
435 | msgstr "Musi być w konsoli" | |
402 | 436 | |
403 | 437 | #: ../tools/polkit-gnome-authorization.c:279 |
404 | 438 | msgid "Must be in active session" |
407 | 441 | #: ../tools/polkit-gnome-authorization.c:282 |
408 | 442 | #, c-format |
409 | 443 | msgid "Must be program %s" |
410 | msgstr "Musi być programem %s" | |
444 | msgstr "Musi być program %s" | |
411 | 445 | |
412 | 446 | #: ../tools/polkit-gnome-authorization.c:286 |
413 | 447 | #, c-format |
414 | 448 | msgid "Must be SELinux Context %s" |
415 | msgstr "Musi być kontekstem SELinuksa %s" | |
449 | msgstr "Musi być kontekst SELinux %s" | |
416 | 450 | |
417 | 451 | #: ../tools/polkit-gnome-authorization.c:344 |
418 | 452 | msgid "A moment ago" |
419 | msgstr "Chwilę temu" | |
453 | msgstr "Przed chwilą" | |
420 | 454 | |
421 | 455 | #: ../tools/polkit-gnome-authorization.c:348 |
422 | 456 | msgid "1 minute ago" |
423 | msgstr "Minutę temu" | |
457 | msgstr "1 minutę temu" | |
424 | 458 | |
425 | 459 | #: ../tools/polkit-gnome-authorization.c:350 |
426 | 460 | #, c-format |
429 | 463 | |
430 | 464 | #: ../tools/polkit-gnome-authorization.c:354 |
431 | 465 | msgid "1 hour ago" |
432 | msgstr "Godzinę temu" | |
466 | msgstr "1 godzinę temu" | |
433 | 467 | |
434 | 468 | #: ../tools/polkit-gnome-authorization.c:356 |
435 | 469 | #, c-format |
438 | 472 | |
439 | 473 | #: ../tools/polkit-gnome-authorization.c:360 |
440 | 474 | msgid "1 day ago" |
441 | msgstr "Jeden dzień temu" | |
475 | msgstr "1 dzień temu" | |
442 | 476 | |
443 | 477 | #: ../tools/polkit-gnome-authorization.c:362 |
444 | 478 | #, c-format |
448 | 482 | #: ../tools/polkit-gnome-authorization.c:379 |
449 | 483 | #, c-format |
450 | 484 | msgid "Auth as %s (uid %d)" |
451 | msgstr "Uwierzytelnij jako %s (UID %d)" | |
485 | msgstr "Uwierzytelnianie jako %s (uid %d)" | |
452 | 486 | |
453 | 487 | #: ../tools/polkit-gnome-authorization.c:381 |
454 | 488 | #, c-format |
455 | 489 | msgid "Auth as uid %d" |
456 | msgstr "Uwierzytelnij jako UID %d" | |
490 | msgstr "Uwierzytelnianie jako uid %d" | |
457 | 491 | |
458 | 492 | #: ../tools/polkit-gnome-authorization.c:387 |
459 | 493 | #, c-format |
460 | 494 | msgid "Blocked by %s (uid %d)" |
461 | msgstr "Zablokowane przez %s (UID %d)" | |
495 | msgstr "Zablokowany przez %s (uid %d)" | |
462 | 496 | |
463 | 497 | #: ../tools/polkit-gnome-authorization.c:389 |
464 | 498 | #, c-format |
465 | 499 | msgid "Blocked by uid %d" |
466 | msgstr "Zablokowane przez UID %d" | |
500 | msgstr "Zablokowany przez uid %d" | |
467 | 501 | |
468 | 502 | #: ../tools/polkit-gnome-authorization.c:392 |
469 | 503 | #, c-format |
470 | 504 | msgid "Granted by %s (uid %d)" |
471 | msgstr "Udzielił %s (UID %d)" | |
505 | msgstr "Nadany przez %s (uid %d)" | |
472 | 506 | |
473 | 507 | #: ../tools/polkit-gnome-authorization.c:394 |
474 | 508 | #, c-format |
475 | 509 | msgid "Granted by uid %d" |
476 | msgstr "Udzielił UID %d" | |
510 | msgstr "Nadany przez uid %d" | |
477 | 511 | |
478 | 512 | #: ../tools/polkit-gnome-authorization.c:409 |
479 | 513 | #, c-format |
480 | 514 | msgid "Single shot pid %d (%s)" |
481 | msgstr "Jeden raz PID %d (%s)" | |
515 | msgstr "Pojedynczy pid %d (%s)" | |
482 | 516 | |
483 | 517 | #: ../tools/polkit-gnome-authorization.c:415 |
484 | 518 | #, c-format |
485 | 519 | msgid "pid %d (%s)" |
486 | msgstr "PID %d (%s)" | |
520 | msgstr "pid %d (%s)" | |
487 | 521 | |
488 | 522 | #: ../tools/polkit-gnome-authorization.c:418 |
489 | 523 | msgid "This session" |
490 | msgstr "Ta sesja" | |
524 | msgstr "Na czas tej sesji" | |
491 | 525 | |
492 | 526 | #: ../tools/polkit-gnome-authorization.c:421 |
493 | 527 | msgid "Always" |
499 | 533 | |
500 | 534 | #: ../tools/polkit-gnome-authorization.c:827 |
501 | 535 | msgid "Grant Negative Authorization" |
502 | msgstr "Udziel upoważnienie negatywne" | |
536 | msgstr "Nadanie upoważnienia przeciwnego" | |
503 | 537 | |
504 | 538 | #: ../tools/polkit-gnome-authorization.c:827 |
505 | 539 | msgid "Grant Authorization" |
506 | msgstr "Udziel upoważnienie" | |
540 | msgstr "Nadanie upoważnienia" | |
507 | 541 | |
508 | 542 | #: ../tools/polkit-gnome-authorization.c:850 |
509 | 543 | #, c-format |
510 | msgid "" | |
511 | "<b><big>Granting a negative authorization for the <i>%s</i> action requires " | |
512 | "more information</big></b>" | |
513 | msgstr "" | |
514 | "<b><big>Udzielenie upoważnienia negatywnego dla działania <i>%s</i> wymaga " | |
515 | "więcej informacji</big></b>" | |
544 | msgid "<b><big>Granting a negative authorization for the <i>%s</i> action requires more information</big></b>" | |
545 | msgstr "<b><big>Nadanie upoważnienia przeciwnego dla działania <i>%s</i> wymaga więcej informacji</big></b>" | |
516 | 546 | |
517 | 547 | #: ../tools/polkit-gnome-authorization.c:851 |
518 | 548 | #, c-format |
519 | msgid "" | |
520 | "<b><big>Granting an authorization for the <i>%s</i> action requires more " | |
521 | "information</big></b>" | |
522 | msgstr "" | |
523 | "<b><big>Udzielenie upoważnienia dla działania <i>%s</i> wymaga więcej " | |
524 | "informacji</big></b>" | |
549 | msgid "<b><big>Granting an authorization for the <i>%s</i> action requires more information</big></b>" | |
550 | msgstr "<b><big>Nadanie upoważnienia dla działania <i>%s</i> wymaga więcej informacji</big></b>" | |
525 | 551 | |
526 | 552 | #: ../tools/polkit-gnome-authorization.c:862 |
527 | msgid "" | |
528 | "Select the user to block for the action and, optionally, any constraints on " | |
529 | "the negative authorization that you are about to grant." | |
530 | msgstr "" | |
531 | "Proszę wybrać użytkownika, aby zablokować działanie i opcjonalnie wszystkie " | |
532 | "ograniczenia negatywnego upoważnienia, które zostanie udzielone." | |
553 | msgid "Select the user to block for the action and, optionally, any constraints on the negative authorization that you are about to grant." | |
554 | msgstr "Wybór użytkownika do zablokowania danego działania i opcjonalnie dowolne ograniczenia upoważnienia przeciwnego, które ma zostać nadane." | |
533 | 555 | |
534 | 556 | #: ../tools/polkit-gnome-authorization.c:864 |
535 | msgid "" | |
536 | "Select the beneficiary and, optionally, how to constrain the authorization " | |
537 | "that you are about to grant." | |
538 | msgstr "" | |
539 | "Proszę wybrać beneficjenta i opcjonalnie jak ograniczyć upoważnienie, które " | |
540 | "zostanie udzielone." | |
557 | msgid "Select the beneficiary and, optionally, how to constrain the authorization that you are about to grant." | |
558 | msgstr "Wybór beneficjenta oraz opcjonalnie jak ograniczyć upoważnienie, które ma zostać nadane." | |
541 | 559 | |
542 | 560 | #: ../tools/polkit-gnome-authorization.c:875 |
543 | 561 | msgid "<b>Beneficiary</b>" |
545 | 563 | |
546 | 564 | #: ../tools/polkit-gnome-authorization.c:887 |
547 | 565 | msgid "Select the user that will receive the negative authorization." |
548 | msgstr "Proszę wybrać użytkownika, który otrzyma negatywne upoważnienie." | |
566 | msgstr "Wybór użytkownika, który otrzyma upoważnienie przeciwne." | |
549 | 567 | |
550 | 568 | #: ../tools/polkit-gnome-authorization.c:889 |
551 | 569 | msgid "Select the user that will receive the authorization." |
552 | msgstr "Proszę wybrać użytkownika, który otrzyma upoważnienie." | |
570 | msgstr "Wybór użytkownika, który otrzyma upoważnienie." | |
553 | 571 | |
554 | 572 | #: ../tools/polkit-gnome-authorization.c:898 |
555 | 573 | msgid "_Show system users" |
556 | msgstr "Wyświetl użytkowników _systemowych" | |
574 | msgstr "_Wyświetlanie użytkowników systemowych" | |
557 | 575 | |
558 | 576 | #: ../tools/polkit-gnome-authorization.c:913 |
559 | 577 | msgid "<b>Constraints</b>" |
560 | 578 | msgstr "<b>Ograniczenia</b>" |
561 | 579 | |
562 | 580 | #: ../tools/polkit-gnome-authorization.c:924 |
563 | msgid "" | |
564 | "Constraints limits the authorization such that it only applies under certain " | |
565 | "circumstances." | |
566 | msgstr "" | |
567 | "Ogranicza to upoważnienie, aby można je było zastosować w szczególnych " | |
568 | "okolicznościach." | |
581 | msgid "Constraints limits the authorization such that it only applies under certain circumstances." | |
582 | msgstr "Ograniczenia zawężają uprawnienia tak, aby miały zastosowanie tylko pod pewnymi warunkami." | |
569 | 583 | |
570 | 584 | #: ../tools/polkit-gnome-authorization.c:930 |
571 | 585 | msgid "_None" |
573 | 587 | |
574 | 588 | #: ../tools/polkit-gnome-authorization.c:932 |
575 | 589 | msgid "Must be _in active session" |
576 | msgstr "Mus_i być w aktywnej sesji" | |
590 | msgstr "Musi być w aktywnej ses_ji" | |
577 | 591 | |
578 | 592 | #: ../tools/polkit-gnome-authorization.c:934 |
579 | 593 | msgid "Must be on _local console" |
580 | msgstr "Musi być na _lokalnej konsoli" | |
594 | msgstr "Musi być w _lokalnej konsoli" | |
581 | 595 | |
582 | 596 | #: ../tools/polkit-gnome-authorization.c:936 |
583 | 597 | msgid "Must be in _active session on local console" |
584 | msgstr "Musi być w _aktywnej sesji na lokalnej konsoli" | |
598 | msgstr "Musi być w _aktywnej sesji w lokalnej konsoli" | |
585 | 599 | |
586 | 600 | #: ../tools/polkit-gnome-authorization.c:957 |
587 | 601 | #: ../tools/polkit-gnome-authorization.c:2133 |
591 | 605 | #: ../tools/polkit-gnome-authorization.c:961 |
592 | 606 | #: ../tools/polkit-gnome-authorization.c:2126 |
593 | 607 | msgid "_Grant..." |
594 | msgstr "_Udziel..." | |
608 | msgstr "_Nadaj..." | |
595 | 609 | |
596 | 610 | #: ../tools/polkit-gnome-authorization.c:1155 |
597 | 611 | msgid "Edit Implicit Authorizations" |
598 | msgstr "Zmodyfikuj niejawne upoważnienia" | |
612 | msgstr "Zmiany upoważnień bezwględnych" | |
599 | 613 | |
600 | 614 | #: ../tools/polkit-gnome-authorization.c:1176 |
601 | 615 | msgid "<b><big>Choose new implicit authorizations</big></b>" |
602 | msgstr "<b><big>Proszę wybrać nowe niejawne upoważnienia</big></b>" | |
616 | msgstr "<b><big>Wybór nowych upoważnień bezwględnych</big></b>" | |
603 | 617 | |
604 | 618 | #: ../tools/polkit-gnome-authorization.c:1190 |
605 | 619 | #, c-format |
606 | msgid "" | |
607 | "Implicit authorizations are authorizations that are granted automatically to " | |
608 | "users under certain circumstances. Choose what is required for the action <i>" | |
609 | "%s</i>." | |
610 | msgstr "" | |
611 | "Niejawne upoważnienia są automatycznie udzielane użytkownikom w szczególnych " | |
612 | "okolicznościach. Proszę wybrać, co jest wymagane dla działania <i>%s</i>." | |
620 | msgid "Implicit authorizations are authorizations that are granted automatically to users under certain circumstances. Choose what is required for the action <i>%s</i>." | |
621 | msgstr "Upoważnienia bezwzględne to upoważnienia, które są nadawane automatycznie użytkownikom w pewnych warunkach. Należy wybrać wymagania dla działania <i>%s</i>." | |
613 | 622 | |
614 | 623 | #: ../tools/polkit-gnome-authorization.c:1215 |
615 | 624 | #: ../tools/polkit-gnome-authorization.c:1974 |
616 | 625 | msgid "<i>Anyone:</i>" |
617 | msgstr "<i>Każdy:</i>" | |
626 | msgstr "<i>Ktokolwiek:</i>" | |
618 | 627 | |
619 | 628 | #: ../tools/polkit-gnome-authorization.c:1222 |
620 | 629 | #: ../tools/polkit-gnome-authorization.c:1978 |
628 | 637 | |
629 | 638 | #: ../tools/polkit-gnome-authorization.c:1258 |
630 | 639 | msgid "_Modify..." |
631 | msgstr "Z_modyfikuj..." | |
640 | msgstr "_Zmień..." | |
632 | 641 | |
633 | 642 | #: ../tools/polkit-gnome-authorization.c:1890 |
634 | 643 | msgid "<b>Action</b>" |
648 | 657 | |
649 | 658 | #: ../tools/polkit-gnome-authorization.c:1951 |
650 | 659 | msgid "<b>Implicit Authorizations</b>" |
651 | msgstr "<b>Niejawne upoważnienia</b>" | |
660 | msgstr "<b>Upoważnienia bezwzględne</b>" | |
652 | 661 | |
653 | 662 | #: ../tools/polkit-gnome-authorization.c:1959 |
654 | msgid "" | |
655 | "Implicit authorizations are authorizations automatically given to users " | |
656 | "based on certain criteria such as if they are on the local console." | |
657 | msgstr "" | |
658 | "Niejawne upoważnienia są automatycznie udzielane użytkownikom na podstawie " | |
659 | "szczególnych kryteriów, takich jak obecność na lokalnej konsoli." | |
663 | msgid "Implicit authorizations are authorizations automatically given to users based on certain criteria such as if they are on the local console." | |
664 | msgstr "Upoważnienia wyraźne są" | |
660 | 665 | |
661 | 666 | #: ../tools/polkit-gnome-authorization.c:2002 |
662 | 667 | msgid "_Edit..." |
663 | msgstr "_Edycja..." | |
668 | msgstr "_Zmień..." | |
664 | 669 | |
665 | 670 | #: ../tools/polkit-gnome-authorization.c:2009 |
666 | 671 | msgid "Revert To _Defaults..." |
667 | msgstr "Przywróć _domyślne..." | |
672 | msgstr "Powrót do _domyślnych..." | |
668 | 673 | |
669 | 674 | #: ../tools/polkit-gnome-authorization.c:2032 |
670 | 675 | msgid "<b>Explicit Authorizations</b>" |
671 | msgstr "<b>Jawne upoważnienia</b>" | |
676 | msgstr "<b>Upoważnienia wyraźne</b>" | |
672 | 677 | |
673 | 678 | #: ../tools/polkit-gnome-authorization.c:2043 |
674 | msgid "" | |
675 | "This list displays authorizations that are either obtained through " | |
676 | "authentication or specifically given to the entity in question. Blocked " | |
677 | "authorizations are marked with a STOP sign." | |
678 | msgstr "" | |
679 | "Ta lista wyświetla upoważnienia uzyskane przez uwierzytelnianie lub " | |
680 | "specjalnie danym jednostkom. Zablokowane upoważnienia są oznaczone znakiem " | |
681 | "STOP." | |
679 | msgid "This list displays authorizations that are either obtained through authentication or specifically given to the entity in question. Blocked authorizations are marked with a STOP sign." | |
680 | msgstr "Lista wyświetla upoważnienia otrzymane poprzez uwierzytelnienie lub określone nadanie właściwemu podmiotowi. Upoważnienia zablokowane są oznaczone znakiem STOP." | |
682 | 681 | |
683 | 682 | #: ../tools/polkit-gnome-authorization.c:2073 |
684 | 683 | msgid "Entity" |
685 | msgstr "Jednostka" | |
684 | msgstr "Podmiot" | |
686 | 685 | |
687 | 686 | #: ../tools/polkit-gnome-authorization.c:2081 |
688 | 687 | msgid "Scope" |
689 | msgstr "Zasięg" | |
688 | msgstr "Zakres" | |
690 | 689 | |
691 | 690 | #: ../tools/polkit-gnome-authorization.c:2089 |
692 | 691 | msgid "Obtained" |
703 | 702 | #: ../tools/polkit-gnome-authorization.c:2147 |
704 | 703 | #: ../tools/polkit-gnome-authorization.c:2161 |
705 | 704 | msgid "_Revoke" |
706 | msgstr "_Odbierz" | |
705 | msgstr "_Unieważnij" | |
707 | 706 | |
708 | 707 | #: ../tools/polkit-gnome-authorization.c:2154 |
709 | 708 | msgid "_Revoke..." |
710 | msgstr "_Odbierz..." | |
709 | msgstr "_Unieważnij..." | |
711 | 710 | |
712 | 711 | #: ../tools/polkit-gnome-authorization.c:2174 |
713 | 712 | msgid "_Show authorizations from all users..." |
714 | msgstr "Wyświetlanie upoważnień w_szystkich użytkowników..." | |
713 | msgstr "_Wyświetlenie upoważnień od wszystkich użytkowników..." | |
715 | 714 | |
716 | 715 | #: ../tools/polkit-gnome-authorization.c:2175 |
717 | 716 | msgid "_Show authorizations from all users" |
718 | msgstr "Wyświetlanie upoważnień w_szystkich użytkowników" | |
717 | msgstr "_Wyświetlenie upoważnień od wszystkich użytkowników" | |
719 | 718 | |
720 | 719 | #: ../tools/polkit-gnome-authorization.c:2417 |
721 | 720 | msgid "Select an action" |
722 | 721 | msgstr "Wybór działania" |
723 | 722 | |
724 | #~ msgid "Frobnicate" | |
725 | #~ msgstr "Wykonaj \"Frobnicate\"" | |
726 | ||
727 | #~ msgid "Jump" | |
728 | #~ msgstr "Wykonaj \"Jump\"" | |
729 | ||
730 | #~ msgid "Kick bar" | |
731 | #~ msgstr "Wykonaj \"Kick\" na bar" | |
732 | ||
733 | #~ msgid "Kick baz" | |
734 | #~ msgstr "Wykonaj \"Kick\" na baz" | |
735 | ||
736 | #~ msgid "Kick foo" | |
737 | #~ msgstr "Wykonaj \"Kick\" na foo" | |
738 | ||
739 | #~ msgid "Punch" | |
740 | #~ msgstr "Wykonaj \"Punch\"" | |
741 | ||
742 | #~ msgid "" | |
743 | #~ "System policy prevents the PolicyKit-gnome example helper from " | |
744 | #~ "Frobnicating" | |
745 | #~ msgstr "" | |
746 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
747 | #~ "gnome przed wykonaniem \"Frobnicate\"" | |
748 | ||
749 | #~ msgid "" | |
750 | #~ "System policy prevents the PolicyKit-gnome example helper from Jumping" | |
751 | #~ msgstr "" | |
752 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
753 | #~ "gnome przed wykonaniem \"Jump\"" | |
754 | ||
755 | #~ msgid "" | |
756 | #~ "System policy prevents the PolicyKit-gnome example helper from Kicking bar" | |
757 | #~ msgstr "" | |
758 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
759 | #~ "gnome przed wykonaniem \"Kick\" na bar" | |
760 | ||
761 | #~ msgid "" | |
762 | #~ "System policy prevents the PolicyKit-gnome example helper from Kicking baz" | |
763 | #~ msgstr "" | |
764 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
765 | #~ "gnome przed wykonaniem \"Kick\" na baz" | |
766 | ||
767 | #~ msgid "" | |
768 | #~ "System policy prevents the PolicyKit-gnome example helper from Kicking foo" | |
769 | #~ msgstr "" | |
770 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
771 | #~ "gnome przed wykonaniem \"Kick\" na foo" | |
772 | ||
773 | #~ msgid "" | |
774 | #~ "System policy prevents the PolicyKit-gnome example helper from Punching" | |
775 | #~ msgstr "" | |
776 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
777 | #~ "gnome przed wykonaniem \"Punch\"" | |
778 | ||
779 | #~ msgid "" | |
780 | #~ "System policy prevents the PolicyKit-gnome example helper from Toggling" | |
781 | #~ msgstr "" | |
782 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
783 | #~ "gnome przed wykonaniem \"Toggle\"" | |
784 | ||
785 | #~ msgid "" | |
786 | #~ "System policy prevents the PolicyKit-gnome example helper from Tweaking" | |
787 | #~ msgstr "" | |
788 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
789 | #~ "gnome przed wykonaniem \"Tweak\"" | |
790 | ||
791 | #~ msgid "" | |
792 | #~ "System policy prevents the PolicyKit-gnome example helper from Twiddling" | |
793 | #~ msgstr "" | |
794 | #~ "Zasady systemu powstrzymują przykładowy program pomocniczy PolicyKit-" | |
795 | #~ "gnome przed wykonaniem \"Twiddle\"" | |
796 | ||
797 | #~ msgid "Toggle" | |
798 | #~ msgstr "Wykonaj \"Toggle\"" | |
799 | ||
800 | #~ msgid "Twiddle" | |
801 | #~ msgstr "Wykonaj \"Twiddle\"" |
6 | 6 | msgstr "" |
7 | 7 | "Project-Id-Version: policykit-gnome\n" |
8 | 8 | "Report-Msgid-Bugs-To: \n" |
9 | "POT-Creation-Date: 2008-05-25 19:08+0100\n" | |
10 | "PO-Revision-Date: 2008-04-30 21:11-0100\n" | |
9 | "POT-Creation-Date: 2008-08-04 01:32+0100\n" | |
10 | "PO-Revision-Date: 2008-08-01 20:41-0100\n" | |
11 | 11 | "Last-Translator: António Lima <amrlima@gmail.com>\n" |
12 | 12 | "Language-Team: Portuguese <gnome_pt@yahoogroups.com>\n" |
13 | 13 | "MIME-Version: 1.0\n" |
27 | 27 | |
28 | 28 | #: ../data/polkit-gnome.schemas.in.h:1 |
29 | 29 | msgid "" |
30 | "A list of PolicyKit action where the \"retain authorization\" checkbox isn't " | |
31 | "checked by default; this list is maintained by the authentication dialog " | |
32 | "code itself. For example, if a user unchecks the \"retain authorization\" " | |
33 | "check box for an action and successfully obtains an authorization for the " | |
34 | "action, the action will be added to this list." | |
35 | msgstr "" | |
36 | "Uma lista de acções do PolicyKit onde a caixa de selecção \"Reter Autorização" | |
37 | "\" não se encontra marcada por omissão; esta lista é mantida pelo próprio " | |
38 | "código de diálogo da autenticação. Por exemplo, se um utilizador desmarca a " | |
39 | "caixa de selecção \"Reter Autorização\" para uma determinada acção e obtém " | |
40 | "uma autorização para esta, a acção será adicionada à lista." | |
41 | ||
42 | #: ../data/polkit-gnome.schemas.in.h:2 | |
43 | msgid "" | |
44 | "A list of actions where the \"retain authorization\" checkbox isn't checked " | |
45 | "by default" | |
46 | msgstr "" | |
47 | "Uma lista de acções onde a caixa de selecção \"Reter Autorização\" não se " | |
48 | "encontra marcada por omissão" | |
49 | ||
50 | #: ../data/polkit-gnome.schemas.in.h:3 | |
51 | msgid "" | |
30 | 52 | "If set to true, the authentication dialog from PolicyKit-gnome will grab the " |
31 | 53 | "keyboard, so that you will not be able to type in other programs while the " |
32 | 54 | "dialog is active. Use this if your window manager does not focus the " |
40 | 62 | "de autenticação, e deseja evitar introduzir acidentalmente a sua senha " |
41 | 63 | "noutra aplicação." |
42 | 64 | |
43 | #: ../data/polkit-gnome.schemas.in.h:2 | |
65 | #: ../data/polkit-gnome.schemas.in.h:4 | |
66 | msgid "" | |
67 | "If set to true, then \"retain authorization\" check box (if present) is " | |
68 | "checked by default in the authentication dialog unless the action is " | |
69 | "mentioned in the \"/desktop/gnome/policykit/" | |
70 | "auth_dialog_retain_authorization_blacklist\" key." | |
71 | msgstr "" | |
72 | "Se definido como verdadeiro, então a caixa de selecção \"Reter Autorização" | |
73 | "\" (caso esteja presente) encontra-se marcada por omissão, excepto se a " | |
74 | "acção está mencionada na chave \"/desktop/gnome/policykit/" | |
75 | "auth_dialog_retain_authorization_blacklist\"." | |
76 | ||
77 | #: ../data/polkit-gnome.schemas.in.h:5 | |
44 | 78 | msgid "Whether the authentication dialog should grab the keyboard" |
45 | 79 | msgstr "Se o diálogo de autenticação deverá ou não capturar o teclado" |
80 | ||
81 | #: ../data/polkit-gnome.schemas.in.h:6 | |
82 | msgid "Whether the retain authorization check box is checked by default" | |
83 | msgstr "" | |
84 | "Se a caixa de selecção \"reter autorização\" encontra-se marcada por omissão" | |
46 | 85 | |
47 | 86 | #: ../examples/polkit-gnome-example.c:137 |
48 | 87 | msgid "Copyright © 2007 David Zeuthen" |
187 | 226 | "authenticated, this privilege can be retained for the remainder of the " |
188 | 227 | "desktop session." |
189 | 228 | msgstr "" |
190 | "Fazer o assistente <b>Premir</b> requer que o utilizador se autentique. " | |
191 | "Uma vez autenticado, este privilégio pode ser retido durante o resto da " | |
192 | "sessão." | |
229 | "Fazer o assistente <b>Premir</b> requer que o utilizador se autentique. Uma " | |
230 | "vez autenticado, este privilégio pode ser retido durante o resto da sessão." | |
193 | 231 | |
194 | 232 | #: ../examples/polkit-gnome-example.c:372 |
195 | 233 | msgid "Punch!" |
205 | 243 | msgstr "" |
206 | 244 | "A acção <b>Alternar</b> demonstra a utilização do PolicyKit para dirigir um " |
207 | 245 | "botão GtkToggleButton; é uma forma intuitiva de pedir aos utilizadores para " |
208 | "dispensarem as autorizações quando terminarem a sua utilização. Por ex. o botão " | |
209 | "encontra-se 'pressionado' exactamente quando a autorização é detida. " | |
246 | "dispensarem as autorizações quando terminarem a sua utilização. Por ex. o " | |
247 | "botão encontra-se 'pressionado' exactamente quando a autorização é detida. " | |
210 | 248 | "Alternar o botão significa revogar a autorização em questão." |
211 | 249 | |
212 | 250 | #: ../examples/polkit-gnome-example.c:401 |
243 | 281 | msgid "Starting PolicyKit GNOME session daemon version %s" |
244 | 282 | msgstr "A iniciar o daemon de sessão do PolicyKit GNOME, versão %s" |
245 | 283 | |
246 | #: ../src/polkit-gnome-auth-dialog.c:190 | |
284 | #: ../src/polkit-gnome-auth-dialog.c:191 | |
247 | 285 | #: ../tools/polkit-gnome-authorization.c:649 |
248 | 286 | msgid "Select user..." |
249 | 287 | msgstr "Seleccionar utilizador..." |
250 | 288 | |
251 | #: ../src/polkit-gnome-auth-dialog.c:211 | |
289 | #: ../src/polkit-gnome-auth-dialog.c:212 | |
252 | 290 | #: ../tools/polkit-gnome-authorization.c:665 |
253 | 291 | #, c-format |
254 | 292 | msgid "%s (%s)" |
255 | 293 | msgstr "%s (%s)" |
256 | 294 | |
257 | #: ../src/polkit-gnome-auth-dialog.c:292 | |
295 | #: ../src/polkit-gnome-auth-dialog.c:293 | |
258 | 296 | msgid "_Remember authorization for this session" |
259 | 297 | msgstr "_Recordar autorização para esta sessão" |
260 | 298 | |
261 | #: ../src/polkit-gnome-auth-dialog.c:298 | |
299 | #: ../src/polkit-gnome-auth-dialog.c:299 | |
262 | 300 | msgid "_Remember authorization" |
263 | 301 | msgstr "_Recordar autorização" |
264 | 302 | |
265 | #: ../src/polkit-gnome-auth-dialog.c:313 | |
303 | #: ../src/polkit-gnome-auth-dialog.c:314 | |
266 | 304 | msgid "" |
267 | 305 | "An application is attempting to perform an action that requires privileges. " |
268 | 306 | "Authentication as one of the users below is required to perform this action." |
271 | 309 | "necessária uma autenticação como um dos utilizadores para executar esta " |
272 | 310 | "acção." |
273 | 311 | |
274 | #: ../src/polkit-gnome-auth-dialog.c:320 | |
312 | #: ../src/polkit-gnome-auth-dialog.c:321 | |
275 | 313 | msgid "" |
276 | 314 | "An application is attempting to perform an action that requires privileges. " |
277 | 315 | "Authentication as the super user is required to perform this action." |
279 | 317 | "Uma aplicação está a tentar executar uma acção que requer privilégios. É " |
280 | 318 | "necessária autenticação como super utilizador para executar esta acção." |
281 | 319 | |
282 | #: ../src/polkit-gnome-auth-dialog.c:324 | |
320 | #: ../src/polkit-gnome-auth-dialog.c:325 | |
283 | 321 | msgid "" |
284 | 322 | "An application is attempting to perform an action that requires privileges. " |
285 | 323 | "Authentication is required to perform this action." |
287 | 325 | "Uma aplicação está a tentar executar uma acção que requer privilégios. É " |
288 | 326 | "necessária autenticação para executar esta acção." |
289 | 327 | |
290 | #: ../src/polkit-gnome-auth-dialog.c:348 | |
328 | #: ../src/polkit-gnome-auth-dialog.c:406 | |
291 | 329 | #, c-format |
292 | 330 | msgid "Click to edit %s" |
293 | 331 | msgstr "Clique para editar %s" |
294 | 332 | |
295 | #: ../src/polkit-gnome-auth-dialog.c:371 | |
333 | #: ../src/polkit-gnome-auth-dialog.c:431 | |
296 | 334 | #: ../tools/polkit-gnome-authorization.c:1391 |
297 | 335 | #, c-format |
298 | 336 | msgid "Click to open %s" |
299 | 337 | msgstr "Clique para abrir %s" |
300 | 338 | |
301 | #: ../src/polkit-gnome-auth-dialog.c:600 | |
339 | #: ../src/polkit-gnome-auth-dialog.c:668 | |
302 | 340 | msgid "_Authenticate" |
303 | 341 | msgstr "_Autenticar" |
304 | 342 | |
305 | #: ../src/polkit-gnome-auth-dialog.c:659 ../src/polkit-gnome-manager.c:686 | |
343 | #: ../src/polkit-gnome-auth-dialog.c:727 ../src/polkit-gnome-manager.c:686 | |
306 | 344 | #: ../src/polkit-gnome-manager.c:735 |
307 | 345 | msgid "_Password:" |
308 | 346 | msgstr "_Senha:" |
309 | 347 | |
310 | #: ../src/polkit-gnome-auth-dialog.c:681 | |
348 | #: ../src/polkit-gnome-auth-dialog.c:749 | |
311 | 349 | msgid "For this _session only" |
312 | 350 | msgstr "Apenas para esta _sessão" |
313 | 351 | |
314 | #: ../src/polkit-gnome-auth-dialog.c:689 | |
352 | #: ../src/polkit-gnome-auth-dialog.c:757 | |
315 | 353 | msgid "<small><b>_Details</b></small>" |
316 | 354 | msgstr "<small><b>_Detalhes</b></small>" |
317 | 355 | |
318 | #: ../src/polkit-gnome-auth-dialog.c:710 | |
356 | #: ../src/polkit-gnome-auth-dialog.c:778 | |
319 | 357 | msgid "<small><b>Application:</b></small>" |
320 | 358 | msgstr "<small><b>Aplicação:</b></small>" |
321 | 359 | |
322 | #: ../src/polkit-gnome-auth-dialog.c:714 | |
360 | #: ../src/polkit-gnome-auth-dialog.c:782 | |
323 | 361 | msgid "<small><b>Action:</b></small>" |
324 | 362 | msgstr "<small><b>Acção:</b></small>" |
325 | 363 | |
326 | #: ../src/polkit-gnome-auth-dialog.c:719 | |
364 | #: ../src/polkit-gnome-auth-dialog.c:787 | |
327 | 365 | msgid "<small><b>Vendor:</b></small>" |
328 | 366 | msgstr "<small><b>Fornecedor:</b></small>" |
329 | 367 | |
330 | #: ../src/polkit-gnome-auth-dialog.c:848 | |
368 | #: ../src/polkit-gnome-auth-dialog.c:916 | |
331 | 369 | msgid "Authenticate" |
332 | 370 | msgstr "Autenticar" |
333 | 371 |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: policykit-gnome\n" |
9 | 9 | "Report-Msgid-Bugs-To: \n" |
10 | "POT-Creation-Date: 2008-07-14 03:58+0000\n" | |
11 | "PO-Revision-Date: 2008-07-14 20:22-0300\n" | |
10 | "POT-Creation-Date: 2008-07-21 04:33+0000\n" | |
11 | "PO-Revision-Date: 2008-07-25 16:02-0300\n" | |
12 | 12 | "Last-Translator: Igor Pires Soares <igor@projetofedora.org>\n" |
13 | 13 | "Language-Team: gnome-l10n-br <gnome-l10n-br@listas.cipsga.org.br>\n" |
14 | 14 | "MIME-Version: 1.0\n" |
29 | 29 | |
30 | 30 | #: ../data/polkit-gnome.schemas.in.h:1 |
31 | 31 | msgid "" |
32 | "A list of PolicyKit action where the \"retain authorization\" checkbox isn't " | |
33 | "checked by default; this list is maintained by the authentication dialog " | |
34 | "code itself. For example, if a user unchecks the \"retain authorization\" " | |
35 | "check box for an action and successfully obtains an authorization for the " | |
36 | "action, the action will be added to this list." | |
37 | msgstr "" | |
38 | "Uma lista de ações do PolicyKit na qual a caixa de seleção \"retain " | |
39 | "authorization\" (preservar autorização) não está marcada por padrão; essa " | |
40 | "lista é mantida pelo próprio código da caixa de diálogo. Por exemplo, se um " | |
41 | "usuário desmarcar a caixa de seleção \"retain authorization\" para uma ação " | |
42 | "e obter com sucesso uma autorização para realizá-la, então a ação será " | |
43 | "adicionada à lista." | |
44 | ||
45 | #: ../data/polkit-gnome.schemas.in.h:2 | |
46 | msgid "" | |
47 | "A list of actions where the \"retain authorization\" checkbox isn't checked " | |
48 | "by default" | |
49 | msgstr "" | |
50 | "Uma lista de ações na qual a caixa de seleção \"retain authorization" | |
51 | "\" (preservar autorização) não está marcada por padrão" | |
52 | ||
53 | #: ../data/polkit-gnome.schemas.in.h:3 | |
54 | msgid "" | |
32 | 55 | "If set to true, the authentication dialog from PolicyKit-gnome will grab the " |
33 | 56 | "keyboard, so that you will not be able to type in other programs while the " |
34 | 57 | "dialog is active. Use this if your window manager does not focus the " |
41 | 64 | "janelas não der o foco no diálogo de autenticação automaticamente e você " |
42 | 65 | "você deseja evitar digitar acidentalmente a senha em outros programas." |
43 | 66 | |
44 | #: ../data/polkit-gnome.schemas.in.h:2 | |
67 | #: ../data/polkit-gnome.schemas.in.h:4 | |
68 | msgid "" | |
69 | "If set to true, then \"retain authorization\" check box (if present) is " | |
70 | "checked by default in the authentication dialog unless the action is " | |
71 | "mentioned in the \"/desktop/gnome/policykit/" | |
72 | "auth_dialog_retain_authorization_blacklist\" key." | |
73 | msgstr "" | |
74 | "Caso esteja definida para \"true\" (verdadeiro), então a caixa de seleção " | |
75 | "\"retain authorization\" (preservar autorização) - caso presente - está " | |
76 | "marcada por padrão na caixa de diálogo de autenticação, a não ser que a ação " | |
77 | "esteja mencionada na chave \"/desktop/gnome/policykit/" | |
78 | "auth_dialog_retain_authorization_blacklist\"." | |
79 | ||
80 | #: ../data/polkit-gnome.schemas.in.h:5 | |
45 | 81 | msgid "Whether the authentication dialog should grab the keyboard" |
46 | 82 | msgstr "Se o diálogo de autenticação deve capturar o teclado" |
83 | ||
84 | #: ../data/polkit-gnome.schemas.in.h:6 | |
85 | msgid "Whether the retain authorization check box is checked by default" | |
86 | msgstr "" | |
87 | "Se a caixa de seleção de preservar autorização deve ou não ser marcada por " | |
88 | "padrão" | |
47 | 89 | |
48 | 90 | #: ../examples/polkit-gnome-example.c:137 |
49 | 91 | msgid "Copyright © 2007 David Zeuthen" |
336 | 378 | msgid "Starting PolicyKit GNOME session daemon version %s" |
337 | 379 | msgstr "Iniciando o PolicyKit GNOME session daemon versão %s" |
338 | 380 | |
339 | #: ../src/polkit-gnome-auth-dialog.c:190 | |
381 | #: ../src/polkit-gnome-auth-dialog.c:191 | |
340 | 382 | #: ../tools/polkit-gnome-authorization.c:649 |
341 | 383 | msgid "Select user..." |
342 | 384 | msgstr "Escolha um usuário..." |
343 | 385 | |
344 | #: ../src/polkit-gnome-auth-dialog.c:211 | |
386 | #: ../src/polkit-gnome-auth-dialog.c:212 | |
345 | 387 | #: ../tools/polkit-gnome-authorization.c:665 |
346 | 388 | #, c-format |
347 | 389 | msgid "%s (%s)" |
348 | 390 | msgstr "%s (%s)" |
349 | 391 | |
350 | #: ../src/polkit-gnome-auth-dialog.c:292 | |
392 | #: ../src/polkit-gnome-auth-dialog.c:293 | |
351 | 393 | msgid "_Remember authorization for this session" |
352 | 394 | msgstr "_Lembrar autorização para esta sessão" |
353 | 395 | |
354 | #: ../src/polkit-gnome-auth-dialog.c:298 | |
396 | #: ../src/polkit-gnome-auth-dialog.c:299 | |
355 | 397 | msgid "_Remember authorization" |
356 | 398 | msgstr "_Lembrar autorização" |
357 | 399 | |
358 | #: ../src/polkit-gnome-auth-dialog.c:313 | |
400 | #: ../src/polkit-gnome-auth-dialog.c:314 | |
359 | 401 | msgid "" |
360 | 402 | "An application is attempting to perform an action that requires privileges. " |
361 | 403 | "Authentication as one of the users below is required to perform this action." |
364 | 406 | "necessária uma autenticação como um dos usuários abaixo para executar esta " |
365 | 407 | "ação." |
366 | 408 | |
367 | #: ../src/polkit-gnome-auth-dialog.c:320 | |
409 | #: ../src/polkit-gnome-auth-dialog.c:321 | |
368 | 410 | msgid "" |
369 | 411 | "An application is attempting to perform an action that requires privileges. " |
370 | 412 | "Authentication as the super user is required to perform this action." |
372 | 414 | "Um aplicativo está tentando executar uma ação que requer privilégios. É " |
373 | 415 | "necessária uma autenticação como superusuário para executar esta ação." |
374 | 416 | |
375 | #: ../src/polkit-gnome-auth-dialog.c:324 | |
417 | #: ../src/polkit-gnome-auth-dialog.c:325 | |
376 | 418 | msgid "" |
377 | 419 | "An application is attempting to perform an action that requires privileges. " |
378 | 420 | "Authentication is required to perform this action." |
380 | 422 | "Um aplicativo está tentando executar uma ação que requer privilégios. É " |
381 | 423 | "necessária uma autenticação para executar esta ação." |
382 | 424 | |
383 | #: ../src/polkit-gnome-auth-dialog.c:348 | |
425 | #: ../src/polkit-gnome-auth-dialog.c:406 | |
384 | 426 | #, c-format |
385 | 427 | msgid "Click to edit %s" |
386 | 428 | msgstr "Clique para editar %s" |
387 | 429 | |
388 | #: ../src/polkit-gnome-auth-dialog.c:371 | |
430 | #: ../src/polkit-gnome-auth-dialog.c:431 | |
389 | 431 | #: ../tools/polkit-gnome-authorization.c:1391 |
390 | 432 | #, c-format |
391 | 433 | msgid "Click to open %s" |
392 | 434 | msgstr "Clique para abrir %s" |
393 | 435 | |
394 | #: ../src/polkit-gnome-auth-dialog.c:608 | |
436 | #: ../src/polkit-gnome-auth-dialog.c:668 | |
395 | 437 | msgid "_Authenticate" |
396 | 438 | msgstr "_Autenticar" |
397 | 439 | |
398 | #: ../src/polkit-gnome-auth-dialog.c:667 ../src/polkit-gnome-manager.c:686 | |
440 | #: ../src/polkit-gnome-auth-dialog.c:727 ../src/polkit-gnome-manager.c:686 | |
399 | 441 | #: ../src/polkit-gnome-manager.c:735 |
400 | 442 | msgid "_Password:" |
401 | 443 | msgstr "_Senha:" |
402 | 444 | |
403 | #: ../src/polkit-gnome-auth-dialog.c:689 | |
445 | #: ../src/polkit-gnome-auth-dialog.c:749 | |
404 | 446 | msgid "For this _session only" |
405 | 447 | msgstr "Apenas para esta _sessão" |
406 | 448 | |
407 | #: ../src/polkit-gnome-auth-dialog.c:697 | |
449 | #: ../src/polkit-gnome-auth-dialog.c:757 | |
408 | 450 | msgid "<small><b>_Details</b></small>" |
409 | 451 | msgstr "<small><b>_Detalhes</b></small>" |
410 | 452 | |
411 | #: ../src/polkit-gnome-auth-dialog.c:718 | |
453 | #: ../src/polkit-gnome-auth-dialog.c:778 | |
412 | 454 | msgid "<small><b>Application:</b></small>" |
413 | 455 | msgstr "<small><b>Aplicativo:</b></small>" |
414 | 456 | |
415 | #: ../src/polkit-gnome-auth-dialog.c:722 | |
457 | #: ../src/polkit-gnome-auth-dialog.c:782 | |
416 | 458 | msgid "<small><b>Action:</b></small>" |
417 | 459 | msgstr "<small><b>Ação:</b></small>" |
418 | 460 | |
419 | #: ../src/polkit-gnome-auth-dialog.c:727 | |
461 | #: ../src/polkit-gnome-auth-dialog.c:787 | |
420 | 462 | msgid "<small><b>Vendor:</b></small>" |
421 | 463 | msgstr "<small><b>Fornecedor:</b></small>" |
422 | 464 | |
423 | #: ../src/polkit-gnome-auth-dialog.c:856 | |
465 | #: ../src/polkit-gnome-auth-dialog.c:916 | |
424 | 466 | msgid "Authenticate" |
425 | 467 | msgstr "Autenticar" |
426 | 468 |
128 | 128 | F77 = @F77@ |
129 | 129 | FFLAGS = @FFLAGS@ |
130 | 130 | GCONFTOOL = @GCONFTOOL@ |
131 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
132 | GCONF_LIBS = @GCONF_LIBS@ | |
131 | 133 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
132 | 134 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
133 | 135 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
134 | 136 | GMOFILES = @GMOFILES@ |
135 | 137 | GMSGFMT = @GMSGFMT@ |
136 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
137 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
138 | 138 | GREP = @GREP@ |
139 | 139 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
140 | 140 | GTK_CFLAGS = @GTK_CFLAGS@ |
210 | 210 | RANLIB = @RANLIB@ |
211 | 211 | SED = @SED@ |
212 | 212 | SET_MAKE = @SET_MAKE@ |
213 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
214 | SEXY_LIBS = @SEXY_LIBS@ | |
215 | 213 | SHELL = @SHELL@ |
216 | 214 | STRIP = @STRIP@ |
217 | 215 | USE_NLS = @USE_NLS@ |
333 | 333 | * user. By toggling the action again, the negative authorization will |
334 | 334 | * be revoked. |
335 | 335 | * |
336 | * Default behavior is defined as having the icon_name be 'stock_lock' | |
336 | * Default behavior is defined as having the icon_name be 'security-medium' | |
337 | 337 | * by default except for the YES PolicyKit answer where it's set to |
338 | * 'stock_lock-open'. No tooltips are set. The label and short-label | |
338 | * 'security-low'. No tooltips are set. The label and short-label | |
339 | 339 | * will be 'locked_label' everywhere except in the YES state where |
340 | 340 | * it's set to 'unlocked-label'. When authentication is underway, the |
341 | 341 | * label will be "Authenticating..." and icon_name is untouched. If |
371 | 371 | "self-blocked-short-label", locked_label, |
372 | 372 | "self-blocked-label", locked_label, |
373 | 373 | "self-blocked-tooltip", NULL, |
374 | "self-blocked-icon-name", "stock_lock", | |
374 | "self-blocked-icon-name", "security-medium", | |
375 | 375 | |
376 | 376 | "no-visible", TRUE, |
377 | 377 | "no-sensitive", FALSE, |
378 | 378 | "no-short-label", locked_label, |
379 | 379 | "no-label", locked_label, |
380 | 380 | "no-tooltip", NULL, |
381 | "no-icon-name", "stock_lock", | |
381 | "no-icon-name", "security-medium", | |
382 | 382 | |
383 | 383 | "auth-visible", TRUE, |
384 | 384 | "auth-sensitive", TRUE, |
385 | 385 | "auth-short-label", locked_label, |
386 | 386 | "auth-label", locked_label, |
387 | 387 | "auth-tooltip", NULL, |
388 | "auth-icon-name", "stock_lock", | |
388 | "auth-icon-name", "security-medium", | |
389 | 389 | |
390 | 390 | "yes-visible", TRUE, |
391 | 391 | "yes-sensitive", TRUE, |
392 | 392 | "yes-short-label", unlocked_label, |
393 | 393 | "yes-label", unlocked_label, |
394 | 394 | "yes-tooltip", NULL, |
395 | "yes-icon-name", "stock_lock-open", | |
395 | "yes-icon-name", "security-low", | |
396 | 396 | |
397 | 397 | "auth-underway-visible", TRUE, |
398 | 398 | "auth-underway-sensitive", TRUE, |
399 | 399 | "auth-underway-short-label", _("Authenticating..."), |
400 | 400 | "auth-underway-label", _("Authenticating..."), |
401 | 401 | "auth-underway-tooltip", NULL, |
402 | "auth-underway-icon-name", "stock_lock", | |
402 | "auth-underway-icon-name", "security-medium", | |
403 | 403 | |
404 | 404 | "master-visible", TRUE, |
405 | 405 | "master-sensitive", TRUE, |
407 | 407 | return toggle_action; |
408 | 408 | } |
409 | 409 | |
410 | /*----------------------------------------------------------------------------------------------------*/ | |
410 | /*---------------------------------------------------------------------------------security-medium-------------------*/ | |
411 | 411 | |
412 | 412 | static void |
413 | 413 | polkit_gnome_toggle_action_set_auth_underway_visible (PolKitGnomeToggleAction *action, gboolean visible) |
9 | 9 | polkit_gnome_manager_SOURCES = \ |
10 | 10 | polkit-gnome-manager.h polkit-gnome-manager.c \ |
11 | 11 | polkit-gnome-auth-dialog.h polkit-gnome-auth-dialog.c \ |
12 | sexy-url-label.h sexy-url-label.c \ | |
12 | 13 | main.c \ |
13 | 14 | $(BUILT_SOURCES) |
14 | 15 | |
22 | 23 | |
23 | 24 | polkit_gnome_manager_CFLAGS = \ |
24 | 25 | $(GTK_CFLAGS) \ |
25 | $(SEXY_CFLAGS) \ | |
26 | $(GNOME_VFS_CFLAGS) \ | |
26 | $(GCONF_CFLAGS) \ | |
27 | 27 | $(DBUS_GLIB_CFLAGS) \ |
28 | 28 | $(POLKIT_DBUS_CFLAGS) \ |
29 | 29 | $(POLKIT_GRANT_CFLAGS) \ |
35 | 35 | |
36 | 36 | polkit_gnome_manager_LDADD = \ |
37 | 37 | $(GTK_LIBS) \ |
38 | $(SEXY_LIBS) \ | |
39 | $(GNOME_VFS_LIBS) \ | |
38 | $(GCONF_LIBS) \ | |
40 | 39 | $(DBUS_GLIB_LIBS) \ |
41 | 40 | $(POLKIT_DBUS_LIBS) \ |
42 | 41 | $(POLKIT_GRANT_LIBS) \ |
48 | 48 | am_polkit_gnome_manager_OBJECTS = \ |
49 | 49 | polkit_gnome_manager-polkit-gnome-manager.$(OBJEXT) \ |
50 | 50 | polkit_gnome_manager-polkit-gnome-auth-dialog.$(OBJEXT) \ |
51 | polkit_gnome_manager-sexy-url-label.$(OBJEXT) \ | |
51 | 52 | polkit_gnome_manager-main.$(OBJEXT) $(am__objects_1) |
52 | 53 | polkit_gnome_manager_OBJECTS = $(am_polkit_gnome_manager_OBJECTS) |
53 | 54 | am__DEPENDENCIES_1 = |
54 | 55 | polkit_gnome_manager_DEPENDENCIES = $(am__DEPENDENCIES_1) \ |
55 | 56 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
56 | 57 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
57 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) | |
58 | $(am__DEPENDENCIES_1) | |
58 | 59 | polkit_gnome_manager_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ |
59 | 60 | $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
60 | 61 | $(polkit_gnome_manager_CFLAGS) $(CFLAGS) \ |
119 | 120 | F77 = @F77@ |
120 | 121 | FFLAGS = @FFLAGS@ |
121 | 122 | GCONFTOOL = @GCONFTOOL@ |
123 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
124 | GCONF_LIBS = @GCONF_LIBS@ | |
122 | 125 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
123 | 126 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
124 | 127 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
125 | 128 | GMOFILES = @GMOFILES@ |
126 | 129 | GMSGFMT = @GMSGFMT@ |
127 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
128 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
129 | 130 | GREP = @GREP@ |
130 | 131 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
131 | 132 | GTK_CFLAGS = @GTK_CFLAGS@ |
201 | 202 | RANLIB = @RANLIB@ |
202 | 203 | SED = @SED@ |
203 | 204 | SET_MAKE = @SET_MAKE@ |
204 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
205 | SEXY_LIBS = @SEXY_LIBS@ | |
206 | 205 | SHELL = @SHELL@ |
207 | 206 | STRIP = @STRIP@ |
208 | 207 | USE_NLS = @USE_NLS@ |
267 | 266 | polkit_gnome_manager_SOURCES = \ |
268 | 267 | polkit-gnome-manager.h polkit-gnome-manager.c \ |
269 | 268 | polkit-gnome-auth-dialog.h polkit-gnome-auth-dialog.c \ |
269 | sexy-url-label.h sexy-url-label.c \ | |
270 | 270 | main.c \ |
271 | 271 | $(BUILT_SOURCES) |
272 | 272 | |
280 | 280 | |
281 | 281 | polkit_gnome_manager_CFLAGS = \ |
282 | 282 | $(GTK_CFLAGS) \ |
283 | $(SEXY_CFLAGS) \ | |
284 | $(GNOME_VFS_CFLAGS) \ | |
283 | $(GCONF_CFLAGS) \ | |
285 | 284 | $(DBUS_GLIB_CFLAGS) \ |
286 | 285 | $(POLKIT_DBUS_CFLAGS) \ |
287 | 286 | $(POLKIT_GRANT_CFLAGS) \ |
293 | 292 | |
294 | 293 | polkit_gnome_manager_LDADD = \ |
295 | 294 | $(GTK_LIBS) \ |
296 | $(SEXY_LIBS) \ | |
297 | $(GNOME_VFS_LIBS) \ | |
295 | $(GCONF_LIBS) \ | |
298 | 296 | $(DBUS_GLIB_LIBS) \ |
299 | 297 | $(POLKIT_DBUS_LIBS) \ |
300 | 298 | $(POLKIT_GRANT_LIBS) \ |
377 | 375 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_manager-main.Po@am__quote@ |
378 | 376 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_manager-polkit-gnome-auth-dialog.Po@am__quote@ |
379 | 377 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_manager-polkit-gnome-manager.Po@am__quote@ |
378 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_manager-sexy-url-label.Po@am__quote@ | |
380 | 379 | |
381 | 380 | .c.o: |
382 | 381 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
426 | 425 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkit-gnome-auth-dialog.c' object='polkit_gnome_manager-polkit-gnome-auth-dialog.obj' libtool=no @AMDEPBACKSLASH@ |
427 | 426 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
428 | 427 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_manager_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_manager_CFLAGS) $(CFLAGS) -c -o polkit_gnome_manager-polkit-gnome-auth-dialog.obj `if test -f 'polkit-gnome-auth-dialog.c'; then $(CYGPATH_W) 'polkit-gnome-auth-dialog.c'; else $(CYGPATH_W) '$(srcdir)/polkit-gnome-auth-dialog.c'; fi` |
428 | ||
429 | polkit_gnome_manager-sexy-url-label.o: sexy-url-label.c | |
430 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_manager_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_manager_CFLAGS) $(CFLAGS) -MT polkit_gnome_manager-sexy-url-label.o -MD -MP -MF $(DEPDIR)/polkit_gnome_manager-sexy-url-label.Tpo -c -o polkit_gnome_manager-sexy-url-label.o `test -f 'sexy-url-label.c' || echo '$(srcdir)/'`sexy-url-label.c | |
431 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/polkit_gnome_manager-sexy-url-label.Tpo $(DEPDIR)/polkit_gnome_manager-sexy-url-label.Po | |
432 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sexy-url-label.c' object='polkit_gnome_manager-sexy-url-label.o' libtool=no @AMDEPBACKSLASH@ | |
433 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
434 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_manager_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_manager_CFLAGS) $(CFLAGS) -c -o polkit_gnome_manager-sexy-url-label.o `test -f 'sexy-url-label.c' || echo '$(srcdir)/'`sexy-url-label.c | |
435 | ||
436 | polkit_gnome_manager-sexy-url-label.obj: sexy-url-label.c | |
437 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_manager_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_manager_CFLAGS) $(CFLAGS) -MT polkit_gnome_manager-sexy-url-label.obj -MD -MP -MF $(DEPDIR)/polkit_gnome_manager-sexy-url-label.Tpo -c -o polkit_gnome_manager-sexy-url-label.obj `if test -f 'sexy-url-label.c'; then $(CYGPATH_W) 'sexy-url-label.c'; else $(CYGPATH_W) '$(srcdir)/sexy-url-label.c'; fi` | |
438 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/polkit_gnome_manager-sexy-url-label.Tpo $(DEPDIR)/polkit_gnome_manager-sexy-url-label.Po | |
439 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sexy-url-label.c' object='polkit_gnome_manager-sexy-url-label.obj' libtool=no @AMDEPBACKSLASH@ | |
440 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
441 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_manager_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_manager_CFLAGS) $(CFLAGS) -c -o polkit_gnome_manager-sexy-url-label.obj `if test -f 'sexy-url-label.c'; then $(CYGPATH_W) 'sexy-url-label.c'; else $(CYGPATH_W) '$(srcdir)/sexy-url-label.c'; fi` | |
429 | 442 | |
430 | 443 | polkit_gnome_manager-main.o: main.c |
431 | 444 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_manager_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_manager_CFLAGS) $(CFLAGS) -MT polkit_gnome_manager-main.o -MD -MP -MF $(DEPDIR)/polkit_gnome_manager-main.Tpo -c -o polkit_gnome_manager-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c |
31 | 31 | #include <stdlib.h> |
32 | 32 | #include <pwd.h> |
33 | 33 | #include <errno.h> |
34 | #include <libsexy/sexy.h> | |
35 | #include <libgnomevfs/gnome-vfs-utils.h> | |
36 | 34 | #include <gconf/gconf-client.h> |
37 | 35 | |
38 | 36 | #include <glib/gi18n-lib.h> |
40 | 38 | #include <dbus/dbus-glib.h> |
41 | 39 | #include <dbus/dbus-glib-lowlevel.h> |
42 | 40 | |
41 | #include "sexy-url-label.h" | |
43 | 42 | #include "polkit-gnome-auth-dialog.h" |
44 | 43 | |
45 | 44 | struct _PolkitGnomeAuthDialogPrivate |
609 | 608 | vendor_url_activated (SexyUrlLabel *url_label, char *url, gpointer user_data) |
610 | 609 | { |
611 | 610 | if (url != NULL) { |
612 | gnome_vfs_url_show (url); | |
611 | gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL); | |
613 | 612 | } |
614 | 613 | } |
615 | 614 |
52 | 52 | #endif /* !G_ENABLE_DEBUG */ |
53 | 53 | |
54 | 54 | |
55 | /* NONE:STRING,UINT,POINTER (/tmp/dbus-binding-tool-c-marshallers.SPSWEU:1) */ | |
55 | /* NONE:STRING,UINT,POINTER (/tmp/dbus-binding-tool-c-marshallers.CF78FU:1) */ | |
56 | 56 | extern void dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_POINTER (GClosure *closure, |
57 | 57 | GValue *return_value, |
58 | 58 | guint n_param_values, |
98 | 98 | } |
99 | 99 | #define dbus_glib_marshal_polkit_gnome_manager_NONE__STRING_UINT_POINTER dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_POINTER |
100 | 100 | |
101 | /* NONE:STRING,UINT,UINT,POINTER (/tmp/dbus-binding-tool-c-marshallers.SPSWEU:2) */ | |
101 | /* NONE:STRING,UINT,UINT,POINTER (/tmp/dbus-binding-tool-c-marshallers.CF78FU:2) */ | |
102 | 102 | extern void dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_UINT_POINTER (GClosure *closure, |
103 | 103 | GValue *return_value, |
104 | 104 | guint n_param_values, |
0 | /* | |
1 | * @file libsexy/sexy-url-label.c URL Label | |
2 | * | |
3 | * @Copyright (C) 2005-2006 Christian Hammond | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2.1 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library 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 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this library; if not, write to the | |
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 | * Boston, MA 02111-1307, USA. | |
19 | */ | |
20 | #include <gtk/gtk.h> | |
21 | #include <string.h> | |
22 | #include <stdio.h> | |
23 | ||
24 | #include "sexy-url-label.h" | |
25 | ||
26 | #define SEXY_URL_LABEL_GET_PRIVATE(obj) \ | |
27 | (G_TYPE_INSTANCE_GET_PRIVATE((obj), SEXY_TYPE_URL_LABEL, \ | |
28 | SexyUrlLabelPrivate)) | |
29 | ||
30 | typedef struct | |
31 | { | |
32 | int start; | |
33 | int end; | |
34 | const gchar *url; | |
35 | ||
36 | } SexyUrlLabelLink; | |
37 | ||
38 | typedef struct | |
39 | { | |
40 | GList *links; | |
41 | GList *urls; | |
42 | SexyUrlLabelLink *active_link; | |
43 | GtkWidget *popup_menu; | |
44 | GdkWindow *event_window; | |
45 | ||
46 | int layout_x; | |
47 | int layout_y; | |
48 | ||
49 | size_t wrap_width; | |
50 | ||
51 | GString *temp_markup_result; | |
52 | ||
53 | } SexyUrlLabelPrivate; | |
54 | ||
55 | /* | |
56 | * NOTE: This *MUST* match the LabelWrapWidth struct in gtklabel.c. | |
57 | */ | |
58 | typedef struct | |
59 | { | |
60 | gint width; | |
61 | PangoFontDescription *font_desc; | |
62 | ||
63 | } LabelWrapWidth; | |
64 | ||
65 | enum | |
66 | { | |
67 | URL_ACTIVATED, | |
68 | LAST_SIGNAL | |
69 | }; | |
70 | ||
71 | static void sexy_url_label_finalize(GObject *obj); | |
72 | static void sexy_url_label_realize(GtkWidget *widget); | |
73 | static void sexy_url_label_unrealize(GtkWidget *widget); | |
74 | static void sexy_url_label_map(GtkWidget *widget); | |
75 | static void sexy_url_label_unmap(GtkWidget *widget); | |
76 | static void sexy_url_label_size_allocate(GtkWidget *widget, | |
77 | GtkAllocation *allocation); | |
78 | static gboolean sexy_url_label_motion_notify_event(GtkWidget *widget, | |
79 | GdkEventMotion *event); | |
80 | static gboolean sexy_url_label_leave_notify_event(GtkWidget *widget, | |
81 | GdkEventCrossing *event); | |
82 | static gboolean sexy_url_label_button_press_event(GtkWidget *widget, | |
83 | GdkEventButton *event); | |
84 | ||
85 | static void open_link_activate_cb(GtkMenuItem *menu_item, | |
86 | SexyUrlLabel *url_label); | |
87 | static void copy_link_activate_cb(GtkMenuItem *menu_item, | |
88 | SexyUrlLabel *url_label); | |
89 | ||
90 | static void sexy_url_label_clear_links(SexyUrlLabel *url_label); | |
91 | static void sexy_url_label_clear_urls(SexyUrlLabel *url_label); | |
92 | static void sexy_url_label_rescan_label(SexyUrlLabel *url_label); | |
93 | ||
94 | static GtkLabelClass *parent_class = NULL; | |
95 | static guint signals[LAST_SIGNAL] = {0}; | |
96 | ||
97 | G_DEFINE_TYPE(SexyUrlLabel, sexy_url_label, GTK_TYPE_LABEL); | |
98 | ||
99 | static void | |
100 | sexy_url_label_class_init(SexyUrlLabelClass *klass) | |
101 | { | |
102 | GObjectClass *object_class = G_OBJECT_CLASS(klass); | |
103 | GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); | |
104 | ||
105 | parent_class = g_type_class_peek_parent(klass); | |
106 | ||
107 | object_class->finalize = sexy_url_label_finalize; | |
108 | ||
109 | widget_class->realize = sexy_url_label_realize; | |
110 | widget_class->unrealize = sexy_url_label_unrealize; | |
111 | widget_class->map = sexy_url_label_map; | |
112 | widget_class->unmap = sexy_url_label_unmap; | |
113 | widget_class->size_allocate = sexy_url_label_size_allocate; | |
114 | widget_class->motion_notify_event = sexy_url_label_motion_notify_event; | |
115 | widget_class->leave_notify_event = sexy_url_label_leave_notify_event; | |
116 | widget_class->button_press_event = sexy_url_label_button_press_event; | |
117 | ||
118 | g_type_class_add_private(klass, sizeof(SexyUrlLabelPrivate)); | |
119 | ||
120 | /** | |
121 | * SexyUrlLabel::url-activated: | |
122 | * @url_label: The label on which the signal was emitted. | |
123 | * @url: The URL which was activated. | |
124 | * | |
125 | * The ::url-activated signal is emitted when a URL in the label was | |
126 | * clicked. | |
127 | */ | |
128 | signals[URL_ACTIVATED] = | |
129 | g_signal_new("url_activated", | |
130 | G_TYPE_FROM_CLASS(object_class), | |
131 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
132 | G_STRUCT_OFFSET(SexyUrlLabelClass, url_activated), | |
133 | NULL, NULL, | |
134 | g_cclosure_marshal_VOID__STRING, | |
135 | G_TYPE_NONE, 1, | |
136 | G_TYPE_STRING); | |
137 | } | |
138 | ||
139 | static void | |
140 | selectable_changed_cb(SexyUrlLabel *url_label) | |
141 | { | |
142 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
143 | ||
144 | if (priv->event_window != NULL) | |
145 | { | |
146 | GdkCursor *cursor = NULL; | |
147 | ||
148 | if (gtk_label_get_selectable(GTK_LABEL(url_label)) && | |
149 | priv->active_link == NULL) | |
150 | cursor = gdk_cursor_new_for_display( | |
151 | gtk_widget_get_display(GTK_WIDGET(url_label)), GDK_XTERM); | |
152 | gdk_window_set_cursor(priv->event_window, cursor); | |
153 | ||
154 | if (cursor) | |
155 | gdk_cursor_unref(cursor); | |
156 | ||
157 | /* | |
158 | * GtkLabel recreates its event window when the selectable property | |
159 | * changes, which will cover ours. | |
160 | */ | |
161 | gdk_window_raise(priv->event_window); | |
162 | } | |
163 | } | |
164 | ||
165 | static void | |
166 | sexy_url_label_init(SexyUrlLabel *url_label) | |
167 | { | |
168 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
169 | GtkWidget *item; | |
170 | GtkWidget *image; | |
171 | ||
172 | priv->links = NULL; | |
173 | priv->active_link = NULL; | |
174 | priv->event_window = NULL; | |
175 | ||
176 | g_signal_connect(G_OBJECT(url_label), "notify::selectable", | |
177 | G_CALLBACK(selectable_changed_cb), NULL); | |
178 | ||
179 | priv->popup_menu = gtk_menu_new(); | |
180 | ||
181 | /* Open Link */ | |
182 | item = gtk_image_menu_item_new_with_mnemonic("_Open Link"); | |
183 | gtk_widget_show(item); | |
184 | gtk_menu_shell_append(GTK_MENU_SHELL(priv->popup_menu), item); | |
185 | ||
186 | g_signal_connect(G_OBJECT(item), "activate", | |
187 | G_CALLBACK(open_link_activate_cb), url_label); | |
188 | ||
189 | image = gtk_image_new_from_stock(GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_MENU); | |
190 | gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image); | |
191 | gtk_widget_show(image); | |
192 | ||
193 | /* Copy Link Address */ | |
194 | item = gtk_image_menu_item_new_with_mnemonic("Copy _Link Address"); | |
195 | gtk_widget_show(item); | |
196 | gtk_menu_shell_append(GTK_MENU_SHELL(priv->popup_menu), item); | |
197 | ||
198 | g_signal_connect(G_OBJECT(item), "activate", | |
199 | G_CALLBACK(copy_link_activate_cb), url_label); | |
200 | ||
201 | image = gtk_image_new_from_stock(GTK_STOCK_COPY, GTK_ICON_SIZE_MENU); | |
202 | gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image); | |
203 | gtk_widget_show(image); | |
204 | } | |
205 | ||
206 | static void | |
207 | sexy_url_label_finalize(GObject *obj) | |
208 | { | |
209 | SexyUrlLabel *url_label = SEXY_URL_LABEL(obj); | |
210 | ||
211 | sexy_url_label_clear_links(url_label); | |
212 | sexy_url_label_clear_urls(url_label); | |
213 | ||
214 | if (G_OBJECT_CLASS(parent_class)->finalize != NULL) | |
215 | G_OBJECT_CLASS(parent_class)->finalize(obj); | |
216 | } | |
217 | ||
218 | static gboolean | |
219 | sexy_url_label_motion_notify_event(GtkWidget *widget, GdkEventMotion *event) | |
220 | { | |
221 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
222 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
223 | PangoLayout *layout = gtk_label_get_layout(GTK_LABEL(url_label)); | |
224 | GdkModifierType state; | |
225 | gboolean found = FALSE; | |
226 | GList *l; | |
227 | int index, trailing; | |
228 | int x, y; | |
229 | SexyUrlLabelLink *link = NULL; | |
230 | ||
231 | if (event->is_hint) | |
232 | gdk_window_get_pointer(event->window, &x, &y, &state); | |
233 | else | |
234 | { | |
235 | x = event->x; | |
236 | y = event->y; | |
237 | state = event->state; | |
238 | } | |
239 | ||
240 | if (pango_layout_xy_to_index(layout, | |
241 | (x - priv->layout_x) * PANGO_SCALE, | |
242 | (y - priv->layout_y) * PANGO_SCALE, | |
243 | &index, &trailing)) | |
244 | { | |
245 | for (l = priv->links; l != NULL; l = l->next) | |
246 | { | |
247 | link = (SexyUrlLabelLink *)l->data; | |
248 | ||
249 | if (index >= link->start && index <= link->end) | |
250 | { | |
251 | found = TRUE; | |
252 | break; | |
253 | } | |
254 | } | |
255 | } | |
256 | ||
257 | if (found) | |
258 | { | |
259 | if (priv->active_link == NULL) | |
260 | { | |
261 | GdkCursor *cursor; | |
262 | ||
263 | cursor = gdk_cursor_new_for_display( | |
264 | gtk_widget_get_display(widget), GDK_HAND2); | |
265 | gdk_window_set_cursor(priv->event_window, cursor); | |
266 | gdk_cursor_unref(cursor); | |
267 | ||
268 | priv->active_link = link; | |
269 | } | |
270 | } | |
271 | else | |
272 | { | |
273 | if (priv->active_link != NULL) | |
274 | { | |
275 | if (gtk_label_get_selectable(GTK_LABEL(url_label))) | |
276 | { | |
277 | GdkCursor *cursor; | |
278 | ||
279 | cursor = gdk_cursor_new_for_display( | |
280 | gtk_widget_get_display(widget), GDK_XTERM); | |
281 | gdk_window_set_cursor(priv->event_window, cursor); | |
282 | gdk_cursor_unref(cursor); | |
283 | } | |
284 | else | |
285 | gdk_window_set_cursor(priv->event_window, NULL); | |
286 | ||
287 | priv->active_link = NULL; | |
288 | } | |
289 | } | |
290 | ||
291 | /* | |
292 | * Another beautiful libsexy hack. This one prevents the callback | |
293 | * from going "Oh boy, they clicked and dragged! Let's select more of | |
294 | * the text!" | |
295 | */ | |
296 | if (priv->active_link != NULL) | |
297 | event->state = 0; | |
298 | ||
299 | GTK_WIDGET_CLASS(parent_class)->motion_notify_event(widget, event); | |
300 | ||
301 | return FALSE; | |
302 | } | |
303 | ||
304 | static gboolean | |
305 | sexy_url_label_leave_notify_event(GtkWidget *widget, GdkEventCrossing *event) | |
306 | { | |
307 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
308 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
309 | ||
310 | if (GTK_WIDGET_CLASS(parent_class)->leave_notify_event != NULL) | |
311 | GTK_WIDGET_CLASS(parent_class)->leave_notify_event(widget, event); | |
312 | ||
313 | if (event->mode == GDK_CROSSING_NORMAL) | |
314 | { | |
315 | GdkCursor *cursor = NULL; | |
316 | if (gtk_label_get_selectable(GTK_LABEL(widget))) | |
317 | cursor = gdk_cursor_new_for_display( | |
318 | gtk_widget_get_display(widget), GDK_XTERM); | |
319 | gdk_window_set_cursor(priv->event_window, cursor); | |
320 | if (cursor) | |
321 | gdk_cursor_unref(cursor); | |
322 | priv->active_link = NULL; | |
323 | } | |
324 | ||
325 | return FALSE; | |
326 | } | |
327 | ||
328 | static gboolean | |
329 | sexy_url_label_button_press_event(GtkWidget *widget, GdkEventButton *event) | |
330 | { | |
331 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
332 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
333 | ||
334 | if (priv->active_link == NULL) | |
335 | { | |
336 | return GTK_WIDGET_CLASS(parent_class)->button_press_event(widget, | |
337 | event); | |
338 | } | |
339 | ||
340 | if (event->button == 1) | |
341 | { | |
342 | g_signal_emit(url_label, signals[URL_ACTIVATED], 0, | |
343 | priv->active_link->url); | |
344 | } | |
345 | else if (event->button == 3) | |
346 | { | |
347 | gtk_menu_popup(GTK_MENU(priv->popup_menu), NULL, NULL, NULL, NULL, | |
348 | event->button, event->time); | |
349 | } | |
350 | ||
351 | return TRUE; | |
352 | } | |
353 | ||
354 | static void | |
355 | update_wrap_width(SexyUrlLabel *url_label, size_t wrap_width) | |
356 | { | |
357 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
358 | LabelWrapWidth *wrap_width_data; | |
359 | GtkStyle *style; | |
360 | ||
361 | if (wrap_width == 0 || !gtk_label_get_line_wrap(GTK_LABEL(url_label))) | |
362 | return; | |
363 | ||
364 | #if 0 | |
365 | pango_layout_set_width(gtk_label_get_layout(GTK_LABEL(url_label)), | |
366 | wrap_width * PANGO_SCALE); | |
367 | #endif | |
368 | style = GTK_WIDGET(url_label)->style; | |
369 | wrap_width_data = g_object_get_data(G_OBJECT(style), | |
370 | "gtk-label-wrap-width"); | |
371 | ||
372 | if (wrap_width_data != NULL && | |
373 | wrap_width_data->width != wrap_width * PANGO_SCALE) | |
374 | { | |
375 | wrap_width_data->width = wrap_width * PANGO_SCALE; | |
376 | priv->wrap_width = wrap_width; | |
377 | g_object_unref(GTK_LABEL(url_label)->layout); | |
378 | GTK_LABEL(url_label)->layout = NULL; | |
379 | gtk_label_get_layout(GTK_LABEL(url_label)); | |
380 | gtk_widget_queue_resize(GTK_WIDGET(url_label)); | |
381 | } | |
382 | } | |
383 | ||
384 | static void | |
385 | sexy_url_label_realize(GtkWidget *widget) | |
386 | { | |
387 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
388 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
389 | GdkWindowAttr attributes; | |
390 | gint attributes_mask; | |
391 | ||
392 | GTK_WIDGET_CLASS(parent_class)->realize(widget); | |
393 | ||
394 | attributes.window_type = GDK_WINDOW_CHILD; | |
395 | attributes.x = widget->allocation.x; | |
396 | attributes.y = widget->allocation.y; | |
397 | attributes.width = widget->allocation.width; | |
398 | attributes.height = widget->allocation.height; | |
399 | attributes.window_type = GDK_WINDOW_CHILD; | |
400 | attributes.wclass = GDK_INPUT_ONLY; | |
401 | attributes.event_mask = gtk_widget_get_events(widget); | |
402 | attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | | |
403 | GDK_BUTTON_RELEASE_MASK | | |
404 | GDK_POINTER_MOTION_MASK | | |
405 | GDK_POINTER_MOTION_HINT_MASK | | |
406 | GDK_LEAVE_NOTIFY_MASK | | |
407 | GDK_LEAVE_NOTIFY_MASK); | |
408 | attributes_mask = GDK_WA_X | GDK_WA_Y; | |
409 | ||
410 | if (gtk_label_get_selectable(GTK_LABEL(widget))) { | |
411 | attributes.cursor = gdk_cursor_new_for_display( | |
412 | gtk_widget_get_display(widget), GDK_XTERM); | |
413 | attributes_mask |= GDK_WA_CURSOR; | |
414 | } | |
415 | ||
416 | priv->event_window = | |
417 | gdk_window_new(gtk_widget_get_parent_window(widget), &attributes, | |
418 | attributes_mask); | |
419 | gdk_window_set_user_data(priv->event_window, widget); | |
420 | ||
421 | if (attributes_mask & GDK_WA_CURSOR) | |
422 | gdk_cursor_unref (attributes.cursor); | |
423 | } | |
424 | ||
425 | static void | |
426 | sexy_url_label_unrealize(GtkWidget *widget) | |
427 | { | |
428 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
429 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
430 | ||
431 | if (priv->event_window != NULL) | |
432 | { | |
433 | gdk_window_set_user_data(priv->event_window, NULL); | |
434 | gdk_window_destroy(priv->event_window); | |
435 | priv->event_window = NULL; | |
436 | } | |
437 | ||
438 | GTK_WIDGET_CLASS(parent_class)->unrealize(widget); | |
439 | } | |
440 | ||
441 | static void | |
442 | sexy_url_label_map(GtkWidget *widget) | |
443 | { | |
444 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
445 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
446 | ||
447 | GTK_WIDGET_CLASS(parent_class)->map(widget); | |
448 | ||
449 | if (priv->event_window != NULL) | |
450 | gdk_window_show(priv->event_window); | |
451 | } | |
452 | ||
453 | static void | |
454 | sexy_url_label_unmap(GtkWidget *widget) | |
455 | { | |
456 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
457 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
458 | ||
459 | if (priv->event_window != NULL) | |
460 | gdk_window_hide(priv->event_window); | |
461 | ||
462 | GTK_WIDGET_CLASS(parent_class)->unmap(widget); | |
463 | } | |
464 | ||
465 | static void | |
466 | sexy_url_label_size_allocate(GtkWidget *widget, GtkAllocation *allocation) | |
467 | { | |
468 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
469 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
470 | ||
471 | #if 0 | |
472 | { | |
473 | LabelWrapWidth *wrap_width_data; | |
474 | GtkStyle *style; | |
475 | style = GTK_WIDGET(url_label)->style; | |
476 | wrap_width_data = g_object_get_data(G_OBJECT(style), | |
477 | "gtk-label-wrap-width"); | |
478 | if (wrap_width_data != NULL) | |
479 | printf("wrap width = %d\n", wrap_width_data->width / PANGO_SCALE); | |
480 | } | |
481 | #endif | |
482 | update_wrap_width(url_label, allocation->width); | |
483 | GTK_WIDGET_CLASS(parent_class)->size_allocate(widget, allocation); | |
484 | pango_layout_set_width(gtk_label_get_layout(GTK_LABEL(url_label)), | |
485 | allocation->width * PANGO_SCALE); | |
486 | ||
487 | if (GTK_WIDGET_REALIZED(widget)) | |
488 | { | |
489 | gdk_window_move_resize(priv->event_window, | |
490 | allocation->x, allocation->y, | |
491 | allocation->width, allocation->height); | |
492 | } | |
493 | ||
494 | sexy_url_label_rescan_label(url_label); | |
495 | } | |
496 | ||
497 | static void | |
498 | open_link_activate_cb(GtkMenuItem *menu_item, SexyUrlLabel *url_label) | |
499 | { | |
500 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
501 | ||
502 | if (priv->active_link == NULL) | |
503 | return; | |
504 | ||
505 | g_signal_emit(url_label, signals[URL_ACTIVATED], 0, priv->active_link->url); | |
506 | } | |
507 | ||
508 | static void | |
509 | copy_link_activate_cb(GtkMenuItem *menu_item, SexyUrlLabel *url_label) | |
510 | { | |
511 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
512 | GtkClipboard *clipboard; | |
513 | ||
514 | if (priv->active_link == NULL) | |
515 | return; | |
516 | ||
517 | clipboard = gtk_widget_get_clipboard(GTK_WIDGET(url_label), | |
518 | GDK_SELECTION_PRIMARY); | |
519 | ||
520 | gtk_clipboard_set_text(clipboard, priv->active_link->url, | |
521 | strlen(priv->active_link->url)); | |
522 | } | |
523 | ||
524 | /** | |
525 | * sexy_url_label_new | |
526 | * | |
527 | * Creates a new SexyUrlLabel widget. | |
528 | * | |
529 | * Returns: a new #SexyUrlLabel. | |
530 | */ | |
531 | GtkWidget * | |
532 | sexy_url_label_new(void) | |
533 | { | |
534 | return g_object_new(SEXY_TYPE_URL_LABEL, NULL); | |
535 | } | |
536 | ||
537 | static void | |
538 | sexy_url_label_clear_links(SexyUrlLabel *url_label) | |
539 | { | |
540 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
541 | ||
542 | if (priv->links == NULL) | |
543 | return; | |
544 | ||
545 | g_list_foreach(priv->links, (GFunc)g_free, NULL); | |
546 | g_list_free(priv->links); | |
547 | priv->links = NULL; | |
548 | } | |
549 | ||
550 | static void | |
551 | sexy_url_label_clear_urls(SexyUrlLabel *url_label) | |
552 | { | |
553 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
554 | ||
555 | if (priv->urls == NULL) | |
556 | return; | |
557 | ||
558 | g_list_foreach(priv->urls, (GFunc)g_free, NULL); | |
559 | g_list_free(priv->urls); | |
560 | priv->urls = NULL; | |
561 | } | |
562 | ||
563 | static void | |
564 | sexy_url_label_rescan_label(SexyUrlLabel *url_label) | |
565 | { | |
566 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
567 | PangoLayout *layout = gtk_label_get_layout(GTK_LABEL(url_label)); | |
568 | PangoAttrList *list = pango_layout_get_attributes(layout); | |
569 | PangoAttrIterator *iter; | |
570 | GList *url_list; | |
571 | ||
572 | sexy_url_label_clear_links(url_label); | |
573 | ||
574 | if (list == NULL) | |
575 | return; | |
576 | ||
577 | iter = pango_attr_list_get_iterator(list); | |
578 | ||
579 | gtk_label_get_layout_offsets(GTK_LABEL(url_label), | |
580 | &priv->layout_x, &priv->layout_y); | |
581 | ||
582 | priv->layout_x -= GTK_WIDGET(url_label)->allocation.x; | |
583 | priv->layout_y -= GTK_WIDGET(url_label)->allocation.y; | |
584 | ||
585 | url_list = priv->urls; | |
586 | ||
587 | do | |
588 | { | |
589 | PangoAttribute *underline; | |
590 | PangoAttribute *color; | |
591 | ||
592 | underline = pango_attr_iterator_get(iter, PANGO_ATTR_UNDERLINE); | |
593 | color = pango_attr_iterator_get(iter, PANGO_ATTR_FOREGROUND); | |
594 | ||
595 | if (underline != NULL && color != NULL) | |
596 | { | |
597 | gint start, end; | |
598 | PangoRectangle start_pos; | |
599 | PangoRectangle end_pos; | |
600 | SexyUrlLabelLink *link; | |
601 | ||
602 | pango_attr_iterator_range(iter, &start, &end); | |
603 | pango_layout_index_to_pos(layout, start, &start_pos); | |
604 | pango_layout_index_to_pos(layout, end, &end_pos); | |
605 | ||
606 | link = g_new0(SexyUrlLabelLink, 1); | |
607 | link->start = start; | |
608 | link->end = end; | |
609 | link->url = (const gchar *)url_list->data; | |
610 | priv->links = g_list_append(priv->links, link); | |
611 | ||
612 | url_list = url_list->next; | |
613 | } | |
614 | ||
615 | } while (pango_attr_iterator_next(iter)); | |
616 | ||
617 | pango_attr_iterator_destroy (iter); | |
618 | } | |
619 | ||
620 | static void | |
621 | start_element_handler(GMarkupParseContext *context, | |
622 | const gchar *element_name, | |
623 | const gchar **attribute_names, | |
624 | const gchar **attribute_values, | |
625 | gpointer user_data, | |
626 | GError **error) | |
627 | { | |
628 | SexyUrlLabel *url_label = SEXY_URL_LABEL(user_data); | |
629 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
630 | ||
631 | if (!strcmp(element_name, "a")) | |
632 | { | |
633 | const gchar *url = NULL; | |
634 | int line_number; | |
635 | int char_number; | |
636 | int i; | |
637 | ||
638 | g_markup_parse_context_get_position(context, &line_number, | |
639 | &char_number); | |
640 | ||
641 | for (i = 0; attribute_names[i] != NULL; i++) | |
642 | { | |
643 | const gchar *attr = attribute_names[i]; | |
644 | ||
645 | if (!strcmp(attr, "href")) | |
646 | { | |
647 | if (url != NULL) | |
648 | { | |
649 | g_set_error(error, G_MARKUP_ERROR, | |
650 | G_MARKUP_ERROR_INVALID_CONTENT, | |
651 | "Attribute '%s' occurs twice on <a> tag " | |
652 | "on line %d char %d, may only occur once", | |
653 | attribute_names[i], line_number, char_number); | |
654 | return; | |
655 | } | |
656 | ||
657 | url = attribute_values[i]; | |
658 | } | |
659 | else | |
660 | { | |
661 | g_set_error(error, G_MARKUP_ERROR, | |
662 | G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, | |
663 | "Attribute '%s' is not allowed on the <a> tag " | |
664 | "on line %d char %d", | |
665 | attribute_names[i], line_number, char_number); | |
666 | return; | |
667 | } | |
668 | } | |
669 | ||
670 | if (url == NULL) | |
671 | { | |
672 | g_set_error(error, G_MARKUP_ERROR, | |
673 | G_MARKUP_ERROR_INVALID_CONTENT, | |
674 | "Attribute 'href' was missing on the <a> tag " | |
675 | "on line %d char %d", | |
676 | line_number, char_number); | |
677 | return; | |
678 | } | |
679 | ||
680 | g_string_append(priv->temp_markup_result, | |
681 | "<span color=\"blue\" underline=\"single\">"); | |
682 | ||
683 | priv->urls = g_list_append(priv->urls, g_strdup(url)); | |
684 | } | |
685 | else | |
686 | { | |
687 | int i; | |
688 | ||
689 | g_string_append_printf(priv->temp_markup_result, | |
690 | "<%s", element_name); | |
691 | ||
692 | for (i = 0; attribute_names[i] != NULL; i++) | |
693 | { | |
694 | const gchar *attr = attribute_names[i]; | |
695 | const gchar *value = attribute_values[i]; | |
696 | ||
697 | g_string_append_printf(priv->temp_markup_result, | |
698 | " %s=\"%s\"", | |
699 | attr, value); | |
700 | } | |
701 | ||
702 | g_string_append_c(priv->temp_markup_result, '>'); | |
703 | } | |
704 | } | |
705 | ||
706 | static void | |
707 | end_element_handler(GMarkupParseContext *context, | |
708 | const gchar *element_name, | |
709 | gpointer user_data, | |
710 | GError **error) | |
711 | { | |
712 | SexyUrlLabel *url_label = SEXY_URL_LABEL(user_data); | |
713 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
714 | ||
715 | if (!strcmp(element_name, "a")) | |
716 | { | |
717 | g_string_append(priv->temp_markup_result, "</span>"); | |
718 | } | |
719 | else | |
720 | { | |
721 | g_string_append_printf(priv->temp_markup_result, | |
722 | "</%s>", element_name); | |
723 | } | |
724 | } | |
725 | ||
726 | static void | |
727 | text_handler(GMarkupParseContext *context, | |
728 | const gchar *text, | |
729 | gsize text_len, | |
730 | gpointer user_data, | |
731 | GError **error) | |
732 | { | |
733 | SexyUrlLabel *url_label = SEXY_URL_LABEL(user_data); | |
734 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
735 | ||
736 | gchar *newtext = g_markup_escape_text(text, text_len); | |
737 | g_string_append_len(priv->temp_markup_result, newtext, strlen (newtext)); | |
738 | g_free (newtext); | |
739 | } | |
740 | ||
741 | static const GMarkupParser markup_parser = | |
742 | { | |
743 | start_element_handler, | |
744 | end_element_handler, | |
745 | text_handler, | |
746 | NULL, | |
747 | NULL | |
748 | }; | |
749 | ||
750 | static gboolean | |
751 | xml_isspace(char c) | |
752 | { | |
753 | return (c == ' ' || c == '\t' || c == '\n' || c == '\r'); | |
754 | } | |
755 | ||
756 | static gboolean | |
757 | parse_custom_markup(SexyUrlLabel *url_label, const gchar *markup, | |
758 | gchar **ret_markup) | |
759 | { | |
760 | GMarkupParseContext *context = NULL; | |
761 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
762 | GError *error = NULL; | |
763 | const gchar *p, *end; | |
764 | gboolean needs_root = TRUE; | |
765 | gsize length; | |
766 | ||
767 | g_return_val_if_fail(markup != NULL, FALSE); | |
768 | g_return_val_if_fail(ret_markup != NULL, FALSE); | |
769 | ||
770 | priv->temp_markup_result = g_string_new(NULL); | |
771 | ||
772 | length = strlen(markup); | |
773 | p = markup; | |
774 | end = markup + length; | |
775 | ||
776 | while (p != end && xml_isspace(*p)) | |
777 | p++; | |
778 | ||
779 | if (end - p >= 8 && strncmp(p, "<markup>", 8) == 0) | |
780 | needs_root = FALSE; | |
781 | ||
782 | context = g_markup_parse_context_new(&markup_parser, 0, url_label, NULL); | |
783 | ||
784 | if (needs_root) | |
785 | { | |
786 | if (!g_markup_parse_context_parse(context, "<markup>", -1, &error)) | |
787 | goto failed; | |
788 | } | |
789 | ||
790 | if (!g_markup_parse_context_parse(context, markup, strlen(markup), &error)) | |
791 | goto failed; | |
792 | ||
793 | if (needs_root) | |
794 | { | |
795 | if (!g_markup_parse_context_parse(context, "</markup>", -1, &error)) | |
796 | goto failed; | |
797 | } | |
798 | ||
799 | if (!g_markup_parse_context_end_parse(context, &error)) | |
800 | goto failed; | |
801 | ||
802 | if (error != NULL) | |
803 | g_error_free(error); | |
804 | ||
805 | g_markup_parse_context_free(context); | |
806 | ||
807 | *ret_markup = g_string_free(priv->temp_markup_result, FALSE); | |
808 | priv->temp_markup_result = NULL; | |
809 | ||
810 | return TRUE; | |
811 | ||
812 | failed: | |
813 | fprintf(stderr, "Unable to parse markup: %s\n", error->message); | |
814 | g_error_free(error); | |
815 | ||
816 | g_string_free(priv->temp_markup_result, TRUE); | |
817 | priv->temp_markup_result = NULL; | |
818 | ||
819 | g_markup_parse_context_free(context); | |
820 | return FALSE; | |
821 | } | |
822 | ||
823 | /** | |
824 | * sexy_url_label_set_markup | |
825 | * @url_label: A #SexyUrlLabel. | |
826 | * @markup: a markup string (see <link linkend="PangoMarkupFormat">Pango markup format</link>) | |
827 | * | |
828 | * Parses @markup which is marked up with the <link | |
829 | * linkend="PangoMarkupFormat">Pango text markup language</link> as well as | |
830 | * HTML-style hyperlinks, setting the label's text and attribute list based | |
831 | * on the parse results. If the @markup is external data, you may need to | |
832 | * escape it with g_markup_escape_text() or g_markup_printf_escaped() | |
833 | */ | |
834 | void | |
835 | sexy_url_label_set_markup(SexyUrlLabel *url_label, const gchar *markup) | |
836 | { | |
837 | SexyUrlLabelPrivate *priv; | |
838 | gchar *new_markup; | |
839 | ||
840 | g_return_if_fail(SEXY_IS_URL_LABEL(url_label)); | |
841 | ||
842 | priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
843 | ||
844 | sexy_url_label_clear_links(url_label); | |
845 | sexy_url_label_clear_urls(url_label); | |
846 | ||
847 | if (markup == NULL || *markup == '\0') | |
848 | { | |
849 | gtk_label_set_markup(GTK_LABEL(url_label), ""); | |
850 | return; | |
851 | } | |
852 | ||
853 | if (parse_custom_markup(url_label, markup, &new_markup)) | |
854 | { | |
855 | gtk_label_set_markup(GTK_LABEL(url_label), new_markup); | |
856 | g_free(new_markup); | |
857 | } | |
858 | else | |
859 | { | |
860 | gtk_label_set_markup(GTK_LABEL(url_label), ""); | |
861 | } | |
862 | ||
863 | sexy_url_label_rescan_label(url_label); | |
864 | ||
865 | update_wrap_width(url_label, priv->wrap_width); | |
866 | } | |
867 | ||
868 | // vim:ts=4 sw=4 |
0 | /* | |
1 | * @file libsexy/sexy-url-label.h URL Label | |
2 | * | |
3 | * @Copyright (C) 2005-2006 Christian Hammond | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2.1 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library 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 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this library; if not, write to the | |
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 | * Boston, MA 02111-1307, USA. | |
19 | */ | |
20 | #ifndef _SEXY_URL_LABEL_H_ | |
21 | #define _SEXY_URL_LABEL_H_ | |
22 | ||
23 | typedef struct _SexyUrlLabel SexyUrlLabel; | |
24 | typedef struct _SexyUrlLabelClass SexyUrlLabelClass; | |
25 | ||
26 | #include <gtk/gtklabel.h> | |
27 | ||
28 | #define SEXY_TYPE_URL_LABEL (sexy_url_label_get_type()) | |
29 | #define SEXY_URL_LABEL(obj) \ | |
30 | (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_URL_LABEL, SexyUrlLabel)) | |
31 | #define SEXY_URL_LABEL_CLASS(klass) \ | |
32 | (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_URL_LABEL, SexyUrlLabelClass)) | |
33 | #define SEXY_IS_URL_LABEL(obj) \ | |
34 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_URL_LABEL)) | |
35 | #define SEXY_IS_URL_LABEL_CLASS(klass) \ | |
36 | (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_URL_LABEL)) | |
37 | #define SEXY_URL_LABEL_GET_CLASS(obj) \ | |
38 | (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_URL_LABEL, SexyUrlLabelClass)) | |
39 | ||
40 | struct _SexyUrlLabel | |
41 | { | |
42 | GtkLabel parent_object; | |
43 | ||
44 | void (*gtk_reserved1)(void); | |
45 | void (*gtk_reserved2)(void); | |
46 | void (*gtk_reserved3)(void); | |
47 | void (*gtk_reserved4)(void); | |
48 | }; | |
49 | ||
50 | struct _SexyUrlLabelClass | |
51 | { | |
52 | GtkLabelClass parent_class; | |
53 | ||
54 | /* Signals */ | |
55 | void (*url_activated)(SexyUrlLabel *url_label, const gchar *url); | |
56 | ||
57 | void (*gtk_reserved1)(void); | |
58 | void (*gtk_reserved2)(void); | |
59 | void (*gtk_reserved3)(void); | |
60 | void (*gtk_reserved4)(void); | |
61 | }; | |
62 | ||
63 | G_BEGIN_DECLS | |
64 | ||
65 | GType sexy_url_label_get_type(void); | |
66 | ||
67 | GtkWidget *sexy_url_label_new(void); | |
68 | void sexy_url_label_set_markup(SexyUrlLabel *url_label, const gchar *markup); | |
69 | ||
70 | G_END_DECLS | |
71 | ||
72 | #endif /* _SEXY_URL_LABEL_H_ */ |
0 | 0 | |
1 | 1 | bin_PROGRAMS = polkit-gnome-authorization |
2 | 2 | |
3 | polkit_gnome_authorization_SOURCES = \ | |
4 | polkit-gnome-authorization.c | |
3 | polkit_gnome_authorization_SOURCES = \ | |
4 | polkit-gnome-authorization.c \ | |
5 | sexy-url-label.h sexy-url-label.c | |
5 | 6 | |
6 | 7 | polkit_gnome_authorization_CPPFLAGS = \ |
7 | 8 | -I$(top_srcdir) \ |
13 | 14 | |
14 | 15 | polkit_gnome_authorization_CFLAGS = \ |
15 | 16 | $(GTK_CFLAGS) \ |
16 | $(SEXY_CFLAGS) \ | |
17 | $(GNOME_VFS_CFLAGS) \ | |
17 | $(GCONF_CFLAGS) \ | |
18 | 18 | $(DBUS_GLIB_CFLAGS) \ |
19 | 19 | $(POLKIT_DBUS_CFLAGS) \ |
20 | 20 | $(POLKIT_GRANT_CFLAGS) \ |
26 | 26 | |
27 | 27 | polkit_gnome_authorization_LDADD = \ |
28 | 28 | $(GTK_LIBS) \ |
29 | $(SEXY_LIBS) \ | |
30 | $(GNOME_VFS_LIBS) \ | |
29 | $(GCONF_LIBS) \ | |
31 | 30 | $(DBUS_GLIB_LIBS) \ |
32 | 31 | $(POLKIT_DBUS_LIBS) \ |
33 | 32 | $(POLKIT_GRANT_LIBS) \ |
44 | 44 | am__installdirs = "$(DESTDIR)$(bindir)" |
45 | 45 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) |
46 | 46 | PROGRAMS = $(bin_PROGRAMS) |
47 | am_polkit_gnome_authorization_OBJECTS = polkit_gnome_authorization-polkit-gnome-authorization.$(OBJEXT) | |
47 | am_polkit_gnome_authorization_OBJECTS = polkit_gnome_authorization-polkit-gnome-authorization.$(OBJEXT) \ | |
48 | polkit_gnome_authorization-sexy-url-label.$(OBJEXT) | |
48 | 49 | polkit_gnome_authorization_OBJECTS = \ |
49 | 50 | $(am_polkit_gnome_authorization_OBJECTS) |
50 | 51 | am__DEPENDENCIES_1 = |
51 | 52 | polkit_gnome_authorization_DEPENDENCIES = $(am__DEPENDENCIES_1) \ |
52 | 53 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
53 | 54 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
54 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ | |
55 | $(am__DEPENDENCIES_1) \ | |
55 | 56 | $(top_builddir)/polkit-gnome/libpolkit-gnome.la |
56 | 57 | polkit_gnome_authorization_LINK = $(LIBTOOL) --tag=CC \ |
57 | 58 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
117 | 118 | F77 = @F77@ |
118 | 119 | FFLAGS = @FFLAGS@ |
119 | 120 | GCONFTOOL = @GCONFTOOL@ |
121 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
122 | GCONF_LIBS = @GCONF_LIBS@ | |
120 | 123 | GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
121 | 124 | GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
122 | 125 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
123 | 126 | GMOFILES = @GMOFILES@ |
124 | 127 | GMSGFMT = @GMSGFMT@ |
125 | GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@ | |
126 | GNOME_VFS_LIBS = @GNOME_VFS_LIBS@ | |
127 | 128 | GREP = @GREP@ |
128 | 129 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
129 | 130 | GTK_CFLAGS = @GTK_CFLAGS@ |
199 | 200 | RANLIB = @RANLIB@ |
200 | 201 | SED = @SED@ |
201 | 202 | SET_MAKE = @SET_MAKE@ |
202 | SEXY_CFLAGS = @SEXY_CFLAGS@ | |
203 | SEXY_LIBS = @SEXY_LIBS@ | |
204 | 203 | SHELL = @SHELL@ |
205 | 204 | STRIP = @STRIP@ |
206 | 205 | USE_NLS = @USE_NLS@ |
260 | 259 | top_builddir = @top_builddir@ |
261 | 260 | top_srcdir = @top_srcdir@ |
262 | 261 | polkit_gnome_authorization_SOURCES = \ |
263 | polkit-gnome-authorization.c | |
262 | polkit-gnome-authorization.c \ | |
263 | sexy-url-label.h sexy-url-label.c | |
264 | 264 | |
265 | 265 | polkit_gnome_authorization_CPPFLAGS = \ |
266 | 266 | -I$(top_srcdir) \ |
272 | 272 | |
273 | 273 | polkit_gnome_authorization_CFLAGS = \ |
274 | 274 | $(GTK_CFLAGS) \ |
275 | $(SEXY_CFLAGS) \ | |
276 | $(GNOME_VFS_CFLAGS) \ | |
275 | $(GCONF_CFLAGS) \ | |
277 | 276 | $(DBUS_GLIB_CFLAGS) \ |
278 | 277 | $(POLKIT_DBUS_CFLAGS) \ |
279 | 278 | $(POLKIT_GRANT_CFLAGS) \ |
285 | 284 | |
286 | 285 | polkit_gnome_authorization_LDADD = \ |
287 | 286 | $(GTK_LIBS) \ |
288 | $(SEXY_LIBS) \ | |
289 | $(GNOME_VFS_LIBS) \ | |
287 | $(GCONF_LIBS) \ | |
290 | 288 | $(DBUS_GLIB_LIBS) \ |
291 | 289 | $(POLKIT_DBUS_LIBS) \ |
292 | 290 | $(POLKIT_GRANT_LIBS) \ |
371 | 369 | -rm -f *.tab.c |
372 | 370 | |
373 | 371 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authorization-polkit-gnome-authorization.Po@am__quote@ |
372 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Po@am__quote@ | |
374 | 373 | |
375 | 374 | .c.o: |
376 | 375 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
406 | 405 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkit-gnome-authorization.c' object='polkit_gnome_authorization-polkit-gnome-authorization.obj' libtool=no @AMDEPBACKSLASH@ |
407 | 406 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
408 | 407 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authorization_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authorization_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authorization-polkit-gnome-authorization.obj `if test -f 'polkit-gnome-authorization.c'; then $(CYGPATH_W) 'polkit-gnome-authorization.c'; else $(CYGPATH_W) '$(srcdir)/polkit-gnome-authorization.c'; fi` |
408 | ||
409 | polkit_gnome_authorization-sexy-url-label.o: sexy-url-label.c | |
410 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authorization_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authorization_CFLAGS) $(CFLAGS) -MT polkit_gnome_authorization-sexy-url-label.o -MD -MP -MF $(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Tpo -c -o polkit_gnome_authorization-sexy-url-label.o `test -f 'sexy-url-label.c' || echo '$(srcdir)/'`sexy-url-label.c | |
411 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Tpo $(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Po | |
412 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sexy-url-label.c' object='polkit_gnome_authorization-sexy-url-label.o' libtool=no @AMDEPBACKSLASH@ | |
413 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
414 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authorization_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authorization_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authorization-sexy-url-label.o `test -f 'sexy-url-label.c' || echo '$(srcdir)/'`sexy-url-label.c | |
415 | ||
416 | polkit_gnome_authorization-sexy-url-label.obj: sexy-url-label.c | |
417 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authorization_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authorization_CFLAGS) $(CFLAGS) -MT polkit_gnome_authorization-sexy-url-label.obj -MD -MP -MF $(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Tpo -c -o polkit_gnome_authorization-sexy-url-label.obj `if test -f 'sexy-url-label.c'; then $(CYGPATH_W) 'sexy-url-label.c'; else $(CYGPATH_W) '$(srcdir)/sexy-url-label.c'; fi` | |
418 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Tpo $(DEPDIR)/polkit_gnome_authorization-sexy-url-label.Po | |
419 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sexy-url-label.c' object='polkit_gnome_authorization-sexy-url-label.obj' libtool=no @AMDEPBACKSLASH@ | |
420 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
421 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authorization_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authorization_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authorization-sexy-url-label.obj `if test -f 'sexy-url-label.c'; then $(CYGPATH_W) 'sexy-url-label.c'; else $(CYGPATH_W) '$(srcdir)/sexy-url-label.c'; fi` | |
409 | 422 | |
410 | 423 | mostlyclean-libtool: |
411 | 424 | -rm -f *.lo |
35 | 35 | #include <dbus/dbus-glib.h> |
36 | 36 | #include <dbus/dbus-glib-lowlevel.h> |
37 | 37 | #include <polkit-gnome/polkit-gnome.h> |
38 | #include <libsexy/sexy.h> | |
39 | #include <libgnomevfs/gnome-vfs-utils.h> | |
38 | ||
39 | #include "sexy-url-label.h" | |
40 | 40 | |
41 | 41 | static GType boxed_pfe_type; |
42 | 42 | |
1326 | 1326 | summary_action_vendor_url_activated (SexyUrlLabel *url_label, char *url, gpointer user_data) |
1327 | 1327 | { |
1328 | 1328 | if (url != NULL) { |
1329 | gnome_vfs_url_show (url); | |
1329 | gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL); | |
1330 | 1330 | } |
1331 | 1331 | } |
1332 | 1332 | |
2378 | 2378 | NULL); |
2379 | 2379 | |
2380 | 2380 | namespace_pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), |
2381 | "gnome-mime-application-x-archive", | |
2381 | "package-x-generic", | |
2382 | 2382 | 24, |
2383 | 2383 | 0, |
2384 | 2384 | NULL); |
0 | /* | |
1 | * @file libsexy/sexy-url-label.c URL Label | |
2 | * | |
3 | * @Copyright (C) 2005-2006 Christian Hammond | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2.1 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library 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 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this library; if not, write to the | |
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 | * Boston, MA 02111-1307, USA. | |
19 | */ | |
20 | #include <gtk/gtk.h> | |
21 | #include <string.h> | |
22 | #include <stdio.h> | |
23 | ||
24 | #include "sexy-url-label.h" | |
25 | ||
26 | #define SEXY_URL_LABEL_GET_PRIVATE(obj) \ | |
27 | (G_TYPE_INSTANCE_GET_PRIVATE((obj), SEXY_TYPE_URL_LABEL, \ | |
28 | SexyUrlLabelPrivate)) | |
29 | ||
30 | typedef struct | |
31 | { | |
32 | int start; | |
33 | int end; | |
34 | const gchar *url; | |
35 | ||
36 | } SexyUrlLabelLink; | |
37 | ||
38 | typedef struct | |
39 | { | |
40 | GList *links; | |
41 | GList *urls; | |
42 | SexyUrlLabelLink *active_link; | |
43 | GtkWidget *popup_menu; | |
44 | GdkWindow *event_window; | |
45 | ||
46 | int layout_x; | |
47 | int layout_y; | |
48 | ||
49 | size_t wrap_width; | |
50 | ||
51 | GString *temp_markup_result; | |
52 | ||
53 | } SexyUrlLabelPrivate; | |
54 | ||
55 | /* | |
56 | * NOTE: This *MUST* match the LabelWrapWidth struct in gtklabel.c. | |
57 | */ | |
58 | typedef struct | |
59 | { | |
60 | gint width; | |
61 | PangoFontDescription *font_desc; | |
62 | ||
63 | } LabelWrapWidth; | |
64 | ||
65 | enum | |
66 | { | |
67 | URL_ACTIVATED, | |
68 | LAST_SIGNAL | |
69 | }; | |
70 | ||
71 | static void sexy_url_label_finalize(GObject *obj); | |
72 | static void sexy_url_label_realize(GtkWidget *widget); | |
73 | static void sexy_url_label_unrealize(GtkWidget *widget); | |
74 | static void sexy_url_label_map(GtkWidget *widget); | |
75 | static void sexy_url_label_unmap(GtkWidget *widget); | |
76 | static void sexy_url_label_size_allocate(GtkWidget *widget, | |
77 | GtkAllocation *allocation); | |
78 | static gboolean sexy_url_label_motion_notify_event(GtkWidget *widget, | |
79 | GdkEventMotion *event); | |
80 | static gboolean sexy_url_label_leave_notify_event(GtkWidget *widget, | |
81 | GdkEventCrossing *event); | |
82 | static gboolean sexy_url_label_button_press_event(GtkWidget *widget, | |
83 | GdkEventButton *event); | |
84 | ||
85 | static void open_link_activate_cb(GtkMenuItem *menu_item, | |
86 | SexyUrlLabel *url_label); | |
87 | static void copy_link_activate_cb(GtkMenuItem *menu_item, | |
88 | SexyUrlLabel *url_label); | |
89 | ||
90 | static void sexy_url_label_clear_links(SexyUrlLabel *url_label); | |
91 | static void sexy_url_label_clear_urls(SexyUrlLabel *url_label); | |
92 | static void sexy_url_label_rescan_label(SexyUrlLabel *url_label); | |
93 | ||
94 | static GtkLabelClass *parent_class = NULL; | |
95 | static guint signals[LAST_SIGNAL] = {0}; | |
96 | ||
97 | G_DEFINE_TYPE(SexyUrlLabel, sexy_url_label, GTK_TYPE_LABEL); | |
98 | ||
99 | static void | |
100 | sexy_url_label_class_init(SexyUrlLabelClass *klass) | |
101 | { | |
102 | GObjectClass *object_class = G_OBJECT_CLASS(klass); | |
103 | GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); | |
104 | ||
105 | parent_class = g_type_class_peek_parent(klass); | |
106 | ||
107 | object_class->finalize = sexy_url_label_finalize; | |
108 | ||
109 | widget_class->realize = sexy_url_label_realize; | |
110 | widget_class->unrealize = sexy_url_label_unrealize; | |
111 | widget_class->map = sexy_url_label_map; | |
112 | widget_class->unmap = sexy_url_label_unmap; | |
113 | widget_class->size_allocate = sexy_url_label_size_allocate; | |
114 | widget_class->motion_notify_event = sexy_url_label_motion_notify_event; | |
115 | widget_class->leave_notify_event = sexy_url_label_leave_notify_event; | |
116 | widget_class->button_press_event = sexy_url_label_button_press_event; | |
117 | ||
118 | g_type_class_add_private(klass, sizeof(SexyUrlLabelPrivate)); | |
119 | ||
120 | /** | |
121 | * SexyUrlLabel::url-activated: | |
122 | * @url_label: The label on which the signal was emitted. | |
123 | * @url: The URL which was activated. | |
124 | * | |
125 | * The ::url-activated signal is emitted when a URL in the label was | |
126 | * clicked. | |
127 | */ | |
128 | signals[URL_ACTIVATED] = | |
129 | g_signal_new("url_activated", | |
130 | G_TYPE_FROM_CLASS(object_class), | |
131 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
132 | G_STRUCT_OFFSET(SexyUrlLabelClass, url_activated), | |
133 | NULL, NULL, | |
134 | g_cclosure_marshal_VOID__STRING, | |
135 | G_TYPE_NONE, 1, | |
136 | G_TYPE_STRING); | |
137 | } | |
138 | ||
139 | static void | |
140 | selectable_changed_cb(SexyUrlLabel *url_label) | |
141 | { | |
142 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
143 | ||
144 | if (priv->event_window != NULL) | |
145 | { | |
146 | GdkCursor *cursor = NULL; | |
147 | ||
148 | if (gtk_label_get_selectable(GTK_LABEL(url_label)) && | |
149 | priv->active_link == NULL) | |
150 | cursor = gdk_cursor_new_for_display( | |
151 | gtk_widget_get_display(GTK_WIDGET(url_label)), GDK_XTERM); | |
152 | gdk_window_set_cursor(priv->event_window, cursor); | |
153 | ||
154 | if (cursor) | |
155 | gdk_cursor_unref(cursor); | |
156 | ||
157 | /* | |
158 | * GtkLabel recreates its event window when the selectable property | |
159 | * changes, which will cover ours. | |
160 | */ | |
161 | gdk_window_raise(priv->event_window); | |
162 | } | |
163 | } | |
164 | ||
165 | static void | |
166 | sexy_url_label_init(SexyUrlLabel *url_label) | |
167 | { | |
168 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
169 | GtkWidget *item; | |
170 | GtkWidget *image; | |
171 | ||
172 | priv->links = NULL; | |
173 | priv->active_link = NULL; | |
174 | priv->event_window = NULL; | |
175 | ||
176 | g_signal_connect(G_OBJECT(url_label), "notify::selectable", | |
177 | G_CALLBACK(selectable_changed_cb), NULL); | |
178 | ||
179 | priv->popup_menu = gtk_menu_new(); | |
180 | ||
181 | /* Open Link */ | |
182 | item = gtk_image_menu_item_new_with_mnemonic("_Open Link"); | |
183 | gtk_widget_show(item); | |
184 | gtk_menu_shell_append(GTK_MENU_SHELL(priv->popup_menu), item); | |
185 | ||
186 | g_signal_connect(G_OBJECT(item), "activate", | |
187 | G_CALLBACK(open_link_activate_cb), url_label); | |
188 | ||
189 | image = gtk_image_new_from_stock(GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_MENU); | |
190 | gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image); | |
191 | gtk_widget_show(image); | |
192 | ||
193 | /* Copy Link Address */ | |
194 | item = gtk_image_menu_item_new_with_mnemonic("Copy _Link Address"); | |
195 | gtk_widget_show(item); | |
196 | gtk_menu_shell_append(GTK_MENU_SHELL(priv->popup_menu), item); | |
197 | ||
198 | g_signal_connect(G_OBJECT(item), "activate", | |
199 | G_CALLBACK(copy_link_activate_cb), url_label); | |
200 | ||
201 | image = gtk_image_new_from_stock(GTK_STOCK_COPY, GTK_ICON_SIZE_MENU); | |
202 | gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image); | |
203 | gtk_widget_show(image); | |
204 | } | |
205 | ||
206 | static void | |
207 | sexy_url_label_finalize(GObject *obj) | |
208 | { | |
209 | SexyUrlLabel *url_label = SEXY_URL_LABEL(obj); | |
210 | ||
211 | sexy_url_label_clear_links(url_label); | |
212 | sexy_url_label_clear_urls(url_label); | |
213 | ||
214 | if (G_OBJECT_CLASS(parent_class)->finalize != NULL) | |
215 | G_OBJECT_CLASS(parent_class)->finalize(obj); | |
216 | } | |
217 | ||
218 | static gboolean | |
219 | sexy_url_label_motion_notify_event(GtkWidget *widget, GdkEventMotion *event) | |
220 | { | |
221 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
222 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
223 | PangoLayout *layout = gtk_label_get_layout(GTK_LABEL(url_label)); | |
224 | GdkModifierType state; | |
225 | gboolean found = FALSE; | |
226 | GList *l; | |
227 | int index, trailing; | |
228 | int x, y; | |
229 | SexyUrlLabelLink *link = NULL; | |
230 | ||
231 | if (event->is_hint) | |
232 | gdk_window_get_pointer(event->window, &x, &y, &state); | |
233 | else | |
234 | { | |
235 | x = event->x; | |
236 | y = event->y; | |
237 | state = event->state; | |
238 | } | |
239 | ||
240 | if (pango_layout_xy_to_index(layout, | |
241 | (x - priv->layout_x) * PANGO_SCALE, | |
242 | (y - priv->layout_y) * PANGO_SCALE, | |
243 | &index, &trailing)) | |
244 | { | |
245 | for (l = priv->links; l != NULL; l = l->next) | |
246 | { | |
247 | link = (SexyUrlLabelLink *)l->data; | |
248 | ||
249 | if (index >= link->start && index <= link->end) | |
250 | { | |
251 | found = TRUE; | |
252 | break; | |
253 | } | |
254 | } | |
255 | } | |
256 | ||
257 | if (found) | |
258 | { | |
259 | if (priv->active_link == NULL) | |
260 | { | |
261 | GdkCursor *cursor; | |
262 | ||
263 | cursor = gdk_cursor_new_for_display( | |
264 | gtk_widget_get_display(widget), GDK_HAND2); | |
265 | gdk_window_set_cursor(priv->event_window, cursor); | |
266 | gdk_cursor_unref(cursor); | |
267 | ||
268 | priv->active_link = link; | |
269 | } | |
270 | } | |
271 | else | |
272 | { | |
273 | if (priv->active_link != NULL) | |
274 | { | |
275 | if (gtk_label_get_selectable(GTK_LABEL(url_label))) | |
276 | { | |
277 | GdkCursor *cursor; | |
278 | ||
279 | cursor = gdk_cursor_new_for_display( | |
280 | gtk_widget_get_display(widget), GDK_XTERM); | |
281 | gdk_window_set_cursor(priv->event_window, cursor); | |
282 | gdk_cursor_unref(cursor); | |
283 | } | |
284 | else | |
285 | gdk_window_set_cursor(priv->event_window, NULL); | |
286 | ||
287 | priv->active_link = NULL; | |
288 | } | |
289 | } | |
290 | ||
291 | /* | |
292 | * Another beautiful libsexy hack. This one prevents the callback | |
293 | * from going "Oh boy, they clicked and dragged! Let's select more of | |
294 | * the text!" | |
295 | */ | |
296 | if (priv->active_link != NULL) | |
297 | event->state = 0; | |
298 | ||
299 | GTK_WIDGET_CLASS(parent_class)->motion_notify_event(widget, event); | |
300 | ||
301 | return FALSE; | |
302 | } | |
303 | ||
304 | static gboolean | |
305 | sexy_url_label_leave_notify_event(GtkWidget *widget, GdkEventCrossing *event) | |
306 | { | |
307 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
308 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
309 | ||
310 | if (GTK_WIDGET_CLASS(parent_class)->leave_notify_event != NULL) | |
311 | GTK_WIDGET_CLASS(parent_class)->leave_notify_event(widget, event); | |
312 | ||
313 | if (event->mode == GDK_CROSSING_NORMAL) | |
314 | { | |
315 | GdkCursor *cursor = NULL; | |
316 | if (gtk_label_get_selectable(GTK_LABEL(widget))) | |
317 | cursor = gdk_cursor_new_for_display( | |
318 | gtk_widget_get_display(widget), GDK_XTERM); | |
319 | gdk_window_set_cursor(priv->event_window, cursor); | |
320 | if (cursor) | |
321 | gdk_cursor_unref(cursor); | |
322 | priv->active_link = NULL; | |
323 | } | |
324 | ||
325 | return FALSE; | |
326 | } | |
327 | ||
328 | static gboolean | |
329 | sexy_url_label_button_press_event(GtkWidget *widget, GdkEventButton *event) | |
330 | { | |
331 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
332 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
333 | ||
334 | if (priv->active_link == NULL) | |
335 | { | |
336 | return GTK_WIDGET_CLASS(parent_class)->button_press_event(widget, | |
337 | event); | |
338 | } | |
339 | ||
340 | if (event->button == 1) | |
341 | { | |
342 | g_signal_emit(url_label, signals[URL_ACTIVATED], 0, | |
343 | priv->active_link->url); | |
344 | } | |
345 | else if (event->button == 3) | |
346 | { | |
347 | gtk_menu_popup(GTK_MENU(priv->popup_menu), NULL, NULL, NULL, NULL, | |
348 | event->button, event->time); | |
349 | } | |
350 | ||
351 | return TRUE; | |
352 | } | |
353 | ||
354 | static void | |
355 | update_wrap_width(SexyUrlLabel *url_label, size_t wrap_width) | |
356 | { | |
357 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
358 | LabelWrapWidth *wrap_width_data; | |
359 | GtkStyle *style; | |
360 | ||
361 | if (wrap_width == 0 || !gtk_label_get_line_wrap(GTK_LABEL(url_label))) | |
362 | return; | |
363 | ||
364 | #if 0 | |
365 | pango_layout_set_width(gtk_label_get_layout(GTK_LABEL(url_label)), | |
366 | wrap_width * PANGO_SCALE); | |
367 | #endif | |
368 | style = GTK_WIDGET(url_label)->style; | |
369 | wrap_width_data = g_object_get_data(G_OBJECT(style), | |
370 | "gtk-label-wrap-width"); | |
371 | ||
372 | if (wrap_width_data != NULL && | |
373 | wrap_width_data->width != wrap_width * PANGO_SCALE) | |
374 | { | |
375 | wrap_width_data->width = wrap_width * PANGO_SCALE; | |
376 | priv->wrap_width = wrap_width; | |
377 | g_object_unref(GTK_LABEL(url_label)->layout); | |
378 | GTK_LABEL(url_label)->layout = NULL; | |
379 | gtk_label_get_layout(GTK_LABEL(url_label)); | |
380 | gtk_widget_queue_resize(GTK_WIDGET(url_label)); | |
381 | } | |
382 | } | |
383 | ||
384 | static void | |
385 | sexy_url_label_realize(GtkWidget *widget) | |
386 | { | |
387 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
388 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
389 | GdkWindowAttr attributes; | |
390 | gint attributes_mask; | |
391 | ||
392 | GTK_WIDGET_CLASS(parent_class)->realize(widget); | |
393 | ||
394 | attributes.window_type = GDK_WINDOW_CHILD; | |
395 | attributes.x = widget->allocation.x; | |
396 | attributes.y = widget->allocation.y; | |
397 | attributes.width = widget->allocation.width; | |
398 | attributes.height = widget->allocation.height; | |
399 | attributes.window_type = GDK_WINDOW_CHILD; | |
400 | attributes.wclass = GDK_INPUT_ONLY; | |
401 | attributes.event_mask = gtk_widget_get_events(widget); | |
402 | attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | | |
403 | GDK_BUTTON_RELEASE_MASK | | |
404 | GDK_POINTER_MOTION_MASK | | |
405 | GDK_POINTER_MOTION_HINT_MASK | | |
406 | GDK_LEAVE_NOTIFY_MASK | | |
407 | GDK_LEAVE_NOTIFY_MASK); | |
408 | attributes_mask = GDK_WA_X | GDK_WA_Y; | |
409 | ||
410 | if (gtk_label_get_selectable(GTK_LABEL(widget))) { | |
411 | attributes.cursor = gdk_cursor_new_for_display( | |
412 | gtk_widget_get_display(widget), GDK_XTERM); | |
413 | attributes_mask |= GDK_WA_CURSOR; | |
414 | } | |
415 | ||
416 | priv->event_window = | |
417 | gdk_window_new(gtk_widget_get_parent_window(widget), &attributes, | |
418 | attributes_mask); | |
419 | gdk_window_set_user_data(priv->event_window, widget); | |
420 | ||
421 | if (attributes_mask & GDK_WA_CURSOR) | |
422 | gdk_cursor_unref (attributes.cursor); | |
423 | } | |
424 | ||
425 | static void | |
426 | sexy_url_label_unrealize(GtkWidget *widget) | |
427 | { | |
428 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
429 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
430 | ||
431 | if (priv->event_window != NULL) | |
432 | { | |
433 | gdk_window_set_user_data(priv->event_window, NULL); | |
434 | gdk_window_destroy(priv->event_window); | |
435 | priv->event_window = NULL; | |
436 | } | |
437 | ||
438 | GTK_WIDGET_CLASS(parent_class)->unrealize(widget); | |
439 | } | |
440 | ||
441 | static void | |
442 | sexy_url_label_map(GtkWidget *widget) | |
443 | { | |
444 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
445 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
446 | ||
447 | GTK_WIDGET_CLASS(parent_class)->map(widget); | |
448 | ||
449 | if (priv->event_window != NULL) | |
450 | gdk_window_show(priv->event_window); | |
451 | } | |
452 | ||
453 | static void | |
454 | sexy_url_label_unmap(GtkWidget *widget) | |
455 | { | |
456 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
457 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
458 | ||
459 | if (priv->event_window != NULL) | |
460 | gdk_window_hide(priv->event_window); | |
461 | ||
462 | GTK_WIDGET_CLASS(parent_class)->unmap(widget); | |
463 | } | |
464 | ||
465 | static void | |
466 | sexy_url_label_size_allocate(GtkWidget *widget, GtkAllocation *allocation) | |
467 | { | |
468 | SexyUrlLabel *url_label = (SexyUrlLabel *)widget; | |
469 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
470 | ||
471 | #if 0 | |
472 | { | |
473 | LabelWrapWidth *wrap_width_data; | |
474 | GtkStyle *style; | |
475 | style = GTK_WIDGET(url_label)->style; | |
476 | wrap_width_data = g_object_get_data(G_OBJECT(style), | |
477 | "gtk-label-wrap-width"); | |
478 | if (wrap_width_data != NULL) | |
479 | printf("wrap width = %d\n", wrap_width_data->width / PANGO_SCALE); | |
480 | } | |
481 | #endif | |
482 | update_wrap_width(url_label, allocation->width); | |
483 | GTK_WIDGET_CLASS(parent_class)->size_allocate(widget, allocation); | |
484 | pango_layout_set_width(gtk_label_get_layout(GTK_LABEL(url_label)), | |
485 | allocation->width * PANGO_SCALE); | |
486 | ||
487 | if (GTK_WIDGET_REALIZED(widget)) | |
488 | { | |
489 | gdk_window_move_resize(priv->event_window, | |
490 | allocation->x, allocation->y, | |
491 | allocation->width, allocation->height); | |
492 | } | |
493 | ||
494 | sexy_url_label_rescan_label(url_label); | |
495 | } | |
496 | ||
497 | static void | |
498 | open_link_activate_cb(GtkMenuItem *menu_item, SexyUrlLabel *url_label) | |
499 | { | |
500 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
501 | ||
502 | if (priv->active_link == NULL) | |
503 | return; | |
504 | ||
505 | g_signal_emit(url_label, signals[URL_ACTIVATED], 0, priv->active_link->url); | |
506 | } | |
507 | ||
508 | static void | |
509 | copy_link_activate_cb(GtkMenuItem *menu_item, SexyUrlLabel *url_label) | |
510 | { | |
511 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
512 | GtkClipboard *clipboard; | |
513 | ||
514 | if (priv->active_link == NULL) | |
515 | return; | |
516 | ||
517 | clipboard = gtk_widget_get_clipboard(GTK_WIDGET(url_label), | |
518 | GDK_SELECTION_PRIMARY); | |
519 | ||
520 | gtk_clipboard_set_text(clipboard, priv->active_link->url, | |
521 | strlen(priv->active_link->url)); | |
522 | } | |
523 | ||
524 | /** | |
525 | * sexy_url_label_new | |
526 | * | |
527 | * Creates a new SexyUrlLabel widget. | |
528 | * | |
529 | * Returns: a new #SexyUrlLabel. | |
530 | */ | |
531 | GtkWidget * | |
532 | sexy_url_label_new(void) | |
533 | { | |
534 | return g_object_new(SEXY_TYPE_URL_LABEL, NULL); | |
535 | } | |
536 | ||
537 | static void | |
538 | sexy_url_label_clear_links(SexyUrlLabel *url_label) | |
539 | { | |
540 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
541 | ||
542 | if (priv->links == NULL) | |
543 | return; | |
544 | ||
545 | g_list_foreach(priv->links, (GFunc)g_free, NULL); | |
546 | g_list_free(priv->links); | |
547 | priv->links = NULL; | |
548 | } | |
549 | ||
550 | static void | |
551 | sexy_url_label_clear_urls(SexyUrlLabel *url_label) | |
552 | { | |
553 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
554 | ||
555 | if (priv->urls == NULL) | |
556 | return; | |
557 | ||
558 | g_list_foreach(priv->urls, (GFunc)g_free, NULL); | |
559 | g_list_free(priv->urls); | |
560 | priv->urls = NULL; | |
561 | } | |
562 | ||
563 | static void | |
564 | sexy_url_label_rescan_label(SexyUrlLabel *url_label) | |
565 | { | |
566 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
567 | PangoLayout *layout = gtk_label_get_layout(GTK_LABEL(url_label)); | |
568 | PangoAttrList *list = pango_layout_get_attributes(layout); | |
569 | PangoAttrIterator *iter; | |
570 | GList *url_list; | |
571 | ||
572 | sexy_url_label_clear_links(url_label); | |
573 | ||
574 | if (list == NULL) | |
575 | return; | |
576 | ||
577 | iter = pango_attr_list_get_iterator(list); | |
578 | ||
579 | gtk_label_get_layout_offsets(GTK_LABEL(url_label), | |
580 | &priv->layout_x, &priv->layout_y); | |
581 | ||
582 | priv->layout_x -= GTK_WIDGET(url_label)->allocation.x; | |
583 | priv->layout_y -= GTK_WIDGET(url_label)->allocation.y; | |
584 | ||
585 | url_list = priv->urls; | |
586 | ||
587 | do | |
588 | { | |
589 | PangoAttribute *underline; | |
590 | PangoAttribute *color; | |
591 | ||
592 | underline = pango_attr_iterator_get(iter, PANGO_ATTR_UNDERLINE); | |
593 | color = pango_attr_iterator_get(iter, PANGO_ATTR_FOREGROUND); | |
594 | ||
595 | if (underline != NULL && color != NULL) | |
596 | { | |
597 | gint start, end; | |
598 | PangoRectangle start_pos; | |
599 | PangoRectangle end_pos; | |
600 | SexyUrlLabelLink *link; | |
601 | ||
602 | pango_attr_iterator_range(iter, &start, &end); | |
603 | pango_layout_index_to_pos(layout, start, &start_pos); | |
604 | pango_layout_index_to_pos(layout, end, &end_pos); | |
605 | ||
606 | link = g_new0(SexyUrlLabelLink, 1); | |
607 | link->start = start; | |
608 | link->end = end; | |
609 | link->url = (const gchar *)url_list->data; | |
610 | priv->links = g_list_append(priv->links, link); | |
611 | ||
612 | url_list = url_list->next; | |
613 | } | |
614 | ||
615 | } while (pango_attr_iterator_next(iter)); | |
616 | ||
617 | pango_attr_iterator_destroy (iter); | |
618 | } | |
619 | ||
620 | static void | |
621 | start_element_handler(GMarkupParseContext *context, | |
622 | const gchar *element_name, | |
623 | const gchar **attribute_names, | |
624 | const gchar **attribute_values, | |
625 | gpointer user_data, | |
626 | GError **error) | |
627 | { | |
628 | SexyUrlLabel *url_label = SEXY_URL_LABEL(user_data); | |
629 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
630 | ||
631 | if (!strcmp(element_name, "a")) | |
632 | { | |
633 | const gchar *url = NULL; | |
634 | int line_number; | |
635 | int char_number; | |
636 | int i; | |
637 | ||
638 | g_markup_parse_context_get_position(context, &line_number, | |
639 | &char_number); | |
640 | ||
641 | for (i = 0; attribute_names[i] != NULL; i++) | |
642 | { | |
643 | const gchar *attr = attribute_names[i]; | |
644 | ||
645 | if (!strcmp(attr, "href")) | |
646 | { | |
647 | if (url != NULL) | |
648 | { | |
649 | g_set_error(error, G_MARKUP_ERROR, | |
650 | G_MARKUP_ERROR_INVALID_CONTENT, | |
651 | "Attribute '%s' occurs twice on <a> tag " | |
652 | "on line %d char %d, may only occur once", | |
653 | attribute_names[i], line_number, char_number); | |
654 | return; | |
655 | } | |
656 | ||
657 | url = attribute_values[i]; | |
658 | } | |
659 | else | |
660 | { | |
661 | g_set_error(error, G_MARKUP_ERROR, | |
662 | G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, | |
663 | "Attribute '%s' is not allowed on the <a> tag " | |
664 | "on line %d char %d", | |
665 | attribute_names[i], line_number, char_number); | |
666 | return; | |
667 | } | |
668 | } | |
669 | ||
670 | if (url == NULL) | |
671 | { | |
672 | g_set_error(error, G_MARKUP_ERROR, | |
673 | G_MARKUP_ERROR_INVALID_CONTENT, | |
674 | "Attribute 'href' was missing on the <a> tag " | |
675 | "on line %d char %d", | |
676 | line_number, char_number); | |
677 | return; | |
678 | } | |
679 | ||
680 | g_string_append(priv->temp_markup_result, | |
681 | "<span color=\"blue\" underline=\"single\">"); | |
682 | ||
683 | priv->urls = g_list_append(priv->urls, g_strdup(url)); | |
684 | } | |
685 | else | |
686 | { | |
687 | int i; | |
688 | ||
689 | g_string_append_printf(priv->temp_markup_result, | |
690 | "<%s", element_name); | |
691 | ||
692 | for (i = 0; attribute_names[i] != NULL; i++) | |
693 | { | |
694 | const gchar *attr = attribute_names[i]; | |
695 | const gchar *value = attribute_values[i]; | |
696 | ||
697 | g_string_append_printf(priv->temp_markup_result, | |
698 | " %s=\"%s\"", | |
699 | attr, value); | |
700 | } | |
701 | ||
702 | g_string_append_c(priv->temp_markup_result, '>'); | |
703 | } | |
704 | } | |
705 | ||
706 | static void | |
707 | end_element_handler(GMarkupParseContext *context, | |
708 | const gchar *element_name, | |
709 | gpointer user_data, | |
710 | GError **error) | |
711 | { | |
712 | SexyUrlLabel *url_label = SEXY_URL_LABEL(user_data); | |
713 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
714 | ||
715 | if (!strcmp(element_name, "a")) | |
716 | { | |
717 | g_string_append(priv->temp_markup_result, "</span>"); | |
718 | } | |
719 | else | |
720 | { | |
721 | g_string_append_printf(priv->temp_markup_result, | |
722 | "</%s>", element_name); | |
723 | } | |
724 | } | |
725 | ||
726 | static void | |
727 | text_handler(GMarkupParseContext *context, | |
728 | const gchar *text, | |
729 | gsize text_len, | |
730 | gpointer user_data, | |
731 | GError **error) | |
732 | { | |
733 | SexyUrlLabel *url_label = SEXY_URL_LABEL(user_data); | |
734 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
735 | ||
736 | gchar *newtext = g_markup_escape_text(text, text_len); | |
737 | g_string_append_len(priv->temp_markup_result, newtext, strlen (newtext)); | |
738 | g_free (newtext); | |
739 | } | |
740 | ||
741 | static const GMarkupParser markup_parser = | |
742 | { | |
743 | start_element_handler, | |
744 | end_element_handler, | |
745 | text_handler, | |
746 | NULL, | |
747 | NULL | |
748 | }; | |
749 | ||
750 | static gboolean | |
751 | xml_isspace(char c) | |
752 | { | |
753 | return (c == ' ' || c == '\t' || c == '\n' || c == '\r'); | |
754 | } | |
755 | ||
756 | static gboolean | |
757 | parse_custom_markup(SexyUrlLabel *url_label, const gchar *markup, | |
758 | gchar **ret_markup) | |
759 | { | |
760 | GMarkupParseContext *context = NULL; | |
761 | SexyUrlLabelPrivate *priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
762 | GError *error = NULL; | |
763 | const gchar *p, *end; | |
764 | gboolean needs_root = TRUE; | |
765 | gsize length; | |
766 | ||
767 | g_return_val_if_fail(markup != NULL, FALSE); | |
768 | g_return_val_if_fail(ret_markup != NULL, FALSE); | |
769 | ||
770 | priv->temp_markup_result = g_string_new(NULL); | |
771 | ||
772 | length = strlen(markup); | |
773 | p = markup; | |
774 | end = markup + length; | |
775 | ||
776 | while (p != end && xml_isspace(*p)) | |
777 | p++; | |
778 | ||
779 | if (end - p >= 8 && strncmp(p, "<markup>", 8) == 0) | |
780 | needs_root = FALSE; | |
781 | ||
782 | context = g_markup_parse_context_new(&markup_parser, 0, url_label, NULL); | |
783 | ||
784 | if (needs_root) | |
785 | { | |
786 | if (!g_markup_parse_context_parse(context, "<markup>", -1, &error)) | |
787 | goto failed; | |
788 | } | |
789 | ||
790 | if (!g_markup_parse_context_parse(context, markup, strlen(markup), &error)) | |
791 | goto failed; | |
792 | ||
793 | if (needs_root) | |
794 | { | |
795 | if (!g_markup_parse_context_parse(context, "</markup>", -1, &error)) | |
796 | goto failed; | |
797 | } | |
798 | ||
799 | if (!g_markup_parse_context_end_parse(context, &error)) | |
800 | goto failed; | |
801 | ||
802 | if (error != NULL) | |
803 | g_error_free(error); | |
804 | ||
805 | g_markup_parse_context_free(context); | |
806 | ||
807 | *ret_markup = g_string_free(priv->temp_markup_result, FALSE); | |
808 | priv->temp_markup_result = NULL; | |
809 | ||
810 | return TRUE; | |
811 | ||
812 | failed: | |
813 | fprintf(stderr, "Unable to parse markup: %s\n", error->message); | |
814 | g_error_free(error); | |
815 | ||
816 | g_string_free(priv->temp_markup_result, TRUE); | |
817 | priv->temp_markup_result = NULL; | |
818 | ||
819 | g_markup_parse_context_free(context); | |
820 | return FALSE; | |
821 | } | |
822 | ||
823 | /** | |
824 | * sexy_url_label_set_markup | |
825 | * @url_label: A #SexyUrlLabel. | |
826 | * @markup: a markup string (see <link linkend="PangoMarkupFormat">Pango markup format</link>) | |
827 | * | |
828 | * Parses @markup which is marked up with the <link | |
829 | * linkend="PangoMarkupFormat">Pango text markup language</link> as well as | |
830 | * HTML-style hyperlinks, setting the label's text and attribute list based | |
831 | * on the parse results. If the @markup is external data, you may need to | |
832 | * escape it with g_markup_escape_text() or g_markup_printf_escaped() | |
833 | */ | |
834 | void | |
835 | sexy_url_label_set_markup(SexyUrlLabel *url_label, const gchar *markup) | |
836 | { | |
837 | SexyUrlLabelPrivate *priv; | |
838 | gchar *new_markup; | |
839 | ||
840 | g_return_if_fail(SEXY_IS_URL_LABEL(url_label)); | |
841 | ||
842 | priv = SEXY_URL_LABEL_GET_PRIVATE(url_label); | |
843 | ||
844 | sexy_url_label_clear_links(url_label); | |
845 | sexy_url_label_clear_urls(url_label); | |
846 | ||
847 | if (markup == NULL || *markup == '\0') | |
848 | { | |
849 | gtk_label_set_markup(GTK_LABEL(url_label), ""); | |
850 | return; | |
851 | } | |
852 | ||
853 | if (parse_custom_markup(url_label, markup, &new_markup)) | |
854 | { | |
855 | gtk_label_set_markup(GTK_LABEL(url_label), new_markup); | |
856 | g_free(new_markup); | |
857 | } | |
858 | else | |
859 | { | |
860 | gtk_label_set_markup(GTK_LABEL(url_label), ""); | |
861 | } | |
862 | ||
863 | sexy_url_label_rescan_label(url_label); | |
864 | ||
865 | update_wrap_width(url_label, priv->wrap_width); | |
866 | } | |
867 | ||
868 | // vim:ts=4 sw=4 |
0 | /* | |
1 | * @file libsexy/sexy-url-label.h URL Label | |
2 | * | |
3 | * @Copyright (C) 2005-2006 Christian Hammond | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2.1 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library 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 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this library; if not, write to the | |
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 | * Boston, MA 02111-1307, USA. | |
19 | */ | |
20 | #ifndef _SEXY_URL_LABEL_H_ | |
21 | #define _SEXY_URL_LABEL_H_ | |
22 | ||
23 | typedef struct _SexyUrlLabel SexyUrlLabel; | |
24 | typedef struct _SexyUrlLabelClass SexyUrlLabelClass; | |
25 | ||
26 | #include <gtk/gtklabel.h> | |
27 | ||
28 | #define SEXY_TYPE_URL_LABEL (sexy_url_label_get_type()) | |
29 | #define SEXY_URL_LABEL(obj) \ | |
30 | (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_URL_LABEL, SexyUrlLabel)) | |
31 | #define SEXY_URL_LABEL_CLASS(klass) \ | |
32 | (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_URL_LABEL, SexyUrlLabelClass)) | |
33 | #define SEXY_IS_URL_LABEL(obj) \ | |
34 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_URL_LABEL)) | |
35 | #define SEXY_IS_URL_LABEL_CLASS(klass) \ | |
36 | (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_URL_LABEL)) | |
37 | #define SEXY_URL_LABEL_GET_CLASS(obj) \ | |
38 | (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_URL_LABEL, SexyUrlLabelClass)) | |
39 | ||
40 | struct _SexyUrlLabel | |
41 | { | |
42 | GtkLabel parent_object; | |
43 | ||
44 | void (*gtk_reserved1)(void); | |
45 | void (*gtk_reserved2)(void); | |
46 | void (*gtk_reserved3)(void); | |
47 | void (*gtk_reserved4)(void); | |
48 | }; | |
49 | ||
50 | struct _SexyUrlLabelClass | |
51 | { | |
52 | GtkLabelClass parent_class; | |
53 | ||
54 | /* Signals */ | |
55 | void (*url_activated)(SexyUrlLabel *url_label, const gchar *url); | |
56 | ||
57 | void (*gtk_reserved1)(void); | |
58 | void (*gtk_reserved2)(void); | |
59 | void (*gtk_reserved3)(void); | |
60 | void (*gtk_reserved4)(void); | |
61 | }; | |
62 | ||
63 | G_BEGIN_DECLS | |
64 | ||
65 | GType sexy_url_label_get_type(void); | |
66 | ||
67 | GtkWidget *sexy_url_label_new(void); | |
68 | void sexy_url_label_set_markup(SexyUrlLabel *url_label, const gchar *markup); | |
69 | ||
70 | G_END_DECLS | |
71 | ||
72 | #endif /* _SEXY_URL_LABEL_H_ */ |