Codebase list policykit-1-gnome / 33cd7e3
Imported Upstream version 0.9.2 Michael Biebl 14 years ago
38 changed file(s) with 3734 addition(s) and 1201 deletion(s). Raw diff Collapse all Expand all
00
11 The polkit-gnome library (polkit-gnome/*) is licensed to you under the
22 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.
56
67 Both licenses are included here. Each source code file is marked with
78 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
085 2008-07-22 18:05 David Zeuthen <davidz@redhat.com>
186
287 * Makefile.am: fix ChangeLog generation
114114 F77 = @F77@
115115 FFLAGS = @FFLAGS@
116116 GCONFTOOL = @GCONFTOOL@
117 GCONF_CFLAGS = @GCONF_CFLAGS@
118 GCONF_LIBS = @GCONF_LIBS@
117119 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
118120 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
119121 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120122 GMOFILES = @GMOFILES@
121123 GMSGFMT = @GMSGFMT@
122 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
123 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
124124 GREP = @GREP@
125125 GTKDOC_CHECK = @GTKDOC_CHECK@
126126 GTK_CFLAGS = @GTK_CFLAGS@
196196 RANLIB = @RANLIB@
197197 SED = @SED@
198198 SET_MAKE = @SET_MAKE@
199 SEXY_CFLAGS = @SEXY_CFLAGS@
200 SEXY_LIBS = @SEXY_LIBS@
201199 SHELL = @SHELL@
202200 STRIP = @STRIP@
203201 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
040 ==========
141 PolicyKit-gnome 0.9
242 ==========
00 #! /bin/sh
11 # 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.
33 #
44 # Report bugs to <mailto:david@fubar.dk>.
55 #
749749 # Identity of this package.
750750 PACKAGE_NAME='PolicyKit-gnome'
751751 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'
754754 PACKAGE_BUGREPORT='mailto:david@fubar.dk'
755755
756756 ac_unique_file="src"
921921 GTK_DOC_USE_LIBTOOL_FALSE
922922 GTK_CFLAGS
923923 GTK_LIBS
924 SEXY_CFLAGS
925 SEXY_LIBS
926 GNOME_VFS_CFLAGS
927 GNOME_VFS_LIBS
924 GCONF_CFLAGS
925 GCONF_LIBS
928926 DBUS_GLIB_CFLAGS
929927 DBUS_GLIB_LIBS
930928 POLKIT_DBUS_CFLAGS
10311029 PKG_CONFIG
10321030 GTK_CFLAGS
10331031 GTK_LIBS
1034 SEXY_CFLAGS
1035 SEXY_LIBS
1036 GNOME_VFS_CFLAGS
1037 GNOME_VFS_LIBS
1032 GCONF_CFLAGS
1033 GCONF_LIBS
10381034 DBUS_GLIB_CFLAGS
10391035 DBUS_GLIB_LIBS
10401036 POLKIT_DBUS_CFLAGS
15931589 # Omit some internal or obsolete options to make the list less imposing.
15941590 # This message is too long to be a string in the A/UX 3.1 sh.
15951591 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.
15971593
15981594 Usage: $0 [OPTION]... [VAR=VALUE]...
15991595
16631659
16641660 if test -n "$ac_init_help"; then
16651661 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:";;
16671663 esac
16681664 cat <<\_ACEOF
16691665
17241720 PKG_CONFIG path to pkg-config utility
17251721 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
17261722 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
17331726 DBUS_GLIB_CFLAGS
17341727 C compiler flags for DBUS_GLIB, overriding pkg-config
17351728 DBUS_GLIB_LIBS
18091802 test -n "$ac_init_help" && exit $ac_status
18101803 if $ac_init_version; then
18111804 cat <<\_ACEOF
1812 PolicyKit-gnome configure 0.9
1805 PolicyKit-gnome configure 0.9.2
18131806 generated by GNU Autoconf 2.62
18141807
18151808 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18231816 This file contains any messages produced by compilers while
18241817 running configure, to aid debugging if configure makes a mistake.
18251818
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
18271820 generated by GNU Autoconf 2.62. Invocation command line was
18281821
18291822 $ $0 $@
25382531
25392532 # Define the identity of the package.
25402533 PACKAGE='PolicyKit-gnome'
2541 VERSION='0.9'
2534 VERSION='0.9.2'
25422535
25432536
25442537 cat >>confdefs.h <<_ACEOF
51045097 ;;
51055098 *-*-irix6*)
51065099 # Find out which ABI we are using.
5107 echo '#line 5108 "configure"' > conftest.$ac_ext
5100 echo '#line 5101 "configure"' > conftest.$ac_ext
51085101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51095102 (eval $ac_compile) 2>&5
51105103 ac_status=$?
77997792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
78007793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
78017794 -e 's:$: $lt_compiler_flag:'`
7802 (eval echo "\"\$as_me:7803: $lt_compile\"" >&5)
7795 (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
78037796 (eval "$lt_compile" 2>conftest.err)
78047797 ac_status=$?
78057798 cat conftest.err >&5
7806 echo "$as_me:7807: \$? = $ac_status" >&5
7799 echo "$as_me:7800: \$? = $ac_status" >&5
78077800 if (exit $ac_status) && test -s "$ac_outfile"; then
78087801 # The compiler can only warn and ignore the option if not recognized
78097802 # So say no if there are warnings other than the usual output.
80898082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
80908083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
80918084 -e 's:$: $lt_compiler_flag:'`
8092 (eval echo "\"\$as_me:8093: $lt_compile\"" >&5)
8085 (eval echo "\"\$as_me:8086: $lt_compile\"" >&5)
80938086 (eval "$lt_compile" 2>conftest.err)
80948087 ac_status=$?
80958088 cat conftest.err >&5
8096 echo "$as_me:8097: \$? = $ac_status" >&5
8089 echo "$as_me:8090: \$? = $ac_status" >&5
80978090 if (exit $ac_status) && test -s "$ac_outfile"; then
80988091 # The compiler can only warn and ignore the option if not recognized
80998092 # So say no if there are warnings other than the usual output.
81938186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
81948187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
81958188 -e 's:$: $lt_compiler_flag:'`
8196 (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
8189 (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
81978190 (eval "$lt_compile" 2>out/conftest.err)
81988191 ac_status=$?
81998192 cat out/conftest.err >&5
8200 echo "$as_me:8201: \$? = $ac_status" >&5
8193 echo "$as_me:8194: \$? = $ac_status" >&5
82018194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
82028195 then
82038196 # The compiler can only warn and ignore the option if not recognized
1059510588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1059610589 lt_status=$lt_dlunknown
1059710590 cat > conftest.$ac_ext <<EOF
10598 #line 10599 "configure"
10591 #line 10592 "configure"
1059910592 #include "confdefs.h"
1060010593
1060110594 #if HAVE_DLFCN_H
1069510688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1069610689 lt_status=$lt_dlunknown
1069710690 cat > conftest.$ac_ext <<EOF
10698 #line 10699 "configure"
10691 #line 10692 "configure"
1069910692 #include "confdefs.h"
1070010693
1070110694 #if HAVE_DLFCN_H
1310413097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1310513098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1310613099 -e 's:$: $lt_compiler_flag:'`
13107 (eval echo "\"\$as_me:13108: $lt_compile\"" >&5)
13100 (eval echo "\"\$as_me:13101: $lt_compile\"" >&5)
1310813101 (eval "$lt_compile" 2>conftest.err)
1310913102 ac_status=$?
1311013103 cat conftest.err >&5
13111 echo "$as_me:13112: \$? = $ac_status" >&5
13104 echo "$as_me:13105: \$? = $ac_status" >&5
1311213105 if (exit $ac_status) && test -s "$ac_outfile"; then
1311313106 # The compiler can only warn and ignore the option if not recognized
1311413107 # So say no if there are warnings other than the usual output.
1320813201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1320913202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1321013203 -e 's:$: $lt_compiler_flag:'`
13211 (eval echo "\"\$as_me:13212: $lt_compile\"" >&5)
13204 (eval echo "\"\$as_me:13205: $lt_compile\"" >&5)
1321213205 (eval "$lt_compile" 2>out/conftest.err)
1321313206 ac_status=$?
1321413207 cat out/conftest.err >&5
13215 echo "$as_me:13216: \$? = $ac_status" >&5
13208 echo "$as_me:13209: \$? = $ac_status" >&5
1321613209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1321713210 then
1321813211 # The compiler can only warn and ignore the option if not recognized
1479314786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1479414787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1479514788 -e 's:$: $lt_compiler_flag:'`
14796 (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14789 (eval echo "\"\$as_me:14790: $lt_compile\"" >&5)
1479714790 (eval "$lt_compile" 2>conftest.err)
1479814791 ac_status=$?
1479914792 cat conftest.err >&5
14800 echo "$as_me:14801: \$? = $ac_status" >&5
14793 echo "$as_me:14794: \$? = $ac_status" >&5
1480114794 if (exit $ac_status) && test -s "$ac_outfile"; then
1480214795 # The compiler can only warn and ignore the option if not recognized
1480314796 # So say no if there are warnings other than the usual output.
1489714890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1489814891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1489914892 -e 's:$: $lt_compiler_flag:'`
14900 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14893 (eval echo "\"\$as_me:14894: $lt_compile\"" >&5)
1490114894 (eval "$lt_compile" 2>out/conftest.err)
1490214895 ac_status=$?
1490314896 cat out/conftest.err >&5
14904 echo "$as_me:14905: \$? = $ac_status" >&5
14897 echo "$as_me:14898: \$? = $ac_status" >&5
1490514898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1490614899 then
1490714900 # The compiler can only warn and ignore the option if not recognized
1711417107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1711517108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1711617109 -e 's:$: $lt_compiler_flag:'`
17117 (eval echo "\"\$as_me:17118: $lt_compile\"" >&5)
17110 (eval echo "\"\$as_me:17111: $lt_compile\"" >&5)
1711817111 (eval "$lt_compile" 2>conftest.err)
1711917112 ac_status=$?
1712017113 cat conftest.err >&5
17121 echo "$as_me:17122: \$? = $ac_status" >&5
17114 echo "$as_me:17115: \$? = $ac_status" >&5
1712217115 if (exit $ac_status) && test -s "$ac_outfile"; then
1712317116 # The compiler can only warn and ignore the option if not recognized
1712417117 # So say no if there are warnings other than the usual output.
1740417397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1740517398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1740617399 -e 's:$: $lt_compiler_flag:'`
17407 (eval echo "\"\$as_me:17408: $lt_compile\"" >&5)
17400 (eval echo "\"\$as_me:17401: $lt_compile\"" >&5)
1740817401 (eval "$lt_compile" 2>conftest.err)
1740917402 ac_status=$?
1741017403 cat conftest.err >&5
17411 echo "$as_me:17412: \$? = $ac_status" >&5
17404 echo "$as_me:17405: \$? = $ac_status" >&5
1741217405 if (exit $ac_status) && test -s "$ac_outfile"; then
1741317406 # The compiler can only warn and ignore the option if not recognized
1741417407 # So say no if there are warnings other than the usual output.
1750817501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1750917502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1751017503 -e 's:$: $lt_compiler_flag:'`
17511 (eval echo "\"\$as_me:17512: $lt_compile\"" >&5)
17504 (eval echo "\"\$as_me:17505: $lt_compile\"" >&5)
1751217505 (eval "$lt_compile" 2>out/conftest.err)
1751317506 ac_status=$?
1751417507 cat out/conftest.err >&5
17515 echo "$as_me:17516: \$? = $ac_status" >&5
17508 echo "$as_me:17509: \$? = $ac_status" >&5
1751617509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1751717510 then
1751817511 # The compiler can only warn and ignore the option if not recognized
2077120764 # Check for required packages
2077220765 # ***************************
2077320766
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
2077720769 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
2078020772
2078120773
2078220774 pkg_failed=no
2089020882
2089120883
2089220884 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"
2089820890 elif test -n "$PKG_CONFIG"; then
2089920891 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
2090220894 ac_status=$?
2090320895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090420896 (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`
2090620898 else
2090720899 pkg_failed=yes
2090820900 fi
2090920901 else
2091020902 pkg_failed=untried
2091120903 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"
2091420906 elif test -n "$PKG_CONFIG"; then
2091520907 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
2091820910 ac_status=$?
2091920911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092020912 (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`
2092220914 else
2092320915 pkg_failed=yes
2092420916 fi
2093620928 _pkg_short_errors_supported=no
2093720929 fi
2093820930 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`
2094020932 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`
2094220934 fi
2094320935 # 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
2094920941
2095020942 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2095120943 installed software in a non-standard prefix.
2095220944
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.
2095520947 See the pkg-config man page for more details.
2095620948 " >&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
2096020952
2096120953 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2096220954 installed software in a non-standard prefix.
2096320955
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.
2096620958 See the pkg-config man page for more details.
2096720959 " >&2;}
2096820960 { (exit 1); exit 1; }; }
2097120963 is in your PATH or set the PKG_CONFIG environment variable to the full
2097220964 path to pkg-config.
2097320965
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.
2097620968 See the pkg-config man page for more details.
2097720969
2097820970 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2098120973 is in your PATH or set the PKG_CONFIG environment variable to the full
2098220974 path to pkg-config.
2098320975
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.
2098620978 See the pkg-config man page for more details.
2098720979
2098820980 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2098920981 See \`config.log' for more details." >&2;}
2099020982 { (exit 1); exit 1; }; }
2099120983 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
2110420986 { $as_echo "$as_me:$LINENO: result: yes" >&5
2110520987 $as_echo "yes" >&6; }
2110620988 :
2425824140 # report actual input values of CONFIG_FILES etc. instead of their
2425924141 # values after options handling.
2426024142 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
2426224144 generated by GNU Autoconf 2.62. Invocation command line was
2426324145
2426424146 CONFIG_FILES = $CONFIG_FILES
2431124193 _ACEOF
2431224194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2431324195 ac_cs_version="\\
24314 PolicyKit-gnome config.status 0.9
24196 PolicyKit-gnome config.status 0.9.2
2431524197 configured by $0, generated by GNU Autoconf 2.62,
2431624198 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2431724199
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])
11
22 AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
33
121121 # Check for required packages
122122 # ***************************
123123
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
127126 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
130129
131130 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
132131 AC_SUBST(GTK_CFLAGS)
133132 AC_SUBST(GTK_LIBS)
134133
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)
142137
143138 PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= $DBUS_GLIB_REQUIRED)
144139 AC_SUBST(DBUS_GLIB_CFLAGS)
102102 F77 = @F77@
103103 FFLAGS = @FFLAGS@
104104 GCONFTOOL = @GCONFTOOL@
105 GCONF_CFLAGS = @GCONF_CFLAGS@
106 GCONF_LIBS = @GCONF_LIBS@
105107 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
106108 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
107109 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
108110 GMOFILES = @GMOFILES@
109111 GMSGFMT = @GMSGFMT@
110 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
111 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
112112 GREP = @GREP@
113113 GTKDOC_CHECK = @GTKDOC_CHECK@
114114 GTK_CFLAGS = @GTK_CFLAGS@
184184 RANLIB = @RANLIB@
185185 SED = @SED@
186186 SET_MAKE = @SET_MAKE@
187 SEXY_CFLAGS = @SEXY_CFLAGS@
188 SEXY_LIBS = @SEXY_LIBS@
189187 SHELL = @SHELL@
190188 STRIP = @STRIP@
191189 USE_NLS = @USE_NLS@
9292 F77 = @F77@
9393 FFLAGS = @FFLAGS@
9494 GCONFTOOL = @GCONFTOOL@
95 GCONF_CFLAGS = @GCONF_CFLAGS@
96 GCONF_LIBS = @GCONF_LIBS@
9597 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
9698 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
9799 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
98100 GMOFILES = @GMOFILES@
99101 GMSGFMT = @GMSGFMT@
100 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
101 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
102102 GREP = @GREP@
103103 GTKDOC_CHECK = @GTKDOC_CHECK@
104104 GTK_CFLAGS = @GTK_CFLAGS@
174174 RANLIB = @RANLIB@
175175 SED = @SED@
176176 SET_MAKE = @SET_MAKE@
177 SEXY_CFLAGS = @SEXY_CFLAGS@
178 SEXY_LIBS = @SEXY_LIBS@
179177 SHELL = @SHELL@
180178 STRIP = @STRIP@
181179 USE_NLS = @USE_NLS@
4646 <div class="refsynopsisdiv">
4747 <a name="PolKitGnomeAction.synopsis"></a><h2>Synopsis</h2>
4848 <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
6052 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
6153 >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
6755 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
6856 >gchar</a> *name,
6957 <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"
7159 >PolKitAction</a> *polkit_action,
7260 const <a
7361 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
7664 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
7765 >gchar</a> *tooltip);
7866 <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);
8670 <a
8771 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,
9874 <a
9975 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
10076 >gboolean</a> sensitive);
10177 <a
10278 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,
11381 <a
11482 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
11583 >gboolean</a> visible);
11684 <a
11785 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);
12387 </pre>
12488 </div>
12589 <div class="refsect1" lang="en">
13296 href="/usr/share/gtk-doc/html/gtk/GtkAction.html"
13397 >GtkAction</a>
13498 +----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>
138100 </pre>
139101 </div>
140102 <div class="refsect1" lang="en">
148110 <div class="refsect1" lang="en">
149111 <a name="PolKitGnomeAction.properties"></a><h2>Properties</h2>
150112 <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
154114 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
155115 >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
159117 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
160118 >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
164120 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
165121 >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
169123 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
170124 >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
174126 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
175127 >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
179129 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
180130 >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
184132 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
185133 >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
189135 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
190136 >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
194138 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
195139 >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
199141 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
200142 >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
204144 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
205145 >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
209147 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
210148 >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
214150 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
215151 >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
219153 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
220154 >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
224156 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
225157 >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
229159 href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
230160 >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
234162 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
235163 >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
239165 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
240166 >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
244168 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
245169 >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
249171 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
250172 >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
254174 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
255175 >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
259177 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
260178 >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
264180 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
265181 >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
269183 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
270184 >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
274186 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
275187 >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
279189 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
280190 >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
284192 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
285193 >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
289195 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
290196 >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
294198 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
295199 >gboolean</a> : Read / Write
296200 </pre>
298202 <div class="refsect1" lang="en">
299203 <a name="PolKitGnomeAction.signals"></a><h2>Signals</h2>
300204 <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
310208 </pre>
311209 </div>
312210 <div class="refsect1" lang="en">
323221 activate its action.
324222 </p>
325223 <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,
329225 icon-name, visible and properties of the parent <a
330226 href="/usr/share/gtk-doc/html/gtk/GtkAction.html"
331227 ><span class="type">GtkAction</span></a> instance
332228 according to what result PolicyKit gives about a given
333229 <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
338232 internally to track changes. This means that external events (such
339233 as the editing of the /etc/PolicyKit/PolicyKit.conf file,
340234 ConsoleKit session activity changes or if the user gains a
342236 connected proxy widgets, to be updated.
343237 </p>
344238 <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
348240 signal defined in <a
349241 href="/usr/share/gtk-doc/html/gtk/GtkAction.html"
350242 ><span class="type">GtkAction</span></a>. When the result from PolicyKit is
351243 yes, the signal is propagated. If the result is auth,
352244 <code class="function">polkit_gnome_auth_show_dialog()</code> will be used to bring up an
353245 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"
355247 ><span class="type">PolKitAction</span></a>. If the user
356248 succesfully gained the privilege, a ::activate signal will be
357249 synthesized. If the result is no, the signal is also propagated.
358250 </p>
359251 <p>
360252 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
364254 signal when the answer from PolicyKit is yes and as such don't have
365255 to worry about bringing up authentication dialogs if the property
366256 "no-sensitive" is set to <a
368258 ><span class="type">FALSE</span></a>.
369259 </p>
370260 <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
374262 will pass the XID of the top-level window that the proxy widget
375263 causing the activation to <code class="function">polkit_gnome_auth_show_dialog()</code>.
376264 </p>
377265 <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
381267 the following program
382268 </p>
383269 <p>
908794 <hr>
909795 <div class="refsect2" lang="en">
910796 <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
914798 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
915799 >gchar</a> *name);</pre>
916800 <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
920802 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
924804 application. A short example of the usage of this contructor
925805 follows.
926806 </p>
929809 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
930810 ><span class="type">NULL</span></a> the behavior is similar to
931811 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"
933813 ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.
934814 </p>
935815 <p>
937817 <a
938818 href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
939819 ><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"
941821 ><span class="type">PolKitAction</span></a> objects. The semantics of
942822 this property is that if the user is authorized for any of the
943823 given actions in 'polkit-action-sufficient' then the behavior is
951831 priority of any process). As the latter clearly implies the former,
952832 one would set the latter in the 'polkit-action-sufficient'
953833 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"
955835 ><span class="type">PolKitAction</span></a> for the former.
956836 </p>
957837 <p>
995875 <col align="left" valign="top">
996876 <tbody>
997877 <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>
999879 <td> A unique name for the action
1000880 </td>
1001881 </tr>
1002882 <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
1007885 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
1008886 ><span class="type">NULL</span></a> if error is set
1009887 </td>
1014892 <hr>
1015893 <div class="refsect2" lang="en">
1016894 <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
1020896 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1021897 >gchar</a> *name,
1022898 <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"
1024900 >PolKitAction</a> *polkit_action,
1025901 const <a
1026902 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1029905 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1030906 >gchar</a> *tooltip);</pre>
1031907 <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
1035909 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"
1037911 ><span class="type">PolKitAction</span></a> object.
1038912 </p>
1039913 <p>
1056930 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
1057931 ><span class="type">NULL</span></a> the behavior is similar to as
1058932 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"
1060934 ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.</p>
1061935 <p>
1062936
1065939 <col align="left" valign="top">
1066940 <tbody>
1067941 <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>
1069943 <td> A unique name for the action
1070944 </td>
1071945 </tr>
1072946 <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>
1074948 <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"
1076950 ><span class="type">PolKitAction</span></a> to track
1077951 </td>
1078952 </tr>
1079953 <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>
1081955 <td> the label to use (will also apply to short-label)
1082956 </td>
1083957 </tr>
1084958 <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>
1086960 <td> the tool tip to use
1087961 </td>
1088962 </tr>
1089963 <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
1094966 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
1095967 ><span class="type">NULL</span></a> if error is set
1096968 </td>
1102974 <div class="refsect2" lang="en">
1103975 <a name="polkit-gnome-action-get-polkit-result"></a><h3>polkit_gnome_action_get_polkit_result ()</h3>
1104976 <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"
1106978 >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>
1110980 <p>
1111981 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"
1113983 ><span class="type">PolKitResult</span></a> that indicates whether the user is
1114984 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"
1116986 ><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>
1120988 <p>
1121989
1122990 </p>
1124992 <col align="left" valign="top">
1125993 <tbody>
1126994 <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>
11281001 <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"
11371003 ><span class="type">PolKitAction</span></a> object. The caller shall not unref this object.
11381004 </td>
11391005 </tr>
11451011 <a name="polkit-gnome-action-get-sensitive"></a><h3>polkit_gnome_action_get_sensitive ()</h3>
11461012 <pre class="programlisting"><a
11471013 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>
11511015 <p>
11521016 Get the master sensitivity, see PolKitGnomeAction:master-sensitive:
11531017 for details.</p>
11581022 <col align="left" valign="top">
11591023 <tbody>
11601024 <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>
11691031 <td> the master sensitivity
11701032 </td>
11711033 </tr>
11751037 <hr>
11761038 <div class="refsect2" lang="en">
11771039 <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,
11811041 <a
11821042 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
11831043 >gboolean</a> sensitive);</pre>
11911051 <col align="left" valign="top">
11921052 <tbody>
11931053 <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>
12021060 <td> master sensitivity
12031061 </td>
12041062 </tr>
12101068 <a name="polkit-gnome-action-get-visible"></a><h3>polkit_gnome_action_get_visible ()</h3>
12111069 <pre class="programlisting"><a
12121070 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>
12161072 <p>
12171073 Get the master visibility, see PolKitGnomeAction:master-visible:
12181074 for details.</p>
12231079 <col align="left" valign="top">
12241080 <tbody>
12251081 <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>
12341088 <td> the master visibility
12351089 </td>
12361090 </tr>
12401094 <hr>
12411095 <div class="refsect2" lang="en">
12421096 <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,
12461098 <a
12471099 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
12481100 >gboolean</a> visible);</pre>
12561108 <col align="left" valign="top">
12571109 <tbody>
12581110 <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>
12671117 <td> master visibility
12681118 </td>
12691119 </tr>
12751125 <a name="polkit-gnome-action-create-button"></a><h3>polkit_gnome_action_create_button ()</h3>
12761126 <pre class="programlisting"><a
12771127 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>
12811129 <p>
12821130 Create a button for the given action that displays the label,
12831131 tooltip and icon_name corresponding to whether the state, according
12891137 <col align="left" valign="top">
12901138 <tbody>
12911139 <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>
13001146 <td> A <a
13011147 href="/usr/share/gtk-doc/html/gtk/GtkButton.html"
13021148 ><span class="type">GtkButton</span></a> instance connected to the action
15711417 <a name="PolKitGnomeAction.signal-details"></a><h2>Signal Details</h2>
15721418 <div class="refsect2" lang="en">
15731419 <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,
15771421 <a
15781422 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
15791423 >gboolean</a> gained_privilege,
15911435 <col align="left" valign="top">
15921436 <tbody>
15931437 <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>
15951439 <td> the object
15961440 </td>
15971441 </tr>
15981442 <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>
16001444 <td> whether the privilege was gained
16011445 </td>
16021446 </tr>
16031447 <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>
16051449 <td>user data set when the signal handler was connected.</td>
16061450 </tr>
16071451 </tbody>
16101454 <hr>
16111455 <div class="refsect2" lang="en">
16121456 <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,
16161458 <a
16171459 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
16181460 >gpointer</a> user_data) : Run Last</pre>
16261468 <col align="left" valign="top">
16271469 <tbody>
16281470 <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>
16301472 <td> the object
16311473 </td>
16321474 </tr>
16331475 <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>
16351477 <td>user data set when the signal handler was connected.</td>
16361478 </tr>
16371479 </tbody>
16401482 <hr>
16411483 <div class="refsect2" lang="en">
16421484 <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,
16461486 <a
16471487 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
16481488 >gint</a> current_result,
16531493 The ::polkit-result-changed signal is emitted when the
16541494 PolicyKit result changes. This can happen when external
16551495 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>
16621498 <p>
16631499
16641500 </p>
16661502 <col align="left" valign="top">
16671503 <tbody>
16681504 <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>
16701506 <td> the object
16711507 </td>
16721508 </tr>
16731509 <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>
16751511 <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"
16771513 ><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"
16791515 ><span class="type">PolKitAction</span></a> object
16801516 </td>
16811517 </tr>
16821518 <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>
16841520 <td>user data set when the signal handler was connected.</td>
16851521 </tr>
16861522 </tbody>
4242 <div class="refsynopsisdiv">
4343 <a name="PolKitGnomeContext.synopsis"></a><h2>Synopsis</h2>
4444 <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
6250 href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
6351 >GError</a> **error);
6452 <a
6553 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);
6955 </pre>
7056 </div>
7157 <div class="refsect1" lang="en">
8066 <div class="refsect1" lang="en">
8167 <a name="PolKitGnomeContext.signals"></a><h2>Signals</h2>
8268 <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
8971 </pre>
9072 </div>
9173 <div class="refsect1" lang="en">
10789 callers will share the underlying <a
10890 href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#PolKitContext"
10991 ><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"
11193 ><span class="type">PolKitTracker</span></a>
11294 objects. Do not use any of the life cycle methods of these objects;
11395 only use them to gather information.</p>
123105 </pre>
124106 <p>
125107 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
129109 <a
130110 href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
131111 ><span class="type">GError</span></a> for information on error domains.</p>
142122 } PolKitGnomeContextError;
143123 </pre>
144124 <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>
148126 <p>
149127
150128 </p>
177155 Provide access to <a
178156 href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#PolKitContext"
179157 ><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"
181159 ><span class="type">PolKitTracker</span></a> instances
182160 shared among many callers.</p>
183161 <p>
189167 <tr>
190168 <td><p><span class="term"><a
191169 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>
193171 <td> for interfacing with PolicyKit; e.g. typically <a
194172 href="/usr/share/gtk-doc/html/polkit/polkit-polkit-context.html#polkit-context-can-caller-do-action"
195173 ><code class="function">polkit_context_can_caller_do_action()</code></a>
197175 </tr>
198176 <tr>
199177 <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>
202180 <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"
204182 ><span class="type">PolKitCaller</span></a> objects
205183 </td>
206184 </tr>
210188 <hr>
211189 <div class="refsect2" lang="en">
212190 <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
216192 href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
217193 >GError</a> **error);</pre>
218194 <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
222196 singleton that may be shared with other callers of this function.
223197 </p>
224198 <p>
236210 <col align="left" valign="top">
237211 <tbody>
238212 <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>
240214 <td> return location for error
241215 </td>
242216 </tr>
243217 <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
248220 </td>
249221 </tr>
250222 </tbody>
262234 <div class="variablelist"><table border="0">
263235 <col align="left" valign="top">
264236 <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>
266238 <td>
267239
268240
275247 <a name="PolKitGnomeContext.signal-details"></a><h2>Signal Details</h2>
276248 <div class="refsect2" lang="en">
277249 <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,
281251 <a
282252 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
283253 >gpointer</a> user_data) : Run Last</pre>
297267 <col align="left" valign="top">
298268 <tbody>
299269 <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>
301271 <td> the object
302272 </td>
303273 </tr>
304274 <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>
306276 <td>user data set when the signal handler was connected.</td>
307277 </tr>
308278 </tbody>
311281 <hr>
312282 <div class="refsect2" lang="en">
313283 <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,
317285 <a
318286 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
319287 >gpointer</a> user_data) : Run Last</pre>
333301 <col align="left" valign="top">
334302 <tbody>
335303 <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>
337305 <td> the object
338306 </td>
339307 </tr>
340308 <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>
342310 <td>user data set when the signal handler was connected.</td>
343311 </tr>
344312 </tbody>
4747 <div class="refsynopsisdiv">
4848 <a name="PolKitGnomeToggleAction.synopsis"></a><h2>Synopsis</h2>
4949 <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
6153 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
6254 >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>
6856 (const <a
6957 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
7058 >gchar</a> *name,
7159 <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"
7361 >PolKitAction</a> *polkit_action,
7462 const <a
7563 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
7967 >gchar</a> *unlocked_label);
8068 <a
8169 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);
8872 </pre>
8973 </div>
9074 <div class="refsect1" lang="en">
9680 +----<a
9781 href="/usr/share/gtk-doc/html/gtk/GtkAction.html"
9882 >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>
10284 +----PolKitGnomeToggleAction
10385 </pre>
10486 </div>
11395 <div class="refsect1" lang="en">
11496 <a name="PolKitGnomeToggleAction.properties"></a><h2>Properties</h2>
11597 <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
11999 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
120100 >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
124102 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
125103 >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
129105 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
130106 >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
134108 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
135109 >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
139111 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
140112 >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
144114 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
145115 >gboolean</a> : Read / Write
146116 </pre>
148118 <div class="refsect1" lang="en">
149119 <a name="PolKitGnomeToggleAction.signals"></a><h2>Signals</h2>
150120 <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
154122 </pre>
155123 </div>
156124 <div class="refsect1" lang="en">
157125 <a name="PolKitGnomeToggleAction.description"></a><h2>Description</h2>
158126 <p>
159127 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>
163129 <p>
164130
165131 </p>
186152 <hr>
187153 <div class="refsect2" lang="en">
188154 <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
192156 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
193157 >gchar</a> *name);</pre>
194158 <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
198160 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
202162 the application.
203163 </p>
204164 <p>
206166 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
207167 ><span class="type">NULL</span></a> the behavior is similar to
208168 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"
210170 ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.</p>
211171 <p>
212172
215175 <col align="left" valign="top">
216176 <tbody>
217177 <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>
219179 <td> A unique name for the toggle_action
220180 </td>
221181 </tr>
222182 <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
227185 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
228186 ><span class="type">NULL</span></a> if error is set
229187 </td>
234192 <hr>
235193 <div class="refsect2" lang="en">
236194 <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
240196 (const <a
241197 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
242198 >gchar</a> *name,
243199 <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"
245201 >PolKitAction</a> *polkit_action,
246202 const <a
247203 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
250206 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
251207 >gchar</a> *unlocked_label);</pre>
252208 <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
256210 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"
258212 ><span class="type">PolKitAction</span></a> object. The toggle represents
259213 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"
261215 ><span class="type">PolKitAction</span></a>. If the
262216 user is not authorized, clicking on a proxy widget (if it's
263217 sensitive) will cause an authentication dialog to appear. If the
279233 be revoked.
280234 </p>
281235 <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'
283237 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
285239 will be 'locked_label' everywhere except in the YES state where
286240 it's set to 'unlocked-label'. When authentication is underway, the
287241 label will be "Authenticating..." and icon_name is untouched. If
295249 <p>
296250 The caller can always modify individual aspects of the
297251 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
301253 addition to the properties in the parent class, this subclass
302254 sports six new properties, "auth-underway-*" to control the look
303255 of proxy widgets when authentication is underway.
307259 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
308260 ><span class="type">NULL</span></a> the behavior is similar to as
309261 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"
311263 ><span class="type">PolKitAction</span></a> returned <span class="type">POLKIT_RESULT_YES</span>.</p>
312264 <p>
313265
316268 <col align="left" valign="top">
317269 <tbody>
318270 <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>
320272 <td> A unique name for the toggle_action
321273 </td>
322274 </tr>
323275 <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>
325277 <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"
327279 ><span class="type">PolKitAction</span></a> to track
328280 </td>
329281 </tr>
330282 <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>
332284 <td> The label to show when the user do not possess the
333285 authorization, e.g. "Click to make changes"
334286 </td>
335287 </tr>
336288 <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>
338290 <td> The label to show when the user does posses the
339291 authorization; e.g. "Click to prevent changes"
340292 </td>
341293 </tr>
342294 <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
347297 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
348298 ><span class="type">NULL</span></a> if error is set
349299 </td>
357307 <pre class="programlisting"><a
358308 href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
359309 >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>
363311 <p>
364312 Create a toggle button for the given action that displays the
365313 label, tooltip and icon_name corresponding to whether the state,
371319 <col align="left" valign="top">
372320 <tbody>
373321 <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>
382328 <td> A <a
383329 href="/usr/share/gtk-doc/html/gtk/GtkToggleButton.html"
384330 ><span class="type">GtkToggleButton</span></a> instance connected to the action
448394 <a name="PolKitGnomeToggleAction.signal-details"></a><h2>Signal Details</h2>
449395 <div class="refsect2" lang="en">
450396 <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,
454398 <a
455399 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
456400 >gpointer</a> user_data) : Run Last</pre>
463407 <col align="left" valign="top">
464408 <tbody>
465409 <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>
467411 <td> the object
468412 </td>
469413 </tr>
470414 <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>
472416 <td>user data set when the signal handler was connected.</td>
473417 </tr>
474418 </tbody>
2424     <code class="email">&lt;<a class="email" href="mailto:david@fubar.dk">david@fubar.dk</a>&gt;</code><br>
2525   </p></div></div>
2626 </div></div></div>
27 <div><p class="releaseinfo">Version 0.9
27 <div><p class="releaseinfo">Version 0.9.2
2828 </p></div>
2929 <div><p class="copyright">Copyright © 2007 The PolicyKit-gnome Authors</p></div>
3030 <div><div class="legalnotice">
31 <a name="id338498"></a><p>
31 <a name="id532886"></a><p>
3232 Permission is granted to copy, distribute and/or modify this
3333 document under the terms of the <em class="citetitle">GNU Free
3434 Documentation License</em>, Version 1.1 or any later
3838 <div class="refsynopsisdiv">
3939 <a name="polkit-gnome-polkit-gnome-auth.synopsis"></a><h2>Synopsis</h2>
4040 <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"
4543 >PolKitAction</a> *action,
4644 <a
4745 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
5452 >gpointer</a> user_data);
5553 <a
5654 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"
6157 >PolKitAction</a> *action,
6258 <a
6359 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
6460 >guint</a> xid,
6561 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,
6963 <a
7064 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
7165 >gpointer</a> user_data,
8781 <div class="refsect2" lang="en">
8882 <a name="PolKitGnomeAuthCB"></a><h3>PolKitGnomeAuthCB ()</h3>
8983 <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"
9185 >PolKitAction</a> *action,
9286 <a
9387 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
108102 <col align="left" valign="top">
109103 <tbody>
110104 <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>
112106 <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"
114108 ><span class="type">PolKitAction</span></a> passed in <code class="function">polkit_gnome_auth_show_dialog()</code>
115109 </td>
116110 </tr>
117111 <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>
119113 <td> whether the user gained the privilege. Set to
120114 <a
121115 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
125119 </td>
126120 </tr>
127121 <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>
129123 <td> if the call failed, this parameter will be non-<a
130124 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
131125 ><span class="type">NULL</span></a>. The
133127 </td>
134128 </tr>
135129 <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>
137131 <td> user data
138132 </td>
139133 </tr>
146140 <pre class="programlisting"><a
147141 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
148142 >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"
150144 >PolKitAction</a> *action,
151145 <a
152146 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
153147 >guint</a> xid,
154148 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,
158150 <a
159151 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
160152 >gpointer</a> user_data,
175167 </p>
176168 <p>
177169 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>.
179171 </p>
180172 <p>
181173 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"
183175 ><code class="function">polkit_auth_obtain()</code></a> function
184176 supplied in <code class="literal">libpolkit-dbus</code> except that this
185177 function is asynchronous.</p>
190182 <col align="left" valign="top">
191183 <tbody>
192184 <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>
194186 <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"
196188 ><span class="type">PolKitAction</span></a> to make the user authenticate for
197189 </td>
198190 </tr>
199191 <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>
201193 <td> X11 window ID for the window that the dialog will be transient for. If there is no window, pass 0.
202194 </td>
203195 </tr>
204196 <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>
206198 <td> Process ID of process to grant authorization to. Normally one wants to pass result of <code class="function">getpid()</code>.
207199 </td>
208200 </tr>
209201 <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>
211203 <td> Function to call when authentication is done
212204 </td>
213205 </tr>
214206 <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>
216208 <td> Data to pass to the callback function
217209 </td>
218210 </tr>
219211 <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>
221213 <td> Return location for error
222214 </td>
223215 </tr>
224216 <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>
226218 <td> <a
227219 href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
228220 ><span class="type">TRUE</span></a> if the authentication session was scheduled to
0 0.9
0 0.9.2
153153 be revoked.
154154 </para>
155155 <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'
157157 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
159159 will be 'locked_label' everywhere except in the YES state where
160160 it's set to 'unlocked-label'. When authentication is underway, the
161161 label will be "Authenticating..." and icon_name is untouched. If
127127 F77 = @F77@
128128 FFLAGS = @FFLAGS@
129129 GCONFTOOL = @GCONFTOOL@
130 GCONF_CFLAGS = @GCONF_CFLAGS@
131 GCONF_LIBS = @GCONF_LIBS@
130132 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
131133 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
132134 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
133135 GMOFILES = @GMOFILES@
134136 GMSGFMT = @GMSGFMT@
135 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
136 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
137137 GREP = @GREP@
138138 GTKDOC_CHECK = @GTKDOC_CHECK@
139139 GTK_CFLAGS = @GTK_CFLAGS@
209209 RANLIB = @RANLIB@
210210 SED = @SED@
211211 SET_MAKE = @SET_MAKE@
212 SEXY_CFLAGS = @SEXY_CFLAGS@
213 SEXY_LIBS = @SEXY_LIBS@
214212 SHELL = @SHELL@
215213 STRIP = @STRIP@
216214 USE_NLS = @USE_NLS@
1111 <description xml:lang="fi">Hyppää</description>
1212 <description xml:lang="fr">Sauter</description>
1313 <description xml:lang="ja">Jump</description>
14 <description xml:lang="pl">Wykonaj "Jump"</description>
1415 <description xml:lang="pt_BR">Pular</description>
1516 <description xml:lang="ru">Jump</description>
1617 <description xml:lang="sk">Jump</description>
2021 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta hyppäämästä</message>
2122 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de sauter</message>
2223 <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>
2325 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um pulo</message>
2426 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Jumping</message>
2527 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Jump</message>
3739 <description xml:lang="fi">Säädä</description>
3840 <description xml:lang="fr">Tripatouiller</description>
3941 <description xml:lang="ja">Frobnicate</description>
42 <description xml:lang="pl">Wykonaj "Frobnicate"</description>
4043 <description xml:lang="pt_BR">Ajustar</description>
4144 <description xml:lang="ru">Frobnicate</description>
4245 <description xml:lang="sk">Frobnicate</description>
4750 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta säätämästä</message>
4851 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de tripatouiller</message>
4952 <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>
5054 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um ajuste</message>
5155 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Frobnicating</message>
5256 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Frobnicate.</message>
7781 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta virittämästä</message>
7882 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome d'ajuster</message>
7983 <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>
8085 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um Tweak</message>
8186 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Tweaking</message>
8287 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Tweak</message>
9499 <description xml:lang="fi">Pyörittele</description>
95100 <description xml:lang="fr">Bidouiller</description>
96101 <description xml:lang="ja">Twiddle</description>
102 <description xml:lang="pl">Wykonaj "Twiddle"</description>
97103 <description xml:lang="pt_BR">Girar</description>
98104 <description xml:lang="ru">Twiddle</description>
99105 <description xml:lang="sk">Twiddle</description>
104110 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta pyörittelemästä</message>
105111 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de bidouiller</message>
106112 <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>
107114 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um giro</message>
108115 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Twiddling</message>
109116 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Twiddle</message>
121128 <description xml:lang="fi">Näpäytä</description>
122129 <description xml:lang="fr">Frapper</description>
123130 <description xml:lang="ja">Punch</description>
131 <description xml:lang="pl">Wykonaj "Punch"</description>
124132 <description xml:lang="pt_BR">Socar</description>
125133 <description xml:lang="ru">Punch</description>
126134 <description xml:lang="sk">Punch</description>
131139 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta näpäyttämästä</message>
132140 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de frapper</message>
133141 <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>
134143 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um soco</message>
135144 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Punching</message>
136145 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Punch</message>
151160 <description xml:lang="fi">Kytke</description>
152161 <description xml:lang="fr">Basculer</description>
153162 <description xml:lang="ja">Toggle</description>
163 <description xml:lang="pl">Wykonaj "Toggle"</description>
154164 <description xml:lang="pt_BR">Alternar</description>
155165 <description xml:lang="ru">Toggle</description>
156166 <description xml:lang="sk">Toggle</description>
161171 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta kytkemästä</message>
162172 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de basculer</message>
163173 <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>
164175 <message xml:lang="pt_BR">A política do sistema impediu o assistente de exemplo do PolicyKit-gnome de realizar uma alternância.</message>
165176 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Toggling</message>
166177 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Toggle</message>
177188 <description xml:lang="fi">Potkaise foota</description>
178189 <description xml:lang="fr">Pousser toto</description>
179190 <description xml:lang="ja">Kick foo</description>
191 <description xml:lang="pl">Wykonaj "Kick" na "foo"</description>
180192 <description xml:lang="pt_BR">Kick foo</description>
181193 <description xml:lang="ru">Kick foo</description>
182194 <description xml:lang="sk">Kick foo</description>
187199 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta potkaisemasta foota</message>
188200 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de pousser toto</message>
189201 <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>
190203 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um kick foo</message>
191204 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Kicking foo</message>
192205 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Kick foo</message>
204217 <description xml:lang="fi">Potkaise baria</description>
205218 <description xml:lang="fr">Pousser titi</description>
206219 <description xml:lang="ja">Kick bar</description>
220 <description xml:lang="pl">Wykonaj "Kick" na "bar"</description>
207221 <description xml:lang="pt_BR">Kick bar</description>
208222 <description xml:lang="ru">Kick bar</description>
209223 <description xml:lang="sk">Kick bar</description>
214228 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta potkaisemasta baria</message>
215229 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de pousser titi</message>
216230 <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>
217232 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um kick bar</message>
218233 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Kicking bar</message>
219234 <message xml:lang="sk">Systémová politika zabraňuje ukážkovému príkladu PolicyKit-gnome vo vykonaní akcie Kick bar</message>
231246 <description xml:lang="fi">Potkaise bazia</description>
232247 <description xml:lang="fr">Pousser tata</description>
233248 <description xml:lang="ja">Kick baz</description>
249 <description xml:lang="pl">Wykonaj "Kick" na "baz</description>
234250 <description xml:lang="pt_BR">Kick baz</description>
235251 <description xml:lang="ru">Kick baz</description>
236252 <description xml:lang="sk">Kick baz</description>
241257 <message xml:lang="fi">Järjestelmäkäytäntö estää PolicyKit-gnomen esimerkkiavustinta potkaisemasta bazia</message>
242258 <message xml:lang="fr">La stratégie système empêche l'assistant exemple de PolicyKit-gnome de pousser tata</message>
243259 <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>
244261 <message xml:lang="pt_BR">A política do sistema impediu que o assistente de exemplo do PolicyKit-gnome realizasse um kick baz</message>
245262 <message xml:lang="ru">System policy prevents the PolicyKit-gnome example helper from Kicking baz</message>
246263 <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
026 2008-07-21 Leonardo Ferreira Fontenelle <leonardof@gnome.org>
127
228 * pt_BR.po: Translation updated by Igor Pires Soares.
00 # please keep this list sorted alphabetically
11 #
2 ar
23 ca
34 cs
45 da
5555
5656 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
5757
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)
6161
6262 POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
6363
100100 install-data: install-data-@USE_NLS@
101101 install-data-no: all
102102 install-data-yes: all
103 $(mkdir_p) $(DESTDIR)$(itlocaledir)
104103 linguas="$(USE_LINGUAS)"; \
105104 for lang in $$linguas; do \
106105 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
66 msgstr ""
77 "Project-Id-Version: policykit-gnome trunk\n"
88 "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"
1111 "Last-Translator: Takeshi AIHANA <takeshi.aihana@gmail.com>\n"
1212 "Language-Team: Japanese <takeshi.aihana@gmail.com>\n"
1313 "MIME-Version: 1.0\n"
1515 "Content-Transfer-Encoding: 8bit\n"
1616
1717 #: ../data/polkit-gnome-authorization.desktop.in.h:1
18 #: ../tools/polkit-gnome-authorization.c:2439
18 #: ../tools/polkit-gnome-authorization.c:2443
1919 msgid "Authorizations"
2020 msgstr "権限の管理"
2121
2222 #: ../data/polkit-gnome-authorization.desktop.in.h:2
2323 msgid "Configure authorizations"
2424 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 にするかどうか"
2583
2684 #: ../examples/polkit-gnome-example.c:137
2785 msgid "Copyright © 2007 David Zeuthen"
114172 msgstr "Tweak!"
115173
116174 #: ../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
118176 msgid "Tweak"
119177 msgstr "Tweak"
120178
201259 "<i>メモ: /etc/PolicyKit/Policy.conf というファイルを編集して時債に代理ウィ"
202260 "ジェットが更新しているか確認してみて下さい。</i>"
203261
204 #: ../examples/polkit-gnome-example.policy.in.h:1
262 #: ../examples/org.gnome.policykit.examples.policy.in.h:1
205263 msgid "Frobnicate"
206264 msgstr "Frobnicate"
207265
208 #: ../examples/polkit-gnome-example.policy.in.h:2
266 #: ../examples/org.gnome.policykit.examples.policy.in.h:2
209267 msgid "Jump"
210268 msgstr "Jump"
211269
212 #: ../examples/polkit-gnome-example.policy.in.h:3
270 #: ../examples/org.gnome.policykit.examples.policy.in.h:3
213271 msgid "Kick bar"
214272 msgstr "Kick bar"
215273
216 #: ../examples/polkit-gnome-example.policy.in.h:4
274 #: ../examples/org.gnome.policykit.examples.policy.in.h:4
217275 msgid "Kick baz"
218276 msgstr "Kick baz"
219277
220 #: ../examples/polkit-gnome-example.policy.in.h:5
278 #: ../examples/org.gnome.policykit.examples.policy.in.h:5
221279 msgid "Kick foo"
222280 msgstr "Kick foo"
223281
224 #: ../examples/polkit-gnome-example.policy.in.h:6
282 #: ../examples/org.gnome.policykit.examples.policy.in.h:6
225283 msgid "Punch"
226284 msgstr "Punch"
227285
228 #: ../examples/polkit-gnome-example.policy.in.h:7
286 #: ../examples/org.gnome.policykit.examples.policy.in.h:7
229287 msgid ""
230288 "System policy prevents the PolicyKit-gnome example helper from Frobnicating"
231289 msgstr ""
232290 "System policy prevents the PolicyKit-gnome example helper from Frobnicating"
233291
234 #: ../examples/polkit-gnome-example.policy.in.h:8
292 #: ../examples/org.gnome.policykit.examples.policy.in.h:8
235293 msgid "System policy prevents the PolicyKit-gnome example helper from Jumping"
236294 msgstr "System policy prevents the PolicyKit-gnome example helper from Jumping"
237295
238 #: ../examples/polkit-gnome-example.policy.in.h:9
296 #: ../examples/org.gnome.policykit.examples.policy.in.h:9
239297 msgid ""
240298 "System policy prevents the PolicyKit-gnome example helper from Kicking bar"
241299 msgstr ""
242300 "System policy prevents the PolicyKit-gnome example helper from Kicking bar"
243301
244 #: ../examples/polkit-gnome-example.policy.in.h:10
302 #: ../examples/org.gnome.policykit.examples.policy.in.h:10
245303 msgid ""
246304 "System policy prevents the PolicyKit-gnome example helper from Kicking baz"
247305 msgstr ""
248306 "System policy prevents the PolicyKit-gnome example helper from Kicking baz"
249307
250 #: ../examples/polkit-gnome-example.policy.in.h:11
308 #: ../examples/org.gnome.policykit.examples.policy.in.h:11
251309 msgid ""
252310 "System policy prevents the PolicyKit-gnome example helper from Kicking foo"
253311 msgstr ""
254312 "System policy prevents the PolicyKit-gnome example helper from Kicking foo"
255313
256 #: ../examples/polkit-gnome-example.policy.in.h:12
314 #: ../examples/org.gnome.policykit.examples.policy.in.h:12
257315 msgid "System policy prevents the PolicyKit-gnome example helper from Punching"
258316 msgstr ""
259317 "System policy prevents the PolicyKit-gnome example helper from Punching"
260318
261 #: ../examples/polkit-gnome-example.policy.in.h:13
319 #: ../examples/org.gnome.policykit.examples.policy.in.h:13
262320 msgid "System policy prevents the PolicyKit-gnome example helper from Toggling"
263321 msgstr ""
264322 "System policy prevents the PolicyKit-gnome example helper from Toggling"
265323
266 #: ../examples/polkit-gnome-example.policy.in.h:14
324 #: ../examples/org.gnome.policykit.examples.policy.in.h:14
267325 msgid "System policy prevents the PolicyKit-gnome example helper from Tweaking"
268326 msgstr ""
269327 "System policy prevents the PolicyKit-gnome example helper from Tweaking"
270328
271 #: ../examples/polkit-gnome-example.policy.in.h:15
329 #: ../examples/org.gnome.policykit.examples.policy.in.h:15
272330 msgid ""
273331 "System policy prevents the PolicyKit-gnome example helper from Twiddling"
274332 msgstr ""
275333 "System policy prevents the PolicyKit-gnome example helper from Twiddling"
276334
277 #: ../examples/polkit-gnome-example.policy.in.h:16
335 #: ../examples/org.gnome.policykit.examples.policy.in.h:16
278336 msgid "Toggle"
279337 msgstr "Toggle"
280338
281 #: ../examples/polkit-gnome-example.policy.in.h:18
339 #: ../examples/org.gnome.policykit.examples.policy.in.h:18
282340 msgid "Twiddle"
283341 msgstr "Twiddle"
284342
300358 msgid "Starting PolicyKit GNOME session daemon version %s"
301359 msgstr "PolicyKit の GNOME セッション・デーモン (バージョン %s) の起動中..."
302360
303 #: ../src/polkit-gnome-auth-dialog.c:190
361 #: ../src/polkit-gnome-auth-dialog.c:191
304362 #: ../tools/polkit-gnome-authorization.c:649
305363 msgid "Select user..."
306364 msgstr "ユーザの選択..."
307365
308 #: ../src/polkit-gnome-auth-dialog.c:211
366 #: ../src/polkit-gnome-auth-dialog.c:212
309367 #: ../tools/polkit-gnome-authorization.c:665
310368 #, c-format
311369 msgid "%s (%s)"
312370 msgstr "%s (%s)"
313371
314 #: ../src/polkit-gnome-auth-dialog.c:292
372 #: ../src/polkit-gnome-auth-dialog.c:293
315373 msgid "_Remember authorization for this session"
316374 msgstr "このセッションに対する権限を記憶しておく(_R)"
317375
318 #: ../src/polkit-gnome-auth-dialog.c:298
376 #: ../src/polkit-gnome-auth-dialog.c:299
319377 msgid "_Remember authorization"
320378 msgstr "権限を記憶しておく(_R)"
321379
322 #: ../src/polkit-gnome-auth-dialog.c:313
380 #: ../src/polkit-gnome-auth-dialog.c:314
323381 msgid ""
324382 "An application is attempting to perform an action that requires privileges. "
325383 "Authentication as one of the users below is required to perform this action."
328386 "クションを実行するには、次に示すいずれかのユーザとしての認証が必要になりま"
329387 "す。"
330388
331 #: ../src/polkit-gnome-auth-dialog.c:320
389 #: ../src/polkit-gnome-auth-dialog.c:321
332390 msgid ""
333391 "An application is attempting to perform an action that requires privileges. "
334392 "Authentication as the super user is required to perform this action."
336394 "あるアプリケーションが特権の必要なアクションを実行しようとしています。このア"
337395 "クションを実行するには root 権限としての認証が必要になります。"
338396
339 #: ../src/polkit-gnome-auth-dialog.c:324
397 #: ../src/polkit-gnome-auth-dialog.c:325
340398 msgid ""
341399 "An application is attempting to perform an action that requires privileges. "
342400 "Authentication is required to perform this action."
344402 "あるアプリケーションが特権の必要なアクションを実行しようとしています。このア"
345403 "クションを実行するには認証が必要になります。"
346404
347 #: ../src/polkit-gnome-auth-dialog.c:348
405 #: ../src/polkit-gnome-auth-dialog.c:406
348406 #, c-format
349407 msgid "Click to edit %s"
350408 msgstr "ここをクリックして %s を編集して下さい"
351409
352 #: ../src/polkit-gnome-auth-dialog.c:371
410 #: ../src/polkit-gnome-auth-dialog.c:431
353411 #: ../tools/polkit-gnome-authorization.c:1391
354412 #, c-format
355413 msgid "Click to open %s"
356414 msgstr "ここをクリックして %s を開いて下さい"
357415
358 #: ../src/polkit-gnome-auth-dialog.c:600
416 #: ../src/polkit-gnome-auth-dialog.c:668
359417 msgid "_Authenticate"
360418 msgstr "認証する(_A)"
361419
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
364422 msgid "_Password:"
365423 msgstr "パスワード(_P):"
366424
367 #: ../src/polkit-gnome-auth-dialog.c:681
425 #: ../src/polkit-gnome-auth-dialog.c:749
368426 msgid "For this _session only"
369427 msgstr "このセッションだけ有効にする(_S)"
370428
371 #: ../src/polkit-gnome-auth-dialog.c:689
429 #: ../src/polkit-gnome-auth-dialog.c:757
372430 msgid "<small><b>_Details</b></small>"
373431 msgstr "<small><b>詳細(_D)</b></small>"
374432
375 #: ../src/polkit-gnome-auth-dialog.c:710
433 #: ../src/polkit-gnome-auth-dialog.c:778
376434 msgid "<small><b>Application:</b></small>"
377435 msgstr "<small><b>アプリケーション:</b></small>"
378436
379 #: ../src/polkit-gnome-auth-dialog.c:714
437 #: ../src/polkit-gnome-auth-dialog.c:782
380438 msgid "<small><b>Action:</b></small>"
381439 msgstr "<small><b>アクション:</b></small>"
382440
383 #: ../src/polkit-gnome-auth-dialog.c:719
441 #: ../src/polkit-gnome-auth-dialog.c:787
384442 msgid "<small><b>Vendor:</b></small>"
385443 msgstr "<small><b>ベンダ:</b></small>"
386444
387 #: ../src/polkit-gnome-auth-dialog.c:848
445 #: ../src/polkit-gnome-auth-dialog.c:916
388446 msgid "Authenticate"
389447 msgstr "認証"
390448
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
392454 #, c-format
393455 msgid "_Password for %s:"
394456 msgstr "%s のパスワード(_P):"
395457
396 #: ../src/polkit-gnome-manager.c:726
458 #: ../src/polkit-gnome-manager.c:732
397459 msgid "_Password for root:"
398460 msgstr "root のパスワード(_P):"
399461
400 #: ../src/polkit-gnome-manager.c:734
462 #: ../src/polkit-gnome-manager.c:740
401463 #, c-format
402464 msgid "_Password or swipe finger for %s:"
403465 msgstr "%s のパスワードまたは指紋認証(_P):"
404466
405 #: ../src/polkit-gnome-manager.c:737
467 #: ../src/polkit-gnome-manager.c:743
406468 msgid "_Password or swipe finger for root:"
407469 msgstr "root のパスワードまたは指紋認証(_P):"
408470
409 #: ../src/polkit-gnome-manager.c:740
471 #: ../src/polkit-gnome-manager.c:746
410472 msgid "_Password or swipe finger:"
411473 msgstr "パスワードまたは指紋認証(_P):"
412474
773835 msgid "_Show authorizations from all users"
774836 msgstr "全てのユーザの権限を表示する(_S)"
775837
776 #: ../tools/polkit-gnome-authorization.c:2413
838 #: ../tools/polkit-gnome-authorization.c:2417
777839 msgid "Select an action"
778840 msgstr "アクションを選択して下さい"
+249
-328
po/pl.po less more
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 # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
17 # Piotr Drąg <piotrdrag@gmail.com>, 2008.
2 #
8 # Tomasz Dominikowski <tdominikowski@aviary.pl>, 2008
39 msgid ""
410 msgstr ""
5 "Project-Id-Version: pl\n"
11 "Project-Id-Version: gnome-policykit\n"
612 "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"
1117 "MIME-Version: 1.0\n"
1218 "Content-Type: text/plain; charset=UTF-8\n"
1319 "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"
1425
1526 #: ../data/polkit-gnome-authorization.desktop.in.h:1
1627 #: ../tools/polkit-gnome-authorization.c:2443
1930
2031 #: ../data/polkit-gnome-authorization.desktop.in.h:2
2132 msgid "Configure authorizations"
22 msgstr "Konfiguracja upoważnień"
33 msgstr "Konfigurowanie upoważnień"
2334
2435 #: ../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."
3738
3839 #: ../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
3952 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"
4258
4359 #: ../examples/polkit-gnome-example.c:137
4460 msgid "Copyright © 2007 David Zeuthen"
4662
4763 #: ../examples/polkit-gnome-example.c:138
4864 msgid "PolicyKit-gnome Website"
49 msgstr "Strona WWW PolicyKit-gnome"
65 msgstr "Witryna PolicyKit-gnome"
5066
5167 #: ../examples/polkit-gnome-example.c:140
5268 #: ../examples/polkit-gnome-example.c:446
5369 msgid "PolicyKit-gnome demo"
54 msgstr "Demo PolicyKit-gnome"
70 msgstr "Demonstracja PolicyKit-gnome"
5571
5672 #: ../examples/polkit-gnome-example.c:141
5773 msgid "PolicyKit for the GNOME desktop"
6480 #. name, stock id, label
6581 #: ../examples/polkit-gnome-example.c:152
6682 msgid "_Actions"
67 msgstr "Dzi_ałania"
83 msgstr "_Działania"
6884
6985 #. name, stock id, label
7086 #: ../examples/polkit-gnome-example.c:153
7591 #. name, stock id
7692 #: ../examples/polkit-gnome-example.c:156
7793 msgid "_Quit"
78 msgstr "Za_kończ"
94 msgstr "_Zakończ"
7995
8096 #. label, accelerator
8197 #: ../examples/polkit-gnome-example.c:157
85101 #. name, stock id
86102 #: ../examples/polkit-gnome-example.c:161
87103 msgid "_About"
88 msgstr "_Informacje"
104 msgstr "_O programie"
89105
90106 #. label, accelerator
91107 #: ../examples/polkit-gnome-example.c:162
92108 msgid "About"
93 msgstr "Informacje"
109 msgstr "O programie"
94110
95111 #: ../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"
102114
103115 #: ../examples/polkit-gnome-example.c:252
104116 msgid "Frobnicate!"
105 msgstr "Wykonaj \"Frobnicate\"!"
117 msgstr "Wykonaj \"Frobnicate\""
106118
107119 #: ../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."
114122
115123 #: ../examples/polkit-gnome-example.c:275
116124 msgid "Jump!"
117 msgstr "Wykonaj \"Jump\"!"
125 msgstr "Wykonaj \"Jump\""
118126
119127 #: ../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."
128130
129131 #: ../examples/polkit-gnome-example.c:299
130132 #: ../examples/polkit-gnome-example.c:320
131133 msgid "Tweak!"
132 msgstr "Wykonaj \"Tweak\"!"
134 msgstr "Wykonaj \"Tweak\""
133135
134136 #: ../examples/polkit-gnome-example.c:306
137 #: ../examples/org.gnome.policykit.examples.policy.in.h:17
135138 msgid "Tweak"
136139 msgstr "Wykonaj \"Tweak\""
137140
141144
142145 #: ../examples/polkit-gnome-example.c:308
143146 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ć"
145148
146149 #: ../examples/polkit-gnome-example.c:313
147150 msgid "Tweak..."
148 msgstr "Wykonaj \"Tweak\"..."
151 msgstr "Wykonaj \"Tweak...\""
149152
150153 #: ../examples/polkit-gnome-example.c:314
151154 msgid "Tweak... (long)"
152 msgstr "Wykonaj \"Tweak\"... (długie)"
155 msgstr "Wykonaj \"Tweak...\" (długie)"
153156
154157 #: ../examples/polkit-gnome-example.c:315
155158 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\"."
157160
158161 #: ../examples/polkit-gnome-example.c:321
159162 msgid "Tweak! (long)"
160 msgstr "Wykonaj \"Tweak\"! (długie)"
163 msgstr "Wykonaj \"Tweak\" (długie)"
161164
162165 #: ../examples/polkit-gnome-example.c:322
163166 msgid "Go ahead, tweak tweak tweak!"
164 msgstr "No dalej, zrób \"tweak\", \"tweak\", \"tweak\"!"
167 msgstr "No dalej, wykonaj \"tweak\" \"tweak\" \"tweak\"."
165168
166169 #: ../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."
175172
176173 #: ../examples/polkit-gnome-example.c:348
177174 msgid "Twiddle!"
178 msgstr "Wykonaj \"Twiddle\"!"
175 msgstr "Wykonaj \"Twiddle\""
179176
180177 #: ../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."
189180
190181 #: ../examples/polkit-gnome-example.c:372
191182 msgid "Punch!"
192 msgstr "Wykonaj \"Punch\"!"
183 msgstr "Wykonaj \"Punch\""
193184
194185 #: ../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."
207188
208189 #: ../examples/polkit-gnome-example.c:401
209190 msgid "Click to make changes..."
210 msgstr "Naciśnij, aby wprowadzić zmiany..."
191 msgstr "Kliknięcie dokona zmian..."
211192
212193 #: ../examples/polkit-gnome-example.c:402
213194 msgid "Click to prevent changes"
214 msgstr "Naciśnij, aby powstrzymać zmiany"
195 msgstr "Kliknięcie zapobiegnie zmianom"
215196
216197 #: ../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\""
223268
224269 #: ../polkit-gnome/polkit-gnome-toggle-action.c:400
225270 #: ../polkit-gnome/polkit-gnome-toggle-action.c:401
226271 msgid "Authenticating..."
227 msgstr "Upoważnianie..."
272 msgstr "Uwierzytelnianie..."
228273
229274 #: ../src/main.c:139
230275 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"
232277
233278 #: ../src/main.c:148
234279 msgid "PolicyKit GNOME session daemon"
235 msgstr "Demon sesji GNOME PolicyKit"
280 msgstr "Usługa sesji PolicyKit GNOME"
236281
237282 #: ../src/main.c:174
238283 #, c-format
239284 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
243288 #: ../tools/polkit-gnome-authorization.c:649
244289 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
248293 #: ../tools/polkit-gnome-authorization.c:665
249294 #, c-format
250295 msgid "%s (%s)"
251296 msgstr "%s (%s)"
252297
253 #: ../src/polkit-gnome-auth-dialog.c:292
298 #: ../src/polkit-gnome-auth-dialog.c:293
254299 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
258303 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
286319 #, c-format
287320 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
291324 #: ../tools/polkit-gnome-authorization.c:1391
292325 #, c-format
293326 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
297330 msgid "_Authenticate"
298331 msgstr "_Uwierzytelnij"
299332
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
301335 #: ../src/polkit-gnome-manager.c:735
302336 msgid "_Password:"
303337 msgstr "_Hasło:"
304338
305 #: ../src/polkit-gnome-auth-dialog.c:681
339 #: ../src/polkit-gnome-auth-dialog.c:749
306340 msgid "For this _session only"
307341 msgstr "Tylko dla tej _sesji"
308342
309 #: ../src/polkit-gnome-auth-dialog.c:689
343 #: ../src/polkit-gnome-auth-dialog.c:757
310344 msgid "<small><b>_Details</b></small>"
311345 msgstr "<small><b>S_zczegóły</b></small>"
312346
313 #: ../src/polkit-gnome-auth-dialog.c:710
347 #: ../src/polkit-gnome-auth-dialog.c:778
314348 msgid "<small><b>Application:</b></small>"
315349 msgstr "<small><b>Program:</b></small>"
316350
317 #: ../src/polkit-gnome-auth-dialog.c:714
351 #: ../src/polkit-gnome-auth-dialog.c:782
318352 msgid "<small><b>Action:</b></small>"
319353 msgstr "<small><b>Działanie:</b></small>"
320354
321 #: ../src/polkit-gnome-auth-dialog.c:719
355 #: ../src/polkit-gnome-auth-dialog.c:787
322356 msgid "<small><b>Vendor:</b></small>"
323357 msgstr "<small><b>Dostawca:</b></small>"
324358
325 #: ../src/polkit-gnome-auth-dialog.c:848
359 #: ../src/polkit-gnome-auth-dialog.c:916
326360 msgid "Authenticate"
327 msgstr "Upoważnij"
361 msgstr "Uwierzytelnianie"
328362
329363 #: ../src/polkit-gnome-manager.c:367
330364 msgid "(unknown"
331 msgstr "(nieznane"
365 msgstr "(nieznany"
332366
333367 #: ../src/polkit-gnome-manager.c:730
334368 #, c-format
337371
338372 #: ../src/polkit-gnome-manager.c:732
339373 msgid "_Password for root:"
340 msgstr "_Hasło użytkownika root:"
374 msgstr "_Hasło administratora:"
341375
342376 #: ../src/polkit-gnome-manager.c:740
343377 #, c-format
344378 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:"
346380
347381 #: ../src/polkit-gnome-manager.c:743
348382 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:"
350384
351385 #: ../src/polkit-gnome-manager.c:746
352386 msgid "_Password or swipe finger:"
353 msgstr "_Hasło lub odcisk palca:"
387 msgstr "_Hasło lub odczyt linii papilarnych:"
354388
355389 #: ../tools/polkit-gnome-authorization.c:117
356390 msgid "No"
358392
359393 #: ../tools/polkit-gnome-authorization.c:119
360394 msgid "Admin Authentication (one shot)"
361 msgstr "Uwierzytelnienie administratora (jeden raz)"
395 msgstr "Uwierzytelnienie administratora (pojedyncze)"
362396
363397 #: ../tools/polkit-gnome-authorization.c:120
364398 msgid "Admin Authentication"
366400
367401 #: ../tools/polkit-gnome-authorization.c:121
368402 msgid "Admin Authentication (keep session)"
369 msgstr "Uwierzytelnienie administratora (zatrzymaj sesję)"
403 msgstr "Uwierzytelnienie administratora (na czas sesji)"
370404
371405 #: ../tools/polkit-gnome-authorization.c:122
372406 msgid "Admin Authentication (keep indefinitely)"
373 msgstr "Uwierzytelnienie administratora (zatrzymaj w nieskończoność)"
407 msgstr "Uwierzytelnienie administratora (na czas nieokreślony)"
374408
375409 #: ../tools/polkit-gnome-authorization.c:124
376410 msgid "Authentication (one shot)"
377 msgstr "Uwierzytelnienie (jeden raz)"
411 msgstr "Uwierzytelnienie (pojedyncze)"
378412
379413 #: ../tools/polkit-gnome-authorization.c:125
380414 msgid "Authentication"
382416
383417 #: ../tools/polkit-gnome-authorization.c:126
384418 msgid "Authentication (keep session)"
385 msgstr "Uwierzytelnienie (zatrzymaj sesję)"
419 msgstr "Uwierzytelnienie (na czas sesji)"
386420
387421 #: ../tools/polkit-gnome-authorization.c:127
388422 msgid "Authentication (keep indefinitely)"
389 msgstr "Uwierzytelnienie (zatrzymaj w nieskończoność)"
423 msgstr "Uwierzytelnienie (na czas nieokreślony)"
390424
391425 #: ../tools/polkit-gnome-authorization.c:129
392426 msgid "Yes"
398432
399433 #: ../tools/polkit-gnome-authorization.c:276
400434 msgid "Must be on console"
401 msgstr "Musi być na konsoli"
435 msgstr "Musi być w konsoli"
402436
403437 #: ../tools/polkit-gnome-authorization.c:279
404438 msgid "Must be in active session"
407441 #: ../tools/polkit-gnome-authorization.c:282
408442 #, c-format
409443 msgid "Must be program %s"
410 msgstr "Musi być programem %s"
444 msgstr "Musi być program %s"
411445
412446 #: ../tools/polkit-gnome-authorization.c:286
413447 #, c-format
414448 msgid "Must be SELinux Context %s"
415 msgstr "Musi być kontekstem SELinuksa %s"
449 msgstr "Musi być kontekst SELinux %s"
416450
417451 #: ../tools/polkit-gnome-authorization.c:344
418452 msgid "A moment ago"
419 msgstr "Chwilę temu"
453 msgstr "Przed chwilą"
420454
421455 #: ../tools/polkit-gnome-authorization.c:348
422456 msgid "1 minute ago"
423 msgstr "Minutę temu"
457 msgstr "1 minutę temu"
424458
425459 #: ../tools/polkit-gnome-authorization.c:350
426460 #, c-format
429463
430464 #: ../tools/polkit-gnome-authorization.c:354
431465 msgid "1 hour ago"
432 msgstr "Godzinę temu"
466 msgstr "1 godzinę temu"
433467
434468 #: ../tools/polkit-gnome-authorization.c:356
435469 #, c-format
438472
439473 #: ../tools/polkit-gnome-authorization.c:360
440474 msgid "1 day ago"
441 msgstr "Jeden dzień temu"
475 msgstr "1 dzień temu"
442476
443477 #: ../tools/polkit-gnome-authorization.c:362
444478 #, c-format
448482 #: ../tools/polkit-gnome-authorization.c:379
449483 #, c-format
450484 msgid "Auth as %s (uid %d)"
451 msgstr "Uwierzytelnij jako %s (UID %d)"
485 msgstr "Uwierzytelnianie jako %s (uid %d)"
452486
453487 #: ../tools/polkit-gnome-authorization.c:381
454488 #, c-format
455489 msgid "Auth as uid %d"
456 msgstr "Uwierzytelnij jako UID %d"
490 msgstr "Uwierzytelnianie jako uid %d"
457491
458492 #: ../tools/polkit-gnome-authorization.c:387
459493 #, c-format
460494 msgid "Blocked by %s (uid %d)"
461 msgstr "Zablokowane przez %s (UID %d)"
495 msgstr "Zablokowany przez %s (uid %d)"
462496
463497 #: ../tools/polkit-gnome-authorization.c:389
464498 #, c-format
465499 msgid "Blocked by uid %d"
466 msgstr "Zablokowane przez UID %d"
500 msgstr "Zablokowany przez uid %d"
467501
468502 #: ../tools/polkit-gnome-authorization.c:392
469503 #, c-format
470504 msgid "Granted by %s (uid %d)"
471 msgstr "Udzielił %s (UID %d)"
505 msgstr "Nadany przez %s (uid %d)"
472506
473507 #: ../tools/polkit-gnome-authorization.c:394
474508 #, c-format
475509 msgid "Granted by uid %d"
476 msgstr "Udzielił UID %d"
510 msgstr "Nadany przez uid %d"
477511
478512 #: ../tools/polkit-gnome-authorization.c:409
479513 #, c-format
480514 msgid "Single shot pid %d (%s)"
481 msgstr "Jeden raz PID %d (%s)"
515 msgstr "Pojedynczy pid %d (%s)"
482516
483517 #: ../tools/polkit-gnome-authorization.c:415
484518 #, c-format
485519 msgid "pid %d (%s)"
486 msgstr "PID %d (%s)"
520 msgstr "pid %d (%s)"
487521
488522 #: ../tools/polkit-gnome-authorization.c:418
489523 msgid "This session"
490 msgstr "Ta sesja"
524 msgstr "Na czas tej sesji"
491525
492526 #: ../tools/polkit-gnome-authorization.c:421
493527 msgid "Always"
499533
500534 #: ../tools/polkit-gnome-authorization.c:827
501535 msgid "Grant Negative Authorization"
502 msgstr "Udziel upoważnienie negatywne"
536 msgstr "Nadanie upoważnienia przeciwnego"
503537
504538 #: ../tools/polkit-gnome-authorization.c:827
505539 msgid "Grant Authorization"
506 msgstr "Udziel upoważnienie"
540 msgstr "Nadanie upoważnienia"
507541
508542 #: ../tools/polkit-gnome-authorization.c:850
509543 #, 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>"
516546
517547 #: ../tools/polkit-gnome-authorization.c:851
518548 #, 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>"
525551
526552 #: ../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."
533555
534556 #: ../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."
541559
542560 #: ../tools/polkit-gnome-authorization.c:875
543561 msgid "<b>Beneficiary</b>"
545563
546564 #: ../tools/polkit-gnome-authorization.c:887
547565 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."
549567
550568 #: ../tools/polkit-gnome-authorization.c:889
551569 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."
553571
554572 #: ../tools/polkit-gnome-authorization.c:898
555573 msgid "_Show system users"
556 msgstr "Wyświetl użytkowników _systemowych"
574 msgstr "_Wyświetlanie użytkowników systemowych"
557575
558576 #: ../tools/polkit-gnome-authorization.c:913
559577 msgid "<b>Constraints</b>"
560578 msgstr "<b>Ograniczenia</b>"
561579
562580 #: ../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."
569583
570584 #: ../tools/polkit-gnome-authorization.c:930
571585 msgid "_None"
573587
574588 #: ../tools/polkit-gnome-authorization.c:932
575589 msgid "Must be _in active session"
576 msgstr "Mus_i być w aktywnej sesji"
590 msgstr "Musi być w aktywnej ses_ji"
577591
578592 #: ../tools/polkit-gnome-authorization.c:934
579593 msgid "Must be on _local console"
580 msgstr "Musi być na _lokalnej konsoli"
594 msgstr "Musi być w _lokalnej konsoli"
581595
582596 #: ../tools/polkit-gnome-authorization.c:936
583597 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"
585599
586600 #: ../tools/polkit-gnome-authorization.c:957
587601 #: ../tools/polkit-gnome-authorization.c:2133
591605 #: ../tools/polkit-gnome-authorization.c:961
592606 #: ../tools/polkit-gnome-authorization.c:2126
593607 msgid "_Grant..."
594 msgstr "_Udziel..."
608 msgstr "_Nadaj..."
595609
596610 #: ../tools/polkit-gnome-authorization.c:1155
597611 msgid "Edit Implicit Authorizations"
598 msgstr "Zmodyfikuj niejawne upoważnienia"
612 msgstr "Zmiany upoważnień bezwględnych"
599613
600614 #: ../tools/polkit-gnome-authorization.c:1176
601615 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>"
603617
604618 #: ../tools/polkit-gnome-authorization.c:1190
605619 #, 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>."
613622
614623 #: ../tools/polkit-gnome-authorization.c:1215
615624 #: ../tools/polkit-gnome-authorization.c:1974
616625 msgid "<i>Anyone:</i>"
617 msgstr "<i>Każdy:</i>"
626 msgstr "<i>Ktokolwiek:</i>"
618627
619628 #: ../tools/polkit-gnome-authorization.c:1222
620629 #: ../tools/polkit-gnome-authorization.c:1978
628637
629638 #: ../tools/polkit-gnome-authorization.c:1258
630639 msgid "_Modify..."
631 msgstr "Z_modyfikuj..."
640 msgstr "_Zmień..."
632641
633642 #: ../tools/polkit-gnome-authorization.c:1890
634643 msgid "<b>Action</b>"
648657
649658 #: ../tools/polkit-gnome-authorization.c:1951
650659 msgid "<b>Implicit Authorizations</b>"
651 msgstr "<b>Niejawne upoważnienia</b>"
660 msgstr "<b>Upoważnienia bezwzględne</b>"
652661
653662 #: ../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ą"
660665
661666 #: ../tools/polkit-gnome-authorization.c:2002
662667 msgid "_Edit..."
663 msgstr "_Edycja..."
668 msgstr "_Zmień..."
664669
665670 #: ../tools/polkit-gnome-authorization.c:2009
666671 msgid "Revert To _Defaults..."
667 msgstr "Przywróć _domyślne..."
672 msgstr "Powrót do _domyślnych..."
668673
669674 #: ../tools/polkit-gnome-authorization.c:2032
670675 msgid "<b>Explicit Authorizations</b>"
671 msgstr "<b>Jawne upoważnienia</b>"
676 msgstr "<b>Upoważnienia wyraźne</b>"
672677
673678 #: ../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."
682681
683682 #: ../tools/polkit-gnome-authorization.c:2073
684683 msgid "Entity"
685 msgstr "Jednostka"
684 msgstr "Podmiot"
686685
687686 #: ../tools/polkit-gnome-authorization.c:2081
688687 msgid "Scope"
689 msgstr "Zasięg"
688 msgstr "Zakres"
690689
691690 #: ../tools/polkit-gnome-authorization.c:2089
692691 msgid "Obtained"
703702 #: ../tools/polkit-gnome-authorization.c:2147
704703 #: ../tools/polkit-gnome-authorization.c:2161
705704 msgid "_Revoke"
706 msgstr "_Odbierz"
705 msgstr "_Unieważnij"
707706
708707 #: ../tools/polkit-gnome-authorization.c:2154
709708 msgid "_Revoke..."
710 msgstr "_Odbierz..."
709 msgstr "_Unieważnij..."
711710
712711 #: ../tools/polkit-gnome-authorization.c:2174
713712 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..."
715714
716715 #: ../tools/polkit-gnome-authorization.c:2175
717716 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"
719718
720719 #: ../tools/polkit-gnome-authorization.c:2417
721720 msgid "Select an action"
722721 msgstr "Wybór działania"
723722
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\""
66 msgstr ""
77 "Project-Id-Version: policykit-gnome\n"
88 "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"
1111 "Last-Translator: António Lima <amrlima@gmail.com>\n"
1212 "Language-Team: Portuguese <gnome_pt@yahoogroups.com>\n"
1313 "MIME-Version: 1.0\n"
2727
2828 #: ../data/polkit-gnome.schemas.in.h:1
2929 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 ""
3052 "If set to true, the authentication dialog from PolicyKit-gnome will grab the "
3153 "keyboard, so that you will not be able to type in other programs while the "
3254 "dialog is active. Use this if your window manager does not focus the "
4062 "de autenticação, e deseja evitar introduzir acidentalmente a sua senha "
4163 "noutra aplicação."
4264
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
4478 msgid "Whether the authentication dialog should grab the keyboard"
4579 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"
4685
4786 #: ../examples/polkit-gnome-example.c:137
4887 msgid "Copyright © 2007 David Zeuthen"
187226 "authenticated, this privilege can be retained for the remainder of the "
188227 "desktop session."
189228 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."
193231
194232 #: ../examples/polkit-gnome-example.c:372
195233 msgid "Punch!"
205243 msgstr ""
206244 "A acção <b>Alternar</b> demonstra a utilização do PolicyKit para dirigir um "
207245 "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. "
210248 "Alternar o botão significa revogar a autorização em questão."
211249
212250 #: ../examples/polkit-gnome-example.c:401
243281 msgid "Starting PolicyKit GNOME session daemon version %s"
244282 msgstr "A iniciar o daemon de sessão do PolicyKit GNOME, versão %s"
245283
246 #: ../src/polkit-gnome-auth-dialog.c:190
284 #: ../src/polkit-gnome-auth-dialog.c:191
247285 #: ../tools/polkit-gnome-authorization.c:649
248286 msgid "Select user..."
249287 msgstr "Seleccionar utilizador..."
250288
251 #: ../src/polkit-gnome-auth-dialog.c:211
289 #: ../src/polkit-gnome-auth-dialog.c:212
252290 #: ../tools/polkit-gnome-authorization.c:665
253291 #, c-format
254292 msgid "%s (%s)"
255293 msgstr "%s (%s)"
256294
257 #: ../src/polkit-gnome-auth-dialog.c:292
295 #: ../src/polkit-gnome-auth-dialog.c:293
258296 msgid "_Remember authorization for this session"
259297 msgstr "_Recordar autorização para esta sessão"
260298
261 #: ../src/polkit-gnome-auth-dialog.c:298
299 #: ../src/polkit-gnome-auth-dialog.c:299
262300 msgid "_Remember authorization"
263301 msgstr "_Recordar autorização"
264302
265 #: ../src/polkit-gnome-auth-dialog.c:313
303 #: ../src/polkit-gnome-auth-dialog.c:314
266304 msgid ""
267305 "An application is attempting to perform an action that requires privileges. "
268306 "Authentication as one of the users below is required to perform this action."
271309 "necessária uma autenticação como um dos utilizadores para executar esta "
272310 "acção."
273311
274 #: ../src/polkit-gnome-auth-dialog.c:320
312 #: ../src/polkit-gnome-auth-dialog.c:321
275313 msgid ""
276314 "An application is attempting to perform an action that requires privileges. "
277315 "Authentication as the super user is required to perform this action."
279317 "Uma aplicação está a tentar executar uma acção que requer privilégios. É "
280318 "necessária autenticação como super utilizador para executar esta acção."
281319
282 #: ../src/polkit-gnome-auth-dialog.c:324
320 #: ../src/polkit-gnome-auth-dialog.c:325
283321 msgid ""
284322 "An application is attempting to perform an action that requires privileges. "
285323 "Authentication is required to perform this action."
287325 "Uma aplicação está a tentar executar uma acção que requer privilégios. É "
288326 "necessária autenticação para executar esta acção."
289327
290 #: ../src/polkit-gnome-auth-dialog.c:348
328 #: ../src/polkit-gnome-auth-dialog.c:406
291329 #, c-format
292330 msgid "Click to edit %s"
293331 msgstr "Clique para editar %s"
294332
295 #: ../src/polkit-gnome-auth-dialog.c:371
333 #: ../src/polkit-gnome-auth-dialog.c:431
296334 #: ../tools/polkit-gnome-authorization.c:1391
297335 #, c-format
298336 msgid "Click to open %s"
299337 msgstr "Clique para abrir %s"
300338
301 #: ../src/polkit-gnome-auth-dialog.c:600
339 #: ../src/polkit-gnome-auth-dialog.c:668
302340 msgid "_Authenticate"
303341 msgstr "_Autenticar"
304342
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
306344 #: ../src/polkit-gnome-manager.c:735
307345 msgid "_Password:"
308346 msgstr "_Senha:"
309347
310 #: ../src/polkit-gnome-auth-dialog.c:681
348 #: ../src/polkit-gnome-auth-dialog.c:749
311349 msgid "For this _session only"
312350 msgstr "Apenas para esta _sessão"
313351
314 #: ../src/polkit-gnome-auth-dialog.c:689
352 #: ../src/polkit-gnome-auth-dialog.c:757
315353 msgid "<small><b>_Details</b></small>"
316354 msgstr "<small><b>_Detalhes</b></small>"
317355
318 #: ../src/polkit-gnome-auth-dialog.c:710
356 #: ../src/polkit-gnome-auth-dialog.c:778
319357 msgid "<small><b>Application:</b></small>"
320358 msgstr "<small><b>Aplicação:</b></small>"
321359
322 #: ../src/polkit-gnome-auth-dialog.c:714
360 #: ../src/polkit-gnome-auth-dialog.c:782
323361 msgid "<small><b>Action:</b></small>"
324362 msgstr "<small><b>Acção:</b></small>"
325363
326 #: ../src/polkit-gnome-auth-dialog.c:719
364 #: ../src/polkit-gnome-auth-dialog.c:787
327365 msgid "<small><b>Vendor:</b></small>"
328366 msgstr "<small><b>Fornecedor:</b></small>"
329367
330 #: ../src/polkit-gnome-auth-dialog.c:848
368 #: ../src/polkit-gnome-auth-dialog.c:916
331369 msgid "Authenticate"
332370 msgstr "Autenticar"
333371
77 msgstr ""
88 "Project-Id-Version: policykit-gnome\n"
99 "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"
1212 "Last-Translator: Igor Pires Soares <igor@projetofedora.org>\n"
1313 "Language-Team: gnome-l10n-br <gnome-l10n-br@listas.cipsga.org.br>\n"
1414 "MIME-Version: 1.0\n"
2929
3030 #: ../data/polkit-gnome.schemas.in.h:1
3131 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 ""
3255 "If set to true, the authentication dialog from PolicyKit-gnome will grab the "
3356 "keyboard, so that you will not be able to type in other programs while the "
3457 "dialog is active. Use this if your window manager does not focus the "
4164 "janelas não der o foco no diálogo de autenticação automaticamente e você "
4265 "você deseja evitar digitar acidentalmente a senha em outros programas."
4366
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
4581 msgid "Whether the authentication dialog should grab the keyboard"
4682 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"
4789
4890 #: ../examples/polkit-gnome-example.c:137
4991 msgid "Copyright © 2007 David Zeuthen"
336378 msgid "Starting PolicyKit GNOME session daemon version %s"
337379 msgstr "Iniciando o PolicyKit GNOME session daemon versão %s"
338380
339 #: ../src/polkit-gnome-auth-dialog.c:190
381 #: ../src/polkit-gnome-auth-dialog.c:191
340382 #: ../tools/polkit-gnome-authorization.c:649
341383 msgid "Select user..."
342384 msgstr "Escolha um usuário..."
343385
344 #: ../src/polkit-gnome-auth-dialog.c:211
386 #: ../src/polkit-gnome-auth-dialog.c:212
345387 #: ../tools/polkit-gnome-authorization.c:665
346388 #, c-format
347389 msgid "%s (%s)"
348390 msgstr "%s (%s)"
349391
350 #: ../src/polkit-gnome-auth-dialog.c:292
392 #: ../src/polkit-gnome-auth-dialog.c:293
351393 msgid "_Remember authorization for this session"
352394 msgstr "_Lembrar autorização para esta sessão"
353395
354 #: ../src/polkit-gnome-auth-dialog.c:298
396 #: ../src/polkit-gnome-auth-dialog.c:299
355397 msgid "_Remember authorization"
356398 msgstr "_Lembrar autorização"
357399
358 #: ../src/polkit-gnome-auth-dialog.c:313
400 #: ../src/polkit-gnome-auth-dialog.c:314
359401 msgid ""
360402 "An application is attempting to perform an action that requires privileges. "
361403 "Authentication as one of the users below is required to perform this action."
364406 "necessária uma autenticação como um dos usuários abaixo para executar esta "
365407 "ação."
366408
367 #: ../src/polkit-gnome-auth-dialog.c:320
409 #: ../src/polkit-gnome-auth-dialog.c:321
368410 msgid ""
369411 "An application is attempting to perform an action that requires privileges. "
370412 "Authentication as the super user is required to perform this action."
372414 "Um aplicativo está tentando executar uma ação que requer privilégios. É "
373415 "necessária uma autenticação como superusuário para executar esta ação."
374416
375 #: ../src/polkit-gnome-auth-dialog.c:324
417 #: ../src/polkit-gnome-auth-dialog.c:325
376418 msgid ""
377419 "An application is attempting to perform an action that requires privileges. "
378420 "Authentication is required to perform this action."
380422 "Um aplicativo está tentando executar uma ação que requer privilégios. É "
381423 "necessária uma autenticação para executar esta ação."
382424
383 #: ../src/polkit-gnome-auth-dialog.c:348
425 #: ../src/polkit-gnome-auth-dialog.c:406
384426 #, c-format
385427 msgid "Click to edit %s"
386428 msgstr "Clique para editar %s"
387429
388 #: ../src/polkit-gnome-auth-dialog.c:371
430 #: ../src/polkit-gnome-auth-dialog.c:431
389431 #: ../tools/polkit-gnome-authorization.c:1391
390432 #, c-format
391433 msgid "Click to open %s"
392434 msgstr "Clique para abrir %s"
393435
394 #: ../src/polkit-gnome-auth-dialog.c:608
436 #: ../src/polkit-gnome-auth-dialog.c:668
395437 msgid "_Authenticate"
396438 msgstr "_Autenticar"
397439
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
399441 #: ../src/polkit-gnome-manager.c:735
400442 msgid "_Password:"
401443 msgstr "_Senha:"
402444
403 #: ../src/polkit-gnome-auth-dialog.c:689
445 #: ../src/polkit-gnome-auth-dialog.c:749
404446 msgid "For this _session only"
405447 msgstr "Apenas para esta _sessão"
406448
407 #: ../src/polkit-gnome-auth-dialog.c:697
449 #: ../src/polkit-gnome-auth-dialog.c:757
408450 msgid "<small><b>_Details</b></small>"
409451 msgstr "<small><b>_Detalhes</b></small>"
410452
411 #: ../src/polkit-gnome-auth-dialog.c:718
453 #: ../src/polkit-gnome-auth-dialog.c:778
412454 msgid "<small><b>Application:</b></small>"
413455 msgstr "<small><b>Aplicativo:</b></small>"
414456
415 #: ../src/polkit-gnome-auth-dialog.c:722
457 #: ../src/polkit-gnome-auth-dialog.c:782
416458 msgid "<small><b>Action:</b></small>"
417459 msgstr "<small><b>Ação:</b></small>"
418460
419 #: ../src/polkit-gnome-auth-dialog.c:727
461 #: ../src/polkit-gnome-auth-dialog.c:787
420462 msgid "<small><b>Vendor:</b></small>"
421463 msgstr "<small><b>Fornecedor:</b></small>"
422464
423 #: ../src/polkit-gnome-auth-dialog.c:856
465 #: ../src/polkit-gnome-auth-dialog.c:916
424466 msgid "Authenticate"
425467 msgstr "Autenticar"
426468
128128 F77 = @F77@
129129 FFLAGS = @FFLAGS@
130130 GCONFTOOL = @GCONFTOOL@
131 GCONF_CFLAGS = @GCONF_CFLAGS@
132 GCONF_LIBS = @GCONF_LIBS@
131133 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
132134 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
133135 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
134136 GMOFILES = @GMOFILES@
135137 GMSGFMT = @GMSGFMT@
136 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
137 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
138138 GREP = @GREP@
139139 GTKDOC_CHECK = @GTKDOC_CHECK@
140140 GTK_CFLAGS = @GTK_CFLAGS@
210210 RANLIB = @RANLIB@
211211 SED = @SED@
212212 SET_MAKE = @SET_MAKE@
213 SEXY_CFLAGS = @SEXY_CFLAGS@
214 SEXY_LIBS = @SEXY_LIBS@
215213 SHELL = @SHELL@
216214 STRIP = @STRIP@
217215 USE_NLS = @USE_NLS@
333333 * user. By toggling the action again, the negative authorization will
334334 * be revoked.
335335 *
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'
337337 * 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
339339 * will be 'locked_label' everywhere except in the YES state where
340340 * it's set to 'unlocked-label'. When authentication is underway, the
341341 * label will be "Authenticating..." and icon_name is untouched. If
371371 "self-blocked-short-label", locked_label,
372372 "self-blocked-label", locked_label,
373373 "self-blocked-tooltip", NULL,
374 "self-blocked-icon-name", "stock_lock",
374 "self-blocked-icon-name", "security-medium",
375375
376376 "no-visible", TRUE,
377377 "no-sensitive", FALSE,
378378 "no-short-label", locked_label,
379379 "no-label", locked_label,
380380 "no-tooltip", NULL,
381 "no-icon-name", "stock_lock",
381 "no-icon-name", "security-medium",
382382
383383 "auth-visible", TRUE,
384384 "auth-sensitive", TRUE,
385385 "auth-short-label", locked_label,
386386 "auth-label", locked_label,
387387 "auth-tooltip", NULL,
388 "auth-icon-name", "stock_lock",
388 "auth-icon-name", "security-medium",
389389
390390 "yes-visible", TRUE,
391391 "yes-sensitive", TRUE,
392392 "yes-short-label", unlocked_label,
393393 "yes-label", unlocked_label,
394394 "yes-tooltip", NULL,
395 "yes-icon-name", "stock_lock-open",
395 "yes-icon-name", "security-low",
396396
397397 "auth-underway-visible", TRUE,
398398 "auth-underway-sensitive", TRUE,
399399 "auth-underway-short-label", _("Authenticating..."),
400400 "auth-underway-label", _("Authenticating..."),
401401 "auth-underway-tooltip", NULL,
402 "auth-underway-icon-name", "stock_lock",
402 "auth-underway-icon-name", "security-medium",
403403
404404 "master-visible", TRUE,
405405 "master-sensitive", TRUE,
407407 return toggle_action;
408408 }
409409
410 /*----------------------------------------------------------------------------------------------------*/
410 /*---------------------------------------------------------------------------------security-medium-------------------*/
411411
412412 static void
413413 polkit_gnome_toggle_action_set_auth_underway_visible (PolKitGnomeToggleAction *action, gboolean visible)
99 polkit_gnome_manager_SOURCES = \
1010 polkit-gnome-manager.h polkit-gnome-manager.c \
1111 polkit-gnome-auth-dialog.h polkit-gnome-auth-dialog.c \
12 sexy-url-label.h sexy-url-label.c \
1213 main.c \
1314 $(BUILT_SOURCES)
1415
2223
2324 polkit_gnome_manager_CFLAGS = \
2425 $(GTK_CFLAGS) \
25 $(SEXY_CFLAGS) \
26 $(GNOME_VFS_CFLAGS) \
26 $(GCONF_CFLAGS) \
2727 $(DBUS_GLIB_CFLAGS) \
2828 $(POLKIT_DBUS_CFLAGS) \
2929 $(POLKIT_GRANT_CFLAGS) \
3535
3636 polkit_gnome_manager_LDADD = \
3737 $(GTK_LIBS) \
38 $(SEXY_LIBS) \
39 $(GNOME_VFS_LIBS) \
38 $(GCONF_LIBS) \
4039 $(DBUS_GLIB_LIBS) \
4140 $(POLKIT_DBUS_LIBS) \
4241 $(POLKIT_GRANT_LIBS) \
4848 am_polkit_gnome_manager_OBJECTS = \
4949 polkit_gnome_manager-polkit-gnome-manager.$(OBJEXT) \
5050 polkit_gnome_manager-polkit-gnome-auth-dialog.$(OBJEXT) \
51 polkit_gnome_manager-sexy-url-label.$(OBJEXT) \
5152 polkit_gnome_manager-main.$(OBJEXT) $(am__objects_1)
5253 polkit_gnome_manager_OBJECTS = $(am_polkit_gnome_manager_OBJECTS)
5354 am__DEPENDENCIES_1 =
5455 polkit_gnome_manager_DEPENDENCIES = $(am__DEPENDENCIES_1) \
5556 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
5657 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
57 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
58 $(am__DEPENDENCIES_1)
5859 polkit_gnome_manager_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
5960 $(LIBTOOLFLAGS) --mode=link $(CCLD) \
6061 $(polkit_gnome_manager_CFLAGS) $(CFLAGS) \
119120 F77 = @F77@
120121 FFLAGS = @FFLAGS@
121122 GCONFTOOL = @GCONFTOOL@
123 GCONF_CFLAGS = @GCONF_CFLAGS@
124 GCONF_LIBS = @GCONF_LIBS@
122125 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
123126 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
124127 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
125128 GMOFILES = @GMOFILES@
126129 GMSGFMT = @GMSGFMT@
127 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
128 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
129130 GREP = @GREP@
130131 GTKDOC_CHECK = @GTKDOC_CHECK@
131132 GTK_CFLAGS = @GTK_CFLAGS@
201202 RANLIB = @RANLIB@
202203 SED = @SED@
203204 SET_MAKE = @SET_MAKE@
204 SEXY_CFLAGS = @SEXY_CFLAGS@
205 SEXY_LIBS = @SEXY_LIBS@
206205 SHELL = @SHELL@
207206 STRIP = @STRIP@
208207 USE_NLS = @USE_NLS@
267266 polkit_gnome_manager_SOURCES = \
268267 polkit-gnome-manager.h polkit-gnome-manager.c \
269268 polkit-gnome-auth-dialog.h polkit-gnome-auth-dialog.c \
269 sexy-url-label.h sexy-url-label.c \
270270 main.c \
271271 $(BUILT_SOURCES)
272272
280280
281281 polkit_gnome_manager_CFLAGS = \
282282 $(GTK_CFLAGS) \
283 $(SEXY_CFLAGS) \
284 $(GNOME_VFS_CFLAGS) \
283 $(GCONF_CFLAGS) \
285284 $(DBUS_GLIB_CFLAGS) \
286285 $(POLKIT_DBUS_CFLAGS) \
287286 $(POLKIT_GRANT_CFLAGS) \
293292
294293 polkit_gnome_manager_LDADD = \
295294 $(GTK_LIBS) \
296 $(SEXY_LIBS) \
297 $(GNOME_VFS_LIBS) \
295 $(GCONF_LIBS) \
298296 $(DBUS_GLIB_LIBS) \
299297 $(POLKIT_DBUS_LIBS) \
300298 $(POLKIT_GRANT_LIBS) \
377375 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_manager-main.Po@am__quote@
378376 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_manager-polkit-gnome-auth-dialog.Po@am__quote@
379377 @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@
380379
381380 .c.o:
382381 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
426425 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkit-gnome-auth-dialog.c' object='polkit_gnome_manager-polkit-gnome-auth-dialog.obj' libtool=no @AMDEPBACKSLASH@
427426 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428427 @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`
429442
430443 polkit_gnome_manager-main.o: main.c
431444 @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
3131 #include <stdlib.h>
3232 #include <pwd.h>
3333 #include <errno.h>
34 #include <libsexy/sexy.h>
35 #include <libgnomevfs/gnome-vfs-utils.h>
3634 #include <gconf/gconf-client.h>
3735
3836 #include <glib/gi18n-lib.h>
4038 #include <dbus/dbus-glib.h>
4139 #include <dbus/dbus-glib-lowlevel.h>
4240
41 #include "sexy-url-label.h"
4342 #include "polkit-gnome-auth-dialog.h"
4443
4544 struct _PolkitGnomeAuthDialogPrivate
609608 vendor_url_activated (SexyUrlLabel *url_label, char *url, gpointer user_data)
610609 {
611610 if (url != NULL) {
612 gnome_vfs_url_show (url);
611 gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL);
613612 }
614613 }
615614
5252 #endif /* !G_ENABLE_DEBUG */
5353
5454
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) */
5656 extern void dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_POINTER (GClosure *closure,
5757 GValue *return_value,
5858 guint n_param_values,
9898 }
9999 #define dbus_glib_marshal_polkit_gnome_manager_NONE__STRING_UINT_POINTER dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_POINTER
100100
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) */
102102 extern void dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_UINT_POINTER (GClosure *closure,
103103 GValue *return_value,
104104 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_ */
00
11 bin_PROGRAMS = polkit-gnome-authorization
22
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
56
67 polkit_gnome_authorization_CPPFLAGS = \
78 -I$(top_srcdir) \
1314
1415 polkit_gnome_authorization_CFLAGS = \
1516 $(GTK_CFLAGS) \
16 $(SEXY_CFLAGS) \
17 $(GNOME_VFS_CFLAGS) \
17 $(GCONF_CFLAGS) \
1818 $(DBUS_GLIB_CFLAGS) \
1919 $(POLKIT_DBUS_CFLAGS) \
2020 $(POLKIT_GRANT_CFLAGS) \
2626
2727 polkit_gnome_authorization_LDADD = \
2828 $(GTK_LIBS) \
29 $(SEXY_LIBS) \
30 $(GNOME_VFS_LIBS) \
29 $(GCONF_LIBS) \
3130 $(DBUS_GLIB_LIBS) \
3231 $(POLKIT_DBUS_LIBS) \
3332 $(POLKIT_GRANT_LIBS) \
4444 am__installdirs = "$(DESTDIR)$(bindir)"
4545 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
4646 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)
4849 polkit_gnome_authorization_OBJECTS = \
4950 $(am_polkit_gnome_authorization_OBJECTS)
5051 am__DEPENDENCIES_1 =
5152 polkit_gnome_authorization_DEPENDENCIES = $(am__DEPENDENCIES_1) \
5253 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
5354 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
54 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
55 $(am__DEPENDENCIES_1) \
5556 $(top_builddir)/polkit-gnome/libpolkit-gnome.la
5657 polkit_gnome_authorization_LINK = $(LIBTOOL) --tag=CC \
5758 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
117118 F77 = @F77@
118119 FFLAGS = @FFLAGS@
119120 GCONFTOOL = @GCONFTOOL@
121 GCONF_CFLAGS = @GCONF_CFLAGS@
122 GCONF_LIBS = @GCONF_LIBS@
120123 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
121124 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
122125 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
123126 GMOFILES = @GMOFILES@
124127 GMSGFMT = @GMSGFMT@
125 GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
126 GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
127128 GREP = @GREP@
128129 GTKDOC_CHECK = @GTKDOC_CHECK@
129130 GTK_CFLAGS = @GTK_CFLAGS@
199200 RANLIB = @RANLIB@
200201 SED = @SED@
201202 SET_MAKE = @SET_MAKE@
202 SEXY_CFLAGS = @SEXY_CFLAGS@
203 SEXY_LIBS = @SEXY_LIBS@
204203 SHELL = @SHELL@
205204 STRIP = @STRIP@
206205 USE_NLS = @USE_NLS@
260259 top_builddir = @top_builddir@
261260 top_srcdir = @top_srcdir@
262261 polkit_gnome_authorization_SOURCES = \
263 polkit-gnome-authorization.c
262 polkit-gnome-authorization.c \
263 sexy-url-label.h sexy-url-label.c
264264
265265 polkit_gnome_authorization_CPPFLAGS = \
266266 -I$(top_srcdir) \
272272
273273 polkit_gnome_authorization_CFLAGS = \
274274 $(GTK_CFLAGS) \
275 $(SEXY_CFLAGS) \
276 $(GNOME_VFS_CFLAGS) \
275 $(GCONF_CFLAGS) \
277276 $(DBUS_GLIB_CFLAGS) \
278277 $(POLKIT_DBUS_CFLAGS) \
279278 $(POLKIT_GRANT_CFLAGS) \
285284
286285 polkit_gnome_authorization_LDADD = \
287286 $(GTK_LIBS) \
288 $(SEXY_LIBS) \
289 $(GNOME_VFS_LIBS) \
287 $(GCONF_LIBS) \
290288 $(DBUS_GLIB_LIBS) \
291289 $(POLKIT_DBUS_LIBS) \
292290 $(POLKIT_GRANT_LIBS) \
371369 -rm -f *.tab.c
372370
373371 @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@
374373
375374 .c.o:
376375 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
406405 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkit-gnome-authorization.c' object='polkit_gnome_authorization-polkit-gnome-authorization.obj' libtool=no @AMDEPBACKSLASH@
407406 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
408407 @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`
409422
410423 mostlyclean-libtool:
411424 -rm -f *.lo
3535 #include <dbus/dbus-glib.h>
3636 #include <dbus/dbus-glib-lowlevel.h>
3737 #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"
4040
4141 static GType boxed_pfe_type;
4242
13261326 summary_action_vendor_url_activated (SexyUrlLabel *url_label, char *url, gpointer user_data)
13271327 {
13281328 if (url != NULL) {
1329 gnome_vfs_url_show (url);
1329 gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL);
13301330 }
13311331 }
13321332
23782378 NULL);
23792379
23802380 namespace_pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
2381 "gnome-mime-application-x-archive",
2381 "package-x-generic",
23822382 24,
23832383 0,
23842384 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_ */