fix
leigh123linux
6 years ago
0 | SUBDIRS = libxapp po schemas files | |
0 | SUBDIRS = libxapp po schemas files docs | |
1 | 1 | |
2 | 2 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} |
3 | 3 |
31 | 31 | |
32 | 32 | m4_ifdef([AX_COMPILER_FLAGS], |
33 | 33 | [AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])]) |
34 | ||
35 | GTK_DOC_CHECK([1.0],[--flavour=no-tmpl]) | |
34 | 36 | |
35 | 37 | AC_ARG_ENABLE(deprecation_flags, |
36 | 38 | [AC_HELP_STRING([--enable-deprecation-flags], |
67 | 69 | AC_SUBST(XLIB_CFLAGS) |
68 | 70 | AC_SUBST(XLIB_LIBS) |
69 | 71 | |
72 | AC_ARG_ENABLE([gtk-doc], | |
73 | AC_HELP_STRING([--enable-gtk-doc], | |
74 | [use gtk-doc to build documentation [[default=yes]]]),, | |
75 | enable_gtk_doc=yes) | |
76 | ||
70 | 77 | dnl pkg-config dependency checks |
71 | 78 | |
72 | 79 | PKG_CHECK_MODULES(XAPP, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED |
91 | 98 | |
92 | 99 | AC_CONFIG_FILES([ |
93 | 100 | Makefile |
101 | docs/Makefile | |
102 | docs/reference/Makefile | |
94 | 103 | libxapp/Makefile |
95 | 104 | libxapp/xapp.pc |
96 | 105 | libxapp/xapp-uninstalled.pc |
16 | 16 | libglib2.0-dev (>= 2.37.3), |
17 | 17 | libgtk-3-dev (>= 3.3.16), |
18 | 18 | libx11-dev, |
19 | python, | |
19 | python3, | |
20 | 20 | yelp-tools, |
21 | 21 | libgnomekbd-dev |
22 | 22 | Standards-Version: 3.9.6 |
24 | 24 | Package: xapps-common |
25 | 25 | Architecture: all |
26 | 26 | Multi-Arch: foreign |
27 | Depends: ${misc:Depends}, ${python:Depends}, python3, python3-gi, inxi, xdg-utils, gist | |
27 | Depends: ${misc:Depends}, ${python3:Depends}, python3, python3-gi, inxi, xdg-utils, gist | |
28 | 28 | Description: Common files for XApp desktop apps |
29 | 29 | This package includes files that are shared between several XApp |
30 | 30 | apps (i18n files and configuration schemas). |
68 | 68 | Depends: libxapp1 (= ${binary:Version}), ${misc:Depends} |
69 | 69 | Description: XApp library - debug symbols |
70 | 70 | This package contains the symbols files needed to debug the XApp library. |
71 | ||
72 | Package: xapps-doc | |
73 | Section: doc | |
74 | Architecture: all | |
75 | Depends: ${misc:Depends}, devhelp | |
76 | Description: Libxapp documentation | |
77 | This package contains documentation for xapp library |
5 | 5 | DEB_PKG_CONFIG_LIBDIR=$(shell pkg-config gobject-introspection-1.0 --variable libdir | sed -e 's/.//') |
6 | 6 | |
7 | 7 | %: |
8 | dh $@ --parallel --with=autoreconf,gir,gnome,python2 | |
8 | dh $@ --parallel --with=autoreconf,gir,gnome,python3 | |
9 | 9 | |
10 | 10 | override_dh_gnome_clean: |
11 | 11 | dh_gnome_clean --no-control |
12 | ||
13 | override_dh_autoreconf: | |
14 | dh_autoreconf --as-needed ./autogen.sh | |
15 | ||
16 | override_dh_auto_configure: | |
17 | dh_auto_configure -- --enable-gtk-doc | |
12 | 18 | |
13 | 19 | override_dh_strip: |
14 | 20 | dh_strip --dbg-package=libxapp-dbg |
0 | /usr/share/gtk-doc⏎ |
0 | ## Process this file with automake to produce Makefile.in | |
1 | ||
2 | # see /gtk-doc/examples/Makefile.am | |
3 | ||
4 | # We require automake 1.6 at least. | |
5 | AUTOMAKE_OPTIONS = 1.6 | |
6 | ||
7 | # The name of the module, e.g. 'glib'. | |
8 | DOC_MODULE = xapp | |
9 | ||
10 | # The top-level XML file (SGML in the past). | |
11 | DOC_MAIN_SGML_FILE = xapp-docs.xml | |
12 | ||
13 | # The directory containing the source code. Relative to $(srcdir). | |
14 | DOC_SOURCE_DIR = $(top_srcdir)/libxapp | |
15 | ||
16 | # Extra options to supply to gtkdoc-scan. | |
17 | # e.g. SCAN_OPTIONS = --deprecated-guards="GTK_DISABLE_DEPRECATED" | |
18 | SCAN_OPTIONS = --rebuild-types | |
19 | ||
20 | # Extra options to supply to gtkdoc-mkdb. | |
21 | MKDB_OPTIONS = --xml-mode --output-format=xml | |
22 | ||
23 | # Used for dependencies. The docs will be rebuilt if any of these change. | |
24 | HFILE_GLOB = $(top_srcdir)/libxapp/*.h | |
25 | CFILE_GLOB = $(top_srcdir)/libxapp/*.c | |
26 | ||
27 | # Header files to ignore when scanning (These are internal to xed). | |
28 | IGNORE_HFILES = | |
29 | ||
30 | # Images to copy into HTML directory. | |
31 | HTML_IMAGES = | |
32 | ||
33 | # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). | |
34 | content_files = | |
35 | ||
36 | # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. | |
37 | # Only needed if you are using gtkdoc-scangobj to dynamically query widget | |
38 | # signals and properties. | |
39 | GTKDOC_CFLAGS = | |
40 | ||
41 | GTKDOC_LIBS = \ | |
42 | $(top_builddir)/libxapp/libxapp.la \ | |
43 | $(XAPP_LIBS) | |
44 | ||
45 | MAINTAINERCLEANFILES = xapp.types | |
46 | ||
47 | # This includes the standard gtk-doc make rules, copied by gtkdocize. | |
48 | include $(top_srcdir)/gtk-doc.make | |
49 | ||
50 | -include $(top_srcdir)/git.mk⏎ |
0 | <?xml version="1.0"?> | |
1 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" | |
2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" | |
3 | [ | |
4 | <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'"> | |
5 | <!ENTITY % gtkdocentities SYSTEM "xml/gtkdocentities.ent"> | |
6 | %gtkdocentities; | |
7 | ]> | |
8 | <book id="index"> | |
9 | <bookinfo> | |
10 | <title>Xapp Reference Manual</title> | |
11 | <releaseinfo> | |
12 | for &package_string;. | |
13 | </releaseinfo> | |
14 | </bookinfo> | |
15 | ||
16 | <chapter> | |
17 | <title>API reference</title> | |
18 | <xi:include href="xml/xapp-kbd-layout-controller.xml"/> | |
19 | <xi:include href="xml/xapp-monitor-blanker.xml"/> | |
20 | ||
21 | </chapter> | |
22 | <chapter id="object-tree"> | |
23 | <title>Object Hierarchy</title> | |
24 | <xi:include href="xml/tree_index.sgml"/> | |
25 | </chapter> | |
26 | <index id="api-index-full"> | |
27 | <title>API Index</title> | |
28 | <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include> | |
29 | </index> | |
30 | <index id="deprecated-api-index" role="deprecated"> | |
31 | <title>Index of deprecated API</title> | |
32 | <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include> | |
33 | </index> | |
34 | <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include> | |
35 | </book> |
10 | 10 | #include <glib/gi18n-lib.h> |
11 | 11 | |
12 | 12 | #include "xapp-monitor-blanker.h" |
13 | ||
14 | /** | |
15 | * SECTION:xapp-monitor-blanker | |
16 | * @Short_description: Blank and unblank unused monitors | |
17 | * @Title: XAppMonitorBlanker | |
18 | * | |
19 | * The XAppMonitorBlanker widget that creates one or more | |
20 | * POPUP type GtkWindows that are used to blank unused | |
21 | * monitors in multiple monitor setups. | |
22 | */ | |
13 | 23 | |
14 | 24 | struct _XAppMonitorBlankerPrivate |
15 | 25 | { |
56 | 66 | g_type_class_add_private (gobject_class, sizeof (XAppMonitorBlankerPrivate)); |
57 | 67 | } |
58 | 68 | |
69 | /** | |
70 | * xapp_monitor_blanker_new: | |
71 | * | |
72 | * Creates a new #XAppMonitorBlanker. | |
73 | * | |
74 | * Returns: a newly created #XAppMonitorBlanker | |
75 | */ | |
76 | ||
59 | 77 | XAppMonitorBlanker * |
60 | 78 | xapp_monitor_blanker_new (void) |
61 | 79 | { |
91 | 109 | return window; |
92 | 110 | } |
93 | 111 | |
112 | /** | |
113 | * xapp_monitor_blanker_blank_other_monitors: | |
114 | * @self: a #XAppMonitorBlanker | |
115 | * @window: a #GtkWindow | |
116 | * | |
117 | * Blanks monitors besides the one where the @window is. | |
118 | */ | |
119 | ||
94 | 120 | void |
95 | 121 | xapp_monitor_blanker_blank_other_monitors (XAppMonitorBlanker *self, |
96 | 122 | GtkWindow *window) |
125 | 151 | self->priv->blanked = TRUE; |
126 | 152 | } |
127 | 153 | |
154 | /** | |
155 | * xapp_monitor_blanker_unblank_monitors: | |
156 | * @self: a #XAppMonitorBlanker | |
157 | * | |
158 | * Unblanks monitors that were blanked by | |
159 | * xapp_monitor_blanker_blank_other_monitors(); | |
160 | */ | |
161 | ||
128 | 162 | void |
129 | 163 | xapp_monitor_blanker_unblank_monitors (XAppMonitorBlanker *self) |
130 | 164 | { |
147 | 181 | self->priv->blanked = FALSE; |
148 | 182 | } |
149 | 183 | |
184 | /** | |
185 | * xapp_monitor_blanker_are_monitors_blanked: | |
186 | * @self: a #XAppMonitorBlanker | |
187 | * | |
188 | * Returns whether monitors are currently blanked. | |
189 | * See xapp_monitor_blanker_blank_other_monitors(). | |
190 | * | |
191 | * Returns: %TRUE if monitors are blanked. | |
192 | */ | |
193 | ||
150 | 194 | gboolean |
151 | 195 | xapp_monitor_blanker_are_monitors_blanked (XAppMonitorBlanker *self) |
152 | 196 | { |