├── .gitignore ├── AUTHORS ├── COPYING ├── COPYING.GPL3 ├── COPYING.ICON ├── COPYING.LIB ├── ChangeLog ├── HACKING ├── Makefile.am ├── Makefile.app-icons ├── Makefile.applet-common ├── Makefile.c-applet ├── Makefile.desktop-files ├── Makefile.marshal ├── Makefile.schemas ├── Makefile.shave ├── Makefile.vala-applet ├── NEWS ├── README ├── TODO ├── applet-activation ├── Makefile.am ├── main.cc └── wscript_build ├── applets ├── expander │ ├── Makefile.am │ ├── applet.cc │ └── expander.desktop.in.in ├── quick-prefs │ ├── Makefile.am │ ├── applet.c │ ├── applet.vala │ └── quick-prefs.desktop.in.in ├── separator │ ├── Makefile.am │ ├── applet.cc │ └── separator.desktop.in.in ├── simple-launcher │ ├── Makefile.am │ ├── awn-applet-simple-launcher.schema-ini.in │ ├── simple-launcher.desktop.in.in │ └── simple-launcher.vala └── taskmanager │ ├── Makefile.am │ ├── applet.cc │ ├── awn-applet-taskmanager.schema-ini.in │ ├── awn-desktop-lookup-cached.cc │ ├── awn-desktop-lookup-cached.h │ ├── awn-desktop-lookup-gnome3.cc │ ├── awn-desktop-lookup-gnome3.h │ ├── awn-desktop-lookup.cc │ ├── awn-desktop-lookup.h │ ├── dock-manager-api.cc │ ├── dock-manager-api.h │ ├── generate_vapi.sh │ ├── labelled-separator.vala │ ├── menus │ ├── advanced.xml │ ├── custom-example.xml │ ├── minimal.xml │ ├── simple.xml │ └── standard.xml │ ├── task-defines.h │ ├── task-drag-indicator.cc │ ├── task-drag-indicator.h │ ├── task-icon-build-context-menus.cc │ ├── task-icon-build-context-menus.h │ ├── task-icon-private.h │ ├── task-icon.cc │ ├── task-icon.h │ ├── task-item.cc │ ├── task-item.h │ ├── task-launcher.cc │ ├── task-launcher.h │ ├── task-manager-api-wrapper-dbus.xml │ ├── task-manager-api-wrapper.cc │ ├── task-manager-api-wrapper.h │ ├── task-manager-dialog.cc │ ├── task-manager-dialog.h │ ├── task-manager-panel-connector.cc │ ├── task-manager-panel-connector.h │ ├── task-manager.cc │ ├── task-manager.h │ ├── task-manager.metadata │ ├── task-manager.vapi │ ├── task-settings.cc │ ├── task-settings.h │ ├── task-window.cc │ ├── task-window.h │ ├── taskmanager-marshal.list │ ├── taskmanager.desktop.in.in │ ├── util.cc │ ├── util.h │ ├── xutils.cc │ └── xutils.h ├── autogen.sh ├── awn-settings ├── Makefile.am ├── awn-plugins.svg ├── awn-settings-small.svg ├── awn-settings.desktop.in ├── awn-settings.png ├── awn-settings.svg ├── awn-settings.ui ├── awn_class.py ├── awn_defs.py.in ├── awn_settings.py ├── awn_settings_helper.py └── awn_settings_launcher.py.in ├── awn.config ├── awn.creator ├── awn.files ├── awn.includes ├── awn.pc.in ├── bindings ├── python │ ├── Makefile.am │ ├── __init__.py.in │ ├── awn.defs │ ├── awn.override │ └── awnmodule.c └── vala │ ├── Makefile.am │ ├── awn-custom.vala │ ├── awn.deps │ ├── awn.exclude │ ├── awn.files │ ├── awn.gi │ ├── awn.metadata │ ├── awn.namespace │ ├── awn.vapi │ ├── build.vapi │ └── libintl.vapi ├── configure.ac ├── data ├── Makefile.am ├── active │ ├── spotlight1.png │ ├── spotlight2.png │ └── spotlight_png_inline.cc ├── avant-window-navigator-24.png ├── avant-window-navigator-32.png ├── avant-window-navigator.desktop.in ├── avant-window-navigator.png ├── avant-window-navigator.schema-ini.in.in ├── avant-window-navigator.svg ├── awn-themed-icon.ui ├── awn-window-fallback.svg └── index.theme ├── doc ├── Makefile.am ├── PPA_autoppa ├── reference │ ├── Makefile.am │ ├── libawn-docs.sgml │ ├── libawn-overrides.txt │ ├── libawn-sections.txt │ └── libawn.types └── waf ├── libawn ├── Makefile.am ├── anims │ ├── awn-effect-bounce.cc │ ├── awn-effect-bounce.h │ ├── awn-effect-desaturate.cc │ ├── awn-effect-desaturate.h │ ├── awn-effect-fade.cc │ ├── awn-effect-fade.h │ ├── awn-effect-glow.cc │ ├── awn-effect-glow.h │ ├── awn-effect-simple.cc │ ├── awn-effect-simple.h │ ├── awn-effect-spotlight.cc │ ├── awn-effect-spotlight.h │ ├── awn-effect-spotlight3d.cc │ ├── awn-effect-spotlight3d.h │ ├── awn-effect-squish.cc │ ├── awn-effect-squish.h │ ├── awn-effect-turn.cc │ ├── awn-effect-turn.h │ ├── awn-effect-zoom.cc │ ├── awn-effect-zoom.h │ ├── awn-effects-shared.cc │ └── awn-effects-shared.h ├── awn-alignment.cc ├── awn-alignment.h ├── awn-applet-simple.cc ├── awn-applet-simple.h ├── awn-applet.cc ├── awn-applet.h ├── awn-box.cc ├── awn-box.h ├── awn-cairo-utils.cc ├── awn-cairo-utils.h ├── awn-config.cc ├── awn-config.h ├── awn-dbus-watcher.cc ├── awn-dbus-watcher.h ├── awn-defines.h ├── awn-desktop-lookup-client.cc ├── awn-desktop-lookup-client.h ├── awn-dialog.cc ├── awn-dialog.h ├── awn-effects-ops-helpers.cc ├── awn-effects-ops-helpers.h ├── awn-effects-ops-new.cc ├── awn-effects-ops-new.h ├── awn-effects.cc ├── awn-effects.h ├── awn-enum-types.cc.in ├── awn-enum-types.h.in ├── awn-icon-box.cc ├── awn-icon-box.h ├── awn-icon.cc ├── awn-icon.h ├── awn-image.cc ├── awn-image.h ├── awn-label.cc ├── awn-label.h ├── awn-overlay-pixbuf-file.cc ├── awn-overlay-pixbuf-file.h ├── awn-overlay-pixbuf.cc ├── awn-overlay-pixbuf.h ├── awn-overlay-progress-circle.cc ├── awn-overlay-progress-circle.h ├── awn-overlay-progress.cc ├── awn-overlay-progress.h ├── awn-overlay-text.cc ├── awn-overlay-text.h ├── awn-overlay-themed-icon.cc ├── awn-overlay-themed-icon.h ├── awn-overlay-throbber.cc ├── awn-overlay-throbber.h ├── awn-overlay.cc ├── awn-overlay.h ├── awn-overlayable.cc ├── awn-overlayable.h ├── awn-pixbuf-cache.cc ├── awn-pixbuf-cache.h ├── awn-themed-icon.cc ├── awn-themed-icon.h ├── awn-tooltip.cc ├── awn-tooltip.h ├── awn-utils.cc ├── awn-utils.h ├── gseal-transition.h ├── libawn-marshal.list ├── libawn.h ├── vala-utils.cc └── vala-utils.h ├── m4 ├── as-ac-expand.m4 ├── as-compiler-flag.m4 ├── gconf.m4 ├── python.m4 └── shave.m4 ├── po ├── ChangeLog ├── POTFILES.in ├── POTFILES.skip ├── af.po ├── ar.po ├── ast.po ├── avant-window-navigator.pot ├── az.po ├── be.po ├── bg.po ├── bn.po ├── bs.po ├── ca.po ├── crh.po ├── cs.po ├── csb.po ├── cy.po ├── da.po ├── de.po ├── dv.po ├── el.po ├── en_AU.po ├── en_CA.po ├── en_GB.po ├── eo.po ├── es.po ├── et.po ├── eu.po ├── fa.po ├── fi.po ├── fo.po ├── fr.po ├── ga.po ├── gl.po ├── gu.po ├── he.po ├── hi.po ├── hr.po ├── hu.po ├── id.po ├── is.po ├── it.po ├── ja.po ├── jv.po ├── ka.po ├── kab.po ├── kk.po ├── km.po ├── ko.po ├── ku.po ├── lt.po ├── lv.po ├── mk.po ├── ml.po ├── mn.po ├── mr.po ├── ms.po ├── nb.po ├── nds.po ├── ne.po ├── nl.po ├── nn.po ├── notexist ├── oc.po ├── pl.po ├── pt.po ├── pt_BR.po ├── ro.po ├── ru.po ├── si.po ├── sk.po ├── sl.po ├── sq.po ├── sr.po ├── sv.po ├── ta.po ├── te.po ├── th.po ├── tr.po ├── uk.po ├── vi.po ├── zh_CN.po ├── zh_HK.po └── zh_TW.po ├── shave ├── shave-libtool.in └── shave.in ├── src ├── Makefile.am ├── awn-app.c ├── awn-app.h ├── awn-app.vala ├── awn-applet-manager.cc ├── awn-applet-manager.h ├── awn-applet-proxy.cc ├── awn-applet-proxy.h ├── awn-background-3d.cc ├── awn-background-3d.h ├── awn-background-curves.cc ├── awn-background-curves.h ├── awn-background-edgy.cc ├── awn-background-edgy.h ├── awn-background-flat.cc ├── awn-background-flat.h ├── awn-background-floaty.cc ├── awn-background-floaty.h ├── awn-background-lucido.cc ├── awn-background-lucido.h ├── awn-background-null.cc ├── awn-background-null.h ├── awn-background.cc ├── awn-background.h ├── awn-defines.h ├── awn-main.cc ├── awn-marshal.list ├── awn-monitor.cc ├── awn-monitor.h ├── awn-panel-dispatcher.cc ├── awn-panel-dispatcher.h ├── awn-panel.cc ├── awn-panel.h ├── awn-panel.vapi ├── awn-separator.cc ├── awn-separator.h ├── awn-throbber.cc ├── awn-throbber.h ├── awn-ua-alignment.cc ├── awn-ua-alignment.h ├── awn-x.cc ├── awn-x.h ├── inlinepixbufs.h ├── xutils.cc └── xutils.h ├── tests ├── Makefile.am ├── test-applet-simple.cc ├── test-awn-dialog.py ├── test-awn-effects.cc ├── test-awn-icon-box.cc ├── test-awn-icon.cc ├── test-awn-tooltip.py ├── test-effects-scaling.py ├── test-effects.py ├── test-overlays.py ├── test-taskmanager-dnd.py ├── test-taskmanager-windows.py ├── test-taskmanager.cc ├── test-themed-icon.cc └── test-vala-awn-dialog.vala └── themes ├── Makefile.am ├── clearlooks-dark.awn-theme.in ├── dark.awn-theme.in ├── dust.awn-theme.in ├── light.awn-theme.in ├── smoked.awn-theme.in └── thumbnails ├── clearlooks-dark-thumb.png ├── dark-thumb.png ├── dust-thumb.png ├── light-thumb.png └── smoked-thumb.png /.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.in 3 | *.creator.user* 4 | *-glue.h 5 | *-marshal.* 6 | *.cdbs-orig 7 | *.desktop 8 | *.desktop.in 9 | *.la 10 | *.lo 11 | *.loT 12 | *.schema-ini 13 | *.schemas* 14 | *.vala.stamp 15 | .libs 16 | .deps 17 | aclocal.m4 18 | autom4te.cache 19 | awn.pc 20 | compile 21 | config.guess 22 | config.h 23 | config.h.in 24 | config.log 25 | config.status 26 | config.sub 27 | configure 28 | depcomp 29 | doltcompile 30 | doltlibtool 31 | gtk-doc.make 32 | install-sh 33 | intltool-* 34 | libtool 35 | ltmain.sh 36 | missing 37 | mkinstalldirs 38 | py-compile 39 | stamp-h1 40 | applet-activation/awn-applet 41 | awn-settings/awn_defs.py 42 | bindings/python/awn.c 43 | data/avant-window-navigator.schema-ini.in 44 | debian/*.debhelper.log 45 | debian/*.postinst.debhelper 46 | debian/*.postrm.debhelper 47 | debian/*.preinst.debhelper 48 | debian/*.prerm.debhelper 49 | debian/*.substvars 50 | debian/*-trunk/ 51 | debian/files 52 | debian/stamp-autotools-files 53 | debian/stamp-makefile-build 54 | debian/stamp-patched 55 | debian/tmp/ 56 | doc/reference/*.bak 57 | doc/reference/*-scan.c 58 | doc/reference/html* 59 | doc/reference/sgml* 60 | doc/reference/tmpl* 61 | doc/reference/tmpl/*.sgml* 62 | doc/reference/xml 63 | doc/reference/libawn-decl-list.txt 64 | doc/reference/libawn-decl.txt 65 | doc/reference/libawn-overrides.txt 66 | doc/reference/libawn-sections.txt 67 | doc/reference/libawn-undeclared.txt 68 | doc/reference/libawn-undocumented.txt 69 | doc/reference/libawn-unused.txt 70 | doc/reference/libawn.args 71 | doc/reference/libawn.hierarchy 72 | doc/reference/libawn.interfaces 73 | doc/reference/libawn.prerequisites 74 | doc/reference/libawn.signals 75 | doc/reference/scan-build.stamp 76 | m4/gtk-doc.m4 77 | m4/intltool.m4 78 | m4/libtool.m4 79 | m4/lt*.m4 80 | po/*.gmo 81 | po/.intltool-merge-cache 82 | po/Makefile.in.in 83 | po/POTFILES 84 | po/stamp-it 85 | shave/shave 86 | shave/shave-libtool 87 | src/avant-window-navigator 88 | src/icon-test 89 | tests/test-applet-simple 90 | tests/test-awn-effects 91 | tests/test-awn-icon 92 | tests/test-awn-icon-box 93 | tests/test-taskmanager 94 | tests/test-themed-icon 95 | tests/test-vala-awn-dialog 96 | tests/test-vala-awn-dialog.c 97 | themes/*.awn-theme 98 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Neil Jagdish Patel 2 | haytjes 3 | Miika-Petteri Matikainen 4 | Anthony Arobone 5 | Ryan Rushton 6 | Michal Hruby 7 | Julien Lavergne 8 | Mark Lee 9 | Rodney Cryderman 10 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | VALA_BINDINGS = bindings/vala 4 | 5 | SUBDIRS = \ 6 | libawn \ 7 | src \ 8 | applet-activation \ 9 | bindings/python \ 10 | bindings/vala \ 11 | awn-settings \ 12 | applets/expander \ 13 | applets/quick-prefs \ 14 | applets/separator \ 15 | applets/taskmanager \ 16 | applets/simple-launcher \ 17 | po \ 18 | data \ 19 | tests \ 20 | doc \ 21 | themes \ 22 | $(NULL) 23 | 24 | ACLOCAL_AMFLAGS = -I m4 25 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc 26 | 27 | pkgconfigdir = $(libdir)/pkgconfig 28 | pkgconfig_DATA = awn.pc 29 | 30 | i18n-update: po/POTFILES.in po/POTFILES.skip 31 | (cd po && for lang in `grep ALL_LINGUAS ../configure.in | cut -d'"' -f2`; do \ 32 | echo -n "Updating $$lang:"; \ 33 | intltool-update $$lang; \ 34 | done) 35 | 36 | EXTRA_DIST = \ 37 | autogen.sh \ 38 | awn.pc.in \ 39 | intltool-extract.in \ 40 | intltool-merge.in \ 41 | intltool-update.in \ 42 | $(NULL) 43 | 44 | DISTCLEANFILES = \ 45 | intltool-extract \ 46 | intltool-merge \ 47 | intltool-update \ 48 | $(NULL) 49 | -------------------------------------------------------------------------------- /Makefile.app-icons: -------------------------------------------------------------------------------- 1 | # vim: set ft=automake ts=8 sts=8 sw=8 : 2 | 3 | NULL = 4 | icondir = $(datadir)/icons/hicolor/48x48/apps 5 | icon_DATA = $(APP_ICON_NAME).png 6 | svgicondir = $(datadir)/icons/hicolor/scalable/apps 7 | svgicon_DATA = $(APP_ICON_NAME).svg 8 | 9 | EXTRA_DIST = \ 10 | $(icon_DATA) \ 11 | $(svgicon_DATA) \ 12 | $(NULL) 13 | -------------------------------------------------------------------------------- /Makefile.applet-common: -------------------------------------------------------------------------------- 1 | # vim: set ft=automake ts=8 sts=8 sw=8 : 2 | NULL = 3 | applet_datadir = $(APPLETSDIR)/$(APPLET_NAME) 4 | 5 | # for now, assume that icons = SVG 6 | icon_DATA = $(APPLET_ICONS) 7 | icondir = $(datadir)/icons/hicolor/scalable/apps 8 | 9 | desktopdir = $(APPLETSDIR) 10 | DESKTOP_BASENAME = $(APPLET_NAME) 11 | include $(top_srcdir)/Makefile.desktop-files 12 | 13 | EXTRA_DIST = \ 14 | $(icon_DATA) \ 15 | $(NULL) 16 | -------------------------------------------------------------------------------- /Makefile.c-applet: -------------------------------------------------------------------------------- 1 | # vim: set ft=automake ts=8 sts=8 sw=8 : 2 | include $(top_srcdir)/Makefile.applet-common 3 | include $(top_srcdir)/Makefile.shave 4 | 5 | AM_CFLAGS = \ 6 | -I$(srcdir) \ 7 | -I$(top_srcdir) \ 8 | -I$(top_builddir) \ 9 | $(STANDARD_CPPFLAGS) \ 10 | $(DISABLE_DEPRECATED_FLAGS) \ 11 | $(WARNING_FLAGS) \ 12 | $(AWN_CFLAGS) \ 13 | $(APPLET_CFLAGS) \ 14 | $(NULL) 15 | 16 | AM_CXXFLAGS = $(AM_CFLAGS) -fpermissive -std=c++11 17 | 18 | APPLET_LINKER_FLAGS = -module -avoid-version 19 | 20 | appletdir = $(LIBAPPLETDIR)/$(APPLET_NAME) 21 | 22 | EXTRA_DIST += \ 23 | $(desktop_DATA:.desktop=.desktop.in.in) \ 24 | $(NULL) 25 | -------------------------------------------------------------------------------- /Makefile.desktop-files: -------------------------------------------------------------------------------- 1 | # vim: set ft=automake : 2 | 3 | desktop_DATA = $(DESKTOP_BASENAME).desktop 4 | @INTLTOOL_DESKTOP_RULE@ 5 | 6 | CLEANFILES = $(desktop_DATA) 7 | -------------------------------------------------------------------------------- /Makefile.marshal: -------------------------------------------------------------------------------- 1 | # requires Makefile.shave 2 | 3 | NULL ?= 4 | 5 | # glib-genmarshal (based on WebKit's build system) 6 | 7 | MARSHAL = $(MARSHAL_PREFIX)-marshal 8 | MARSHAL_LIST = $(srcdir)/$(MARSHAL).list 9 | GENMARSHAL = $(GLIB_GENMARSHAL) --prefix=$(MARSHAL_PREFIX)_marshal $(MARSHAL_LIST) 10 | 11 | MARSHALFILES = \ 12 | $(builddir)/$(MARSHAL).c \ 13 | $(builddir)/$(MARSHAL).h \ 14 | $(NULL) 15 | 16 | $(builddir)/$(MARSHAL).h: $(MARSHAL_LIST) 17 | $(QUIET_GEN)$(GENMARSHAL) --header > $@ 18 | 19 | $(builddir)/$(MARSHAL).c: $(MARSHAL_LIST) $(MARSHAL).h 20 | $(QUIET_GEN)( \ 21 | echo "#include \"$(MARSHAL_PREFIX)-marshal.h\"" > $@ && \ 22 | $(GENMARSHAL) --body >> $@ \ 23 | ) 24 | 25 | # vim: set ft=automake ts=8 sts=8 sw=8 noet : 26 | -------------------------------------------------------------------------------- /Makefile.schemas: -------------------------------------------------------------------------------- 1 | # requires Makefile.shave 2 | 3 | # Usage 4 | # ----- 5 | # 1. Set the schema_in_files variable to the schema-ini.in file(s) to install. 6 | # 2. Add install-gconf-schemas to the install-data-local rule dependencies. 7 | 8 | if GCONF_SCHEMAS_INSTALL 9 | schemasdir = @GCONF_SCHEMA_FILE_DIR@ 10 | schemas_DATA = $(schema_DATA:.schema-ini=.schemas) 11 | 12 | %.schemas: %.schema-ini 13 | $(QUIET_GEN)$(LDA_BINDIR)/lda-schema-to-gconf $< $@ 14 | 15 | install-gconf-schemas: $(schemas_DATA) 16 | GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) 17 | else 18 | install-gconf-schemas: 19 | endif 20 | 21 | schema_DATA = $(schema_in_files:.schema-ini.in=.schema-ini) 22 | schemadir = $(pkgdatadir)/schemas 23 | 24 | @INTLTOOL_SCHEMA_INI_RULE@ 25 | 26 | # vim: set ft=automake noet ts=8 sts=8 sw=8 : 27 | -------------------------------------------------------------------------------- /Makefile.shave: -------------------------------------------------------------------------------- 1 | # shave-related 2 | V = @ 3 | Q = $(V:1=) 4 | QUIET_GEN = $(Q:@=@echo ' GEN '$@;) 5 | -------------------------------------------------------------------------------- /Makefile.vala-applet: -------------------------------------------------------------------------------- 1 | # vim: set ft=automake ts=8 sts=8 sw=8 : 2 | include $(top_srcdir)/Makefile.c-applet 3 | 4 | #### 5 | # Note to applet developers: DO NOT OVERRIDE CPPFLAGS, CFLAGS, OR VALAFLAGS. 6 | # That is what the AM_FOOFLAGS variant is for. 7 | #### 8 | 9 | # for shave 10 | QUIET_INSTALL = $(Q:@=@echo ' INSTALL '$@;) 11 | QUIET_VALA = $(Q:@=@echo ' VALAC '$@;) 12 | 13 | BUILT_SOURCES = $(APPLET_NAME).vala.stamp 14 | 15 | VALA_C_FILES = $(VALA_FILES:.vala=.c) 16 | 17 | $(APPLET_NAME).vala.stamp: $(VALA_FILES) 18 | $(QUIET_VALA)$(VALAC) -C $^ \ 19 | --vapidir=$(LDA_VAPIDIR) \ 20 | --pkg=desktop-agnostic \ 21 | --pkg=desktop-agnostic-cfg \ 22 | --vapidir=$(top_srcdir)/bindings/vala \ 23 | --vapidir=$(top_builddir)/bindings/vala \ 24 | $(top_srcdir)/bindings/vala/awn.vapi \ 25 | $(AM_VALAFLAGS) $(VALAFLAGS) 26 | touch "$@" 27 | 28 | EXTRA_DIST += $(VALA_FILES) $(APPLET_NAME).vala.stamp 29 | CLEANFILES += $(APPLET_NAME).vala.stamp $(VALA_C_FILES) 30 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | 2008-02-18 - Awn 0.2.4 Release News 2 | 3 | * Applets are sorted in alphabetical order in AwnManager 4 | * VFS abstraction for gnome-vfs, thunar-vfs and gio support. 5 | * FDO Desktop file abstraction for GnomeDesktopItem and EggDesktopItem 6 | support. 7 | * Configuration backend abstraction with GConf & GKeyFile support. 8 | * --with-desktop=gnome|xfce4|agnostic, which will use a combination of the 9 | above options to work best wth each desktop environment. 10 | * Updated python bindings 11 | * Vala bindings 12 | * Removed gnome-panel dependancy by our own launcher editor. 13 | * Updated AwnManager Interface. 14 | * Simple mousewheel task scrolling implementation 15 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | ============================ 2 | Avant Window Navigator (Awn) 3 | ============================ 4 | 5 | A dock-like bar which sits at the bottom of your screen, allowing you to launch 6 | and control applications. It also has the ability to embed external applets. The 7 | look and feel are fully customizable, and theming support is also available. 8 | 9 | Installation 10 | ------------ 11 | 12 | Please find out if your distribution has either binary packages available for 13 | Awn, or ebuilds/recipes/build scripts available through your distribution's 14 | package manager. It will save you a lot of time and energy if you install via 15 | your distribution's package manager. 16 | 17 | The following packages are required to build Awn from source. Note that in most 18 | distributions, you need both the library and development/header packages 19 | installed in order for the build process to work correctly. 20 | 21 | * GNU Make 22 | * libdesktop-agnostic [1]_ 23 | * libwnck 2.22 or later 24 | * libX11 25 | * dbus-glib 26 | * xdamage 27 | * xcomposite 28 | * xrender 29 | * Python 2.5 or later 30 | * PyGTK 2.12 or later 31 | * pyxdg (also known as python-xdg) 32 | 33 | .. _[1]:: https://launchpad.net/libdesktop-agnostic 34 | 35 | To build from source, run:: 36 | 37 | ./configure 38 | make 39 | make install 40 | 41 | ``./configure`` can take arguments, please see ``./configure --help`` for 42 | details. As the default install location is ``/usr/local``, you may need to run 43 | ``sudo make install`` instead of ``make install``. 44 | 45 | Usage 46 | ----- 47 | 48 | You can launch Awn from ``Applications -> Accessories -> Avant Window Navigator``. 49 | You can change the settings by either launching the preferences dialog from 50 | ``System -> Preferences -> Awn Settings``, or right-clicking on most places on 51 | the bar, and selecting 'Dock Preferences' in the menu that appears. 52 | 53 | If the preferences dialog does not start, please run ``awn-settings`` from the 54 | terminal to see if any dependencies are missing. 55 | 56 | Help 57 | ---- 58 | 59 | If you have any questions/bug reports/ideas, you can find help in the following 60 | locations: 61 | 62 | - https://github.com/p12tic/awn 63 | - https://github.com/p12tic/awn-extras 64 | - https://github.com/p12tic/libdesktop-agnostic 65 | 66 | This PPA contains packages for testing: 67 | 68 | - https://launchpad.net/~awn-testing/+archive/ppa 69 | -------------------------------------------------------------------------------- /applet-activation/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | AM_CPPFLAGS = \ 3 | -I$(top_srcdir) \ 4 | $(AWN_CFLAGS) \ 5 | $(NULL) 6 | AM_CXXFLAGS = -fpermissive -std=c++11 7 | 8 | bin_PROGRAMS = awn-applet 9 | 10 | awn_applet_LDADD = \ 11 | $(AWN_LIBS) \ 12 | $(top_builddir)/libawn/libawn.la \ 13 | $(NULL) 14 | 15 | awn_applet_SOURCES = \ 16 | main.cc \ 17 | $(NULL) 18 | # vim: set ts=8 sts=8 sw=8 : 19 | -------------------------------------------------------------------------------- /applet-activation/wscript_build: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | # encoding: utf-8 3 | 4 | #Create a simple binary 5 | obj = bld.create_obj('gnome', 'program') 6 | obj.find_sources_in_dirs('.') # take the sources in the current folder 7 | obj.includes='.' #take include in the currend folder 8 | obj.uselib='GTK GNOMEVFS GNOMEDESKTOP' 9 | obj.uselib_local='awn' 10 | obj.target='awn-applet-activation' 11 | 12 | -------------------------------------------------------------------------------- /applets/expander/Makefile.am: -------------------------------------------------------------------------------- 1 | APPLET_NAME = expander 2 | include $(top_srcdir)/Makefile.c-applet 3 | 4 | applet_LTLIBRARIES = expander.la 5 | expander_la_SOURCES = \ 6 | applet.cc \ 7 | $(NULL) 8 | expander_la_LIBADD = \ 9 | $(top_builddir)/libawn/libawn.la \ 10 | $(AWN_LIBS) \ 11 | $(NULL) 12 | expander_la_LDFLAGS = $(APPLET_LINKER_FLAGS) 13 | -------------------------------------------------------------------------------- /applets/expander/applet.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License version 3 as 6 | * published by the Free Software Foundation. 7 | * 8 | * This program is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this program. If not, see . 15 | * 16 | */ 17 | 18 | #include 19 | #include 20 | 21 | extern "C" AwnApplet* awn_applet_factory_initp(gchar* name, gchar* uid, gint panel_id); 22 | extern "C" AwnApplet* awn_applet_factory_initp(gchar* name, gchar* uid, gint panel_id) 23 | { 24 | DBusGProxy* proxy; 25 | GError* error = NULL; 26 | 27 | gchar* object_path = g_strdup_printf("/org/awnproject/Awn/Panel%d", 28 | panel_id); 29 | proxy = dbus_g_proxy_new_for_name(dbus_g_bus_get(DBUS_BUS_SESSION, &error), 30 | "org.awnproject.Awn", 31 | object_path, 32 | "org.awnproject.Awn.Panel"); 33 | 34 | dbus_g_proxy_call(proxy, "SetAppletFlags", 35 | &error, 36 | G_TYPE_STRING, uid, 37 | G_TYPE_INT, AWN_APPLET_IS_EXPANDER, 38 | G_TYPE_INVALID, G_TYPE_INVALID); 39 | 40 | return NULL; 41 | } 42 | -------------------------------------------------------------------------------- /applets/expander/expander.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | _Name=Expander 4 | _Comment=Fills space on the panel in expand mode 5 | Exec=awn-applet -p %k 6 | X-AWN-AppletExec=@LIBAPPLETDIR@/expander/expander.so 7 | Icon=gtk-justify-fill 8 | X-AWN-Type=Applet 9 | X-AWN-AppletType=C 10 | X-AWN-AppletCategory=Utility 11 | X-AWN-NoWindow=true 12 | -------------------------------------------------------------------------------- /applets/quick-prefs/Makefile.am: -------------------------------------------------------------------------------- 1 | APPLET_NAME = quick-prefs 2 | APPLET_CFLAGS = \ 3 | $(TASKMANAGER_CFLAGS) \ 4 | -DWNCK_I_KNOW_THIS_IS_UNSTABLE \ 5 | $(NULL) 6 | VALA_FILES = \ 7 | $(NULL) 8 | 9 | AM_VALAFLAGS = \ 10 | --pkg=build \ 11 | --pkg=dbus-glib-1 \ 12 | --pkg=libintl \ 13 | --pkg=libwnck-1.0 \ 14 | $(NULL) 15 | 16 | include $(top_srcdir)/Makefile.c-applet 17 | 18 | applet_LTLIBRARIES = quick-prefs.la 19 | quick_prefs_la_SOURCES = \ 20 | $(VALA_C_FILES) \ 21 | applet.c \ 22 | $(NULL) 23 | quick_prefs_la_LIBADD = \ 24 | $(top_builddir)/libawn/libawn.la \ 25 | $(TASKMANAGER_LIBS) \ 26 | $(NULL) 27 | quick_prefs_la_LDFLAGS = $(APPLET_LINKER_FLAGS) 28 | -------------------------------------------------------------------------------- /applets/quick-prefs/quick-prefs.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | X-AWN-Type=Applet 4 | X-AWN-AppletType=Vala 5 | _Name=Preferences applet 6 | _Comment=Applet used to control the dock and launch Awn preferences. 7 | Exec=awn-applet -p %k 8 | X-AWN-AppletExec=@LIBAPPLETDIR@/quick-prefs/quick-prefs.so 9 | Icon=avant-window-navigator 10 | X-AWN-AppletCategory=Utility 11 | -------------------------------------------------------------------------------- /applets/separator/Makefile.am: -------------------------------------------------------------------------------- 1 | APPLET_NAME = separator 2 | include $(top_srcdir)/Makefile.c-applet 3 | 4 | applet_LTLIBRARIES = separator.la 5 | separator_la_SOURCES = \ 6 | applet.cc \ 7 | $(NULL) 8 | separator_la_LIBADD = \ 9 | $(top_builddir)/libawn/libawn.la \ 10 | $(AWN_LIBS) \ 11 | $(NULL) 12 | separator_la_LDFLAGS = $(APPLET_LINKER_FLAGS) 13 | -------------------------------------------------------------------------------- /applets/separator/applet.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License version 3 as 6 | * published by the Free Software Foundation. 7 | * 8 | * This program is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this program. If not, see . 15 | * 16 | */ 17 | 18 | #include 19 | #include 20 | 21 | extern "C" AwnApplet* awn_applet_factory_initp(gchar* name, gchar* uid, gint panel_id); 22 | extern "C" AwnApplet* awn_applet_factory_initp(gchar* name, gchar* uid, gint panel_id) 23 | { 24 | DBusGProxy* proxy; 25 | GError* error = NULL; 26 | 27 | gchar* object_path = g_strdup_printf("/org/awnproject/Awn/Panel%d", 28 | panel_id); 29 | proxy = dbus_g_proxy_new_for_name(dbus_g_bus_get(DBUS_BUS_SESSION, &error), 30 | "org.awnproject.Awn", 31 | object_path, 32 | "org.awnproject.Awn.Panel"); 33 | 34 | dbus_g_proxy_call(proxy, "SetAppletFlags", 35 | &error, 36 | G_TYPE_STRING, uid, 37 | G_TYPE_INT, AWN_APPLET_IS_SEPARATOR, 38 | G_TYPE_INVALID, G_TYPE_INVALID); 39 | 40 | return NULL; 41 | } 42 | -------------------------------------------------------------------------------- /applets/separator/separator.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | _Name=Separator 4 | _Comment=Adds a separator between applets 5 | Exec=awn-applet -p %k 6 | X-AWN-AppletExec=@LIBAPPLETDIR@/separator/separator.so 7 | Icon=gtk-justify-fill 8 | X-AWN-Type=Applet 9 | X-AWN-AppletType=C 10 | X-AWN-AppletCategory=Utility 11 | X-AWN-NoWindow=true 12 | -------------------------------------------------------------------------------- /applets/simple-launcher/Makefile.am: -------------------------------------------------------------------------------- 1 | APPLET_NAME = simple-launcher 2 | APPLET_CFLAGS = \ 3 | $(NULL) 4 | VALA_FILES = \ 5 | simple-launcher.vala \ 6 | $(NULL) 7 | 8 | AM_VALAFLAGS = \ 9 | --pkg=build \ 10 | --pkg=dbus-glib-1 \ 11 | --pkg=libintl \ 12 | --pkg desktop-agnostic-fdo \ 13 | --pkg desktop-agnostic-ui \ 14 | $(NULL) 15 | 16 | include $(top_srcdir)/Makefile.vala-applet 17 | include $(top_srcdir)/Makefile.schemas 18 | 19 | # config 20 | 21 | schema_in_files = awn-applet-simple-launcher.schema-ini.in 22 | 23 | install-data-local: install-gconf-schemas 24 | 25 | applet_LTLIBRARIES = simple-launcher.la 26 | simple_launcher_la_SOURCES = \ 27 | $(VALA_C_FILES) \ 28 | $(NULL) 29 | simple_launcher_la_LIBADD = \ 30 | $(top_builddir)/libawn/libawn.la \ 31 | $(AWN_LIBS) \ 32 | $(NULL) 33 | simple_launcher_la_LDFLAGS = $(APPLET_LINKER_FLAGS) 34 | 35 | CLEANFILES += $(schema_DATA) $(schemas_DATA) 36 | 37 | EXTRA_DIST += \ 38 | $(schema_in_files) \ 39 | $(NULL) 40 | 41 | -------------------------------------------------------------------------------- /applets/simple-launcher/awn-applet-simple-launcher.schema-ini.in: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | single_instance = false 3 | 4 | [DEFAULT/launcher_list] 5 | type=list-string 6 | default= 7 | _description=List of desktop files displayed by the launcher. 8 | 9 | # vim: set ft=cfg : 10 | -------------------------------------------------------------------------------- /applets/simple-launcher/simple-launcher.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | X-AWN-Type=Applet 4 | X-AWN-AppletType=Vala 5 | _Name=Simple Launcher 6 | _Comment=Applet used to launch stuff 7 | Exec=awn-applet -p %k 8 | X-AWN-AppletExec=@LIBDIR@/awn/applets/simple-launcher/simple-launcher.so 9 | Icon=system-run 10 | X-AWN-AppletCategory=Utilities 11 | -------------------------------------------------------------------------------- /applets/taskmanager/awn-desktop-lookup-cached.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009,2010 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | * 18 | * Authored by Rodney Cryderman 19 | */ 20 | 21 | /* awn-desktop-lookup-cached.h */ 22 | 23 | #ifndef _AWN_DESKTOP_LOOKUP_CACHED 24 | #define _AWN_DESKTOP_LOOKUP_CACHED 25 | 26 | #include "awn-desktop-lookup.h" 27 | #include 28 | #include 29 | 30 | 31 | #define AWN_TYPE_DESKTOP_LOOKUP_CACHED awn_desktop_lookup_cached_get_type() 32 | 33 | #define AWN_DESKTOP_LOOKUP_CACHED(obj) \ 34 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_DESKTOP_LOOKUP_CACHED, AwnDesktopLookupCached)) 35 | 36 | #define AWN_DESKTOP_LOOKUP_CACHED_CLASS(klass) \ 37 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_DESKTOP_LOOKUP_CACHED, AwnDesktopLookupCachedClass)) 38 | 39 | #define AWN_IS_DESKTOP_LOOKUP_CACHED(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_DESKTOP_LOOKUP_CACHED)) 41 | 42 | #define AWN_IS_DESKTOP_LOOKUP_CACHED_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_DESKTOP_LOOKUP_CACHED)) 44 | 45 | #define AWN_DESKTOP_LOOKUP_CACHED_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_DESKTOP_LOOKUP_CACHED, AwnDesktopLookupCachedClass)) 47 | 48 | typedef struct { 49 | AwnDesktopLookup parent; 50 | } AwnDesktopLookupCached; 51 | 52 | typedef struct { 53 | AwnDesktopLookupClass parent_class; 54 | } AwnDesktopLookupCachedClass; 55 | 56 | GType awn_desktop_lookup_cached_get_type(void); 57 | 58 | AwnDesktopLookupCached* awn_desktop_lookup_cached_new(void); 59 | 60 | const gchar* awn_desktop_lookup_search_by_wnck_window(AwnDesktopLookupCached* lookup, WnckWindow* win); 61 | 62 | #endif /* _AWN_DESKTOP_LOOKUP_CACHED */ 63 | 64 | -------------------------------------------------------------------------------- /applets/taskmanager/awn-desktop-lookup-gnome3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | * 18 | * Authored by Rodney Cryderman 19 | */ 20 | /* awn-desktop-lookup-gnome3.h */ 21 | 22 | #ifndef _AWN_DESKTOP_LOOKUP_GNOME3 23 | #define _AWN_DESKTOP_LOOKUP_GNOME3 24 | 25 | #include "awn-desktop-lookup.h" 26 | #include 27 | 28 | #define AWN_TYPE_DESKTOP_LOOKUP_GNOME3 awn_desktop_lookup_gnome3_get_type() 29 | 30 | #define AWN_DESKTOP_LOOKUP_GNOME3(obj) \ 31 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_DESKTOP_LOOKUP_GNOME3, AwnDesktopLookupGnome3)) 32 | 33 | #define AWN_DESKTOP_LOOKUP_GNOME3_CLASS(klass) \ 34 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_DESKTOP_LOOKUP_GNOME3, AwnDesktopLookupGnome3Class)) 35 | 36 | #define AWN_IS_DESKTOP_LOOKUP_GNOME3(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_DESKTOP_LOOKUP_GNOME3)) 38 | 39 | #define AWN_IS_DESKTOP_LOOKUP_GNOME3_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_DESKTOP_LOOKUP_GNOME3)) 41 | 42 | #define AWN_DESKTOP_LOOKUP_GNOME3_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_DESKTOP_LOOKUP_GNOME3, AwnDesktopLookupGnome3Class)) 44 | 45 | typedef struct { 46 | AwnDesktopLookup parent; 47 | } AwnDesktopLookupGnome3; 48 | 49 | typedef struct { 50 | AwnDesktopLookupClass parent_class; 51 | } AwnDesktopLookupGnome3Class; 52 | 53 | GType awn_desktop_lookup_gnome3_get_type(void); 54 | 55 | AwnDesktopLookupGnome3* awn_desktop_lookup_gnome3_new(void); 56 | 57 | #endif /* _AWN_DESKTOP_LOOKUP_GNOME3 */ 58 | -------------------------------------------------------------------------------- /applets/taskmanager/awn-desktop-lookup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | * 18 | * Authored by Rodney Cryderman 19 | */ 20 | /* awn-desktop-lookup.h */ 21 | 22 | #ifndef _AWN_DESKTOP_LOOKUP 23 | #define _AWN_DESKTOP_LOOKUP 24 | 25 | #include 26 | 27 | #define AWN_TYPE_DESKTOP_LOOKUP awn_desktop_lookup_get_type() 28 | 29 | #define AWN_DESKTOP_LOOKUP(obj) \ 30 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_DESKTOP_LOOKUP, AwnDesktopLookup)) 31 | 32 | #define AWN_DESKTOP_LOOKUP_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_DESKTOP_LOOKUP, AwnDesktopLookupClass)) 34 | 35 | #define AWN_IS_DESKTOP_LOOKUP(obj) \ 36 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_DESKTOP_LOOKUP)) 37 | 38 | #define AWN_IS_DESKTOP_LOOKUP_CLASS(klass) \ 39 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_DESKTOP_LOOKUP)) 40 | 41 | #define AWN_DESKTOP_LOOKUP_GET_CLASS(obj) \ 42 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_DESKTOP_LOOKUP, AwnDesktopLookupClass)) 43 | 44 | typedef struct { 45 | GObject parent; 46 | } AwnDesktopLookup; 47 | 48 | typedef struct { 49 | GObjectClass parent_class; 50 | } AwnDesktopLookupClass; 51 | 52 | GType awn_desktop_lookup_get_type(void); 53 | 54 | AwnDesktopLookup* awn_desktop_lookup_new(void); 55 | gchar* awn_desktop_lookup_search_for_desktop(gulong xid); 56 | gchar* awn_desktop_lookup_search_cache(AwnDesktopLookup** self, 57 | gchar* class_name, 58 | gchar* res_name, 59 | gchar* cmd, 60 | gchar* id); 61 | gchar* awn_desktop_lookup_special_case(gchar* cmd, 62 | gchar* res_name, 63 | gchar* class_name, 64 | gchar* wm_icon_name, 65 | gchar* wm_name, 66 | gchar* window_role); 67 | 68 | 69 | #endif /* _AWN_DESKTOP_LOOKUP */ 70 | -------------------------------------------------------------------------------- /applets/taskmanager/generate_vapi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Note that running this script requires having Awn already installed 4 | HEADER_FILES="task-manager.h task-icon.h task-item.h task-window.h task-launcher.h task-defines.h" 5 | 6 | /usr/local/lib/vala/gen-introspect --namespace=Task $HEADER_FILES `pkg-config --cflags awn` `pkg-config --cflags libwnck-1.0` -DWNCK_I_KNOW_THIS_IS_UNSTABLE ./.libs/taskmanager.so > task-manager.gi 7 | vapigen --pkg awn --pkg libwnck-1.0 --metadata=task-manager.metadata --library task-manager task-manager.gi 8 | -------------------------------------------------------------------------------- /applets/taskmanager/menus/advanced.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Force Quit 11 | Launch as root 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /applets/taskmanager/menus/custom-example.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | pmap 10 | xprop 11 | Debug Process 12 | Xrestop Process 13 | Force Quit 14 | 15 | 16 | pmap Taskman 17 | Debug Taskman 18 | Xrestop Taskman 19 | Exit Taskman 20 | 21 | 22 | 23 | Launch as root 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /applets/taskmanager/menus/minimal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /applets/taskmanager/menus/simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /applets/taskmanager/menus/standard.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /applets/taskmanager/task-defines.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | */ 18 | 19 | #ifndef __TASK_MANAGER_DEFINES_H__ 20 | #define __TASK_MANAGER_DEFINES_H__ 21 | 22 | #include 23 | 24 | typedef enum { 25 | USE_DEFAULT = 0, 26 | USE_ALWAYS = 1, 27 | USE_NEVER = 2 28 | } WinIconUse; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /applets/taskmanager/task-drag-indicator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | * 18 | * Authored by Hannes Verschore 19 | * 20 | */ 21 | 22 | #ifndef _TASK_DRAG_INDICATOR_H_ 23 | #define _TASK_DRAG_INDICATOR_H_ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #define TASK_TYPE_DRAG_INDICATOR (task_drag_indicator_get_type ()) 30 | 31 | #define TASK_DRAG_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ 32 | TASK_TYPE_DRAG_INDICATOR, TaskDragIndicator)) 33 | 34 | #define TASK_DRAG_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ 35 | TASK_TYPE_DRAG_INDICATOR, TaskDragIndicatorClass)) 36 | 37 | #define TASK_IS_DRAG_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ 38 | TASK_TYPE_DRAG_INDICATOR)) 39 | 40 | #define TASK_IS_DRAG_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ 41 | TASK_TYPE_DRAG_INDICATOR)) 42 | 43 | #define TASK_DRAG_INDICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ 44 | TASK_TYPE_DRAG_INDICATOR, TaskDragIndicatorClass)) 45 | 46 | typedef struct _TaskDragIndicator TaskDragIndicator; 47 | typedef struct _TaskDragIndicatorClass TaskDragIndicatorClass; 48 | 49 | struct _TaskDragIndicator { 50 | AwnIcon parent; 51 | }; 52 | 53 | struct _TaskDragIndicatorClass { 54 | AwnIconClass parent_class; 55 | 56 | /*< signals >*/ 57 | void (*dest_drag_motion)(TaskDragIndicator* icon); 58 | void (*dest_drag_leave)(TaskDragIndicator* icon); 59 | }; 60 | 61 | GType task_drag_indicator_get_type(void) G_GNUC_CONST; 62 | 63 | GtkWidget* task_drag_indicator_new(); 64 | 65 | void task_drag_indicator_refresh(TaskDragIndicator* drag_indicator); 66 | 67 | #endif /* _TASK_DRAG_INDICATOR_H_ */ 68 | 69 | -------------------------------------------------------------------------------- /applets/taskmanager/task-icon-build-context-menus.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Authored by Rodney Cryderman 19 | * 20 | */ 21 | 22 | #include "task-icon.h" 23 | 24 | #ifndef _TASK_ICON_BUILD_CONTEXT_MENUS_H_ 25 | #define _TASK_ICON_BUILD_CONTEXT_MENUS_H_ 26 | 27 | GtkWidget* task_icon_build_context_menu(TaskIcon* icon); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /applets/taskmanager/task-manager-api-wrapper-dbus.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /applets/taskmanager/task-manager-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | * 18 | */ 19 | 20 | /* task-manager-dialog.h */ 21 | 22 | #ifndef _TASK_MANAGER_DIALOG 23 | #define _TASK_MANAGER_DIALOG 24 | 25 | #include "libawn/awn-dialog.h" 26 | #include "task-item.h" 27 | #include 28 | 29 | #define TASK_TYPE_MANAGER_DIALOG task_manager_dialog_get_type() 30 | 31 | #define TASK_MANAGER_DIALOG(obj) \ 32 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), TASK_TYPE_MANAGER_DIALOG, TaskManagerDialog)) 33 | 34 | #define TASK_MANAGER_DIALOG_CLASS(klass) \ 35 | (G_TYPE_CHECK_CLASS_CAST ((klass), TASK_TYPE_MANAGER_DIALOG, TaskManagerDialogClass)) 36 | 37 | #define TASK_IS_MANAGER_DIALOG(obj) \ 38 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TASK_TYPE_MANAGER_DIALOG)) 39 | 40 | #define TASK_IS_MANAGER_DIALOG_CLASS(klass) \ 41 | (G_TYPE_CHECK_CLASS_TYPE ((klass), TASK_TYPE_MANAGER_DIALOG)) 42 | 43 | #define TASK_MANAGER_DIALOG_GET_CLASS(obj) \ 44 | (G_TYPE_INSTANCE_GET_CLASS ((obj), TASK_TYPE_MANAGER_DIALOG, TaskManagerDialogClass)) 45 | 46 | typedef struct { 47 | AwnDialog parent; 48 | } TaskManagerDialog; 49 | 50 | typedef struct { 51 | AwnDialogClass parent_class; 52 | } TaskManagerDialogClass; 53 | 54 | GType task_manager_dialog_get_type(void); 55 | 56 | GtkWidget* task_manager_dialog_new(GtkWidget* widget, AwnApplet* applet); 57 | 58 | void task_manager_dialog_add(TaskManagerDialog* dialog, TaskItem* item); 59 | 60 | void task_manager_dialog_remove(TaskManagerDialog* dialog, TaskItem* item); 61 | 62 | #endif /* _TASK_MANAGER_DIALOG */ 63 | 64 | -------------------------------------------------------------------------------- /applets/taskmanager/task-manager-panel-connector.h: -------------------------------------------------------------------------------- 1 | /* task-manager-panel-connector.h */ 2 | 3 | #ifndef _TASK_MANAGER_PANEL_CONNECTOR 4 | #define _TASK_MANAGER_PANEL_CONNECTOR 5 | 6 | #include 7 | 8 | #define TASK_MANAGER_TYPE_PANEL_CONNECTOR task_manager_panel_connector_get_type() 9 | 10 | #define TASK_MANAGER_PANEL_CONNECTOR(obj) \ 11 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), TASK_MANAGER_TYPE_PANEL_CONNECTOR, TaskManagerPanelConnector)) 12 | 13 | #define TASK_MANAGER_PANEL_CONNECTOR_CLASS(klass) \ 14 | (G_TYPE_CHECK_CLASS_CAST ((klass), TASK_MANAGER_TYPE_PANEL_CONNECTOR, TaskManagerPanelConnectorClass)) 15 | 16 | #define TASK_MANAGER_IS_PANEL_CONNECTOR(obj) \ 17 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TASK_MANAGER_TYPE_PANEL_CONNECTOR)) 18 | 19 | #define TASK_MANAGER_IS_PANEL_CONNECTOR_CLASS(klass) \ 20 | (G_TYPE_CHECK_CLASS_TYPE ((klass), TASK_MANAGER_TYPE_PANEL_CONNECTOR)) 21 | 22 | #define TASK_MANAGER_PANEL_CONNECTOR_GET_CLASS(obj) \ 23 | (G_TYPE_INSTANCE_GET_CLASS ((obj), TASK_MANAGER_TYPE_PANEL_CONNECTOR, TaskManagerPanelConnectorClass)) 24 | 25 | typedef struct { 26 | GObject parent; 27 | } TaskManagerPanelConnector; 28 | 29 | typedef struct { 30 | GObjectClass parent_class; 31 | } TaskManagerPanelConnectorClass; 32 | 33 | GType task_manager_panel_connector_get_type(void); 34 | 35 | guint task_manager_panel_connector_inhibit_autohide(TaskManagerPanelConnector* conn, const gchar* reason); 36 | void task_manager_panel_connector_uninhibit_autohide(TaskManagerPanelConnector* conn, guint cookie); 37 | 38 | TaskManagerPanelConnector* task_manager_panel_connector_new(gint id); 39 | 40 | #endif /* _TASK_MANAGER_PANEL_CONNECTOR */ 41 | -------------------------------------------------------------------------------- /applets/taskmanager/task-manager.metadata: -------------------------------------------------------------------------------- 1 | TaskManager cheader_filename="task-manager.h" 2 | TaskItem cheader_filename="task-item.h" 3 | TaskIcon cheader_filename="task-icon.h" 4 | TaskWindow cheader_filename="task-window.h" 5 | TaskLauncher cheader_filename="task-launcher.h" 6 | WinIconUse cheader_filename="task-defines.h" 7 | 8 | task_manager_get_icons_by_desktop type_arguments="Icon" transfer_ownership="1" 9 | task_manager_get_icons_by_pid type_arguments="Icon" transfer_ownership="1" 10 | task_manager_get_icons_by_wmclass type_arguments="Icon" transfer_ownership="1" 11 | task_icon_get_items type_arguments="Item" 12 | 13 | TaskItem.icon_overlay weak="0" 14 | TaskItem.progress_overlay weak="0" 15 | TaskItem.text_overlay weak="0" 16 | -------------------------------------------------------------------------------- /applets/taskmanager/task-settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | * 18 | * Authored by Neil Jagdish Patel 19 | * 20 | */ 21 | 22 | #ifndef _TASK_SETTINGS_H 23 | #define _TASK_SETTINGS_H 24 | 25 | #include 26 | 27 | #include 28 | 29 | typedef struct { 30 | gint panel_size; 31 | gint position; 32 | gint offset; 33 | 34 | } TaskSettings; 35 | 36 | TaskSettings* task_settings_get_default(AwnApplet* applet); 37 | 38 | #endif /* _TASK_SETTINGS_H */ 39 | -------------------------------------------------------------------------------- /applets/taskmanager/taskmanager-marshal.list: -------------------------------------------------------------------------------- 1 | VOID:INT,INT 2 | -------------------------------------------------------------------------------- /applets/taskmanager/taskmanager.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | _Name=Launcher/Taskmanager 4 | _Comment=Launcher/Taskmanager applet 5 | Exec=awn-applet -p %k 6 | X-AWN-AppletExec=@LIBAPPLETDIR@/taskmanager/taskmanager.so 7 | Icon=avant-window-navigator 8 | X-AWN-Type=Applet 9 | X-AWN-AppletType=C 10 | X-AWN-AppletCategory=Utility 11 | -------------------------------------------------------------------------------- /applets/taskmanager/util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | */ 18 | 19 | #ifndef __TASK_MANAGER_UTIL_H__ 20 | #define __TASK_MANAGER_UTIL_H__ 21 | 22 | #include 23 | #include 24 | #include "task-defines.h" 25 | 26 | 27 | gchar* get_special_id_from_desktop(DesktopAgnosticFDODesktopEntry* entry); 28 | 29 | gchar* get_special_id_from_window_data(gchar* cmd, gchar* res_name, 30 | gchar* class_name, const gchar* title); 31 | 32 | GSList* get_special_desktop_from_window_data(gchar* cmd, gchar* res_name, 33 | gchar* class_name, 34 | const gchar* title); 35 | 36 | gchar* get_full_cmd_from_pid(gint pid); 37 | 38 | gboolean check_no_display_override(const gchar* fname); 39 | 40 | gboolean check_if_blacklisted(gchar* name); 41 | 42 | gboolean get_special_wait_from_window_data(gchar* res_name, 43 | gchar* class_name, 44 | const gchar* title); 45 | 46 | WinIconUse get_win_icon_use(gchar* cmd, 47 | gchar* res_name, 48 | gchar* class_name, 49 | const gchar* title); 50 | 51 | gboolean utils_gdk_pixbuf_similar_to(GdkPixbuf* i1, GdkPixbuf* i2); 52 | 53 | gboolean usable_desktop_entry(DesktopAgnosticFDODesktopEntry* entry); 54 | 55 | gboolean usable_desktop_file_from_path(const gchar* path); 56 | 57 | char* _desktop_entry_get_localized_name(DesktopAgnosticFDODesktopEntry* entry); 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /applets/taskmanager/xutils.h: -------------------------------------------------------------------------------- 1 | /* Xlib utilities */ 2 | /* vim: set sw=2 et: */ 3 | 4 | /* 5 | * Copyright (C) 2001 Havoc Pennington 6 | * Copyright (C) 2005-2007 Vincent Untz 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the 20 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 21 | * Boston, MA 02111-1307, USA. 22 | */ 23 | 24 | #ifndef WNCK_XUTILS_H 25 | #define WNCK_XUTILS_H 26 | 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | void 34 | _wnck_get_wmclass(Window xwindow, 35 | char** res_class, 36 | char** res_name); 37 | 38 | void 39 | _wnck_get_client_name(Window xwindow, 40 | char** client_name); 41 | 42 | GdkPixbuf* 43 | _wnck_get_icon_at_size(WnckWindow* window, 44 | gint width, 45 | gint height); 46 | 47 | GdkPixbuf* 48 | xutils_get_named_icon(const gchar* icon_name, 49 | gint width, 50 | gint height); 51 | 52 | #endif /* WNCK_XUTILS_H */ 53 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Run this to generate all the initial makefiles, etc. 3 | 4 | srcdir=`dirname $0` 5 | test -z "$srcdir" && srcdir=. 6 | 7 | PKG_NAME="avant-window-navigator" 8 | 9 | (test -f $srcdir/configure.ac \ 10 | && test -f $srcdir/autogen.sh) || { 11 | echo -n "**Error**: Directory \`$srcdir' does not look like the" 12 | echo " top-level $PKG_NAME directory" 13 | exit 1 14 | } 15 | 16 | if which gnome-autogen.sh ; then 17 | REQUIRED_AUTOMAKE_VERSION=1.9 . gnome-autogen.sh 18 | else 19 | if which intltoolize && which gtkdocize && which autoreconf ; then 20 | intltoolize --copy --force --automake || \ 21 | (echo "There was an error in running intltoolize." > /dev/stderr; 22 | exit 1) 23 | gtkdocize --copy || \ 24 | (echo "There was an error in running gtkdocize." > /dev/stderr; 25 | exit 1) 26 | autoreconf --force --install || \ 27 | (echo "There was an error in running autoreconf." > /dev/stderr; 28 | exit 1) 29 | else 30 | echo "No build script available. You have two choices:" 31 | echo "1. You need to install the gnome-common module and make" 32 | echo " sure the gnome-autogen.sh script is in your \$PATH." 33 | echo "2. You need to install the following scripts:" 34 | echo " * intltool" 35 | echo " * gtk-doc" 36 | echo " * libtool" 37 | echo " * automake" 38 | echo " * autoconf" 39 | echo " Additionally, you need to make" 40 | echo " sure that they are in your \$PATH." 41 | exit 1 42 | fi 43 | fi 44 | 45 | -------------------------------------------------------------------------------- /awn-settings/Makefile.am: -------------------------------------------------------------------------------- 1 | APP_ICON_NAME = awn-settings 2 | DESKTOP_BASENAME = awn-settings 3 | desktopdir = $(datarootdir)/applications 4 | include $(top_srcdir)/Makefile.app-icons 5 | include $(top_srcdir)/Makefile.desktop-files 6 | 7 | python_files = \ 8 | awn_class.py \ 9 | awn_settings_helper.py \ 10 | awn_settings.py \ 11 | $(NULL) 12 | 13 | generated_python_files = \ 14 | awn_defs.py \ 15 | awn_settings_launcher.py \ 16 | $(NULL) 17 | 18 | pyfiles_DATA = \ 19 | $(python_files) \ 20 | $(generated_python_files) \ 21 | $(NULL) 22 | pyfilesdir = $(pkgdatadir)/awn-settings 23 | 24 | ui_DATA = \ 25 | awn-settings.ui \ 26 | $(NULL) 27 | 28 | uidir = $(pkgdatadir)/awn-settings 29 | 30 | # icon-related 31 | 32 | categoryicondir = $(datadir)/icons/hicolor/scalable/categories 33 | dist_categoryicon_DATA = \ 34 | awn-plugins.svg \ 35 | $(NULL) 36 | 37 | gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor 38 | install-data-hook: update-icon-cache 39 | uninstall-hook: update-icon-cache 40 | update-icon-cache: 41 | @-if test -z "$(DESTDIR)"; then \ 42 | echo "Updating Gtk icon cache."; \ 43 | $(gtk_update_icon_cache); \ 44 | else \ 45 | echo "*** Icon cache not updated. After (un)install, run this:"; \ 46 | echo "*** $(gtk_update_icon_cache)"; \ 47 | fi 48 | 49 | install-exec-local: 50 | test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)" 51 | $(INSTALL) -m 755 awn_settings_launcher.py "$(DESTDIR)$(bindir)/awn-settings" 52 | 53 | uninstall-local: 54 | rm -f $(DESTDIR)$(bindir)/awn-settings 55 | 56 | EXTRA_DIST += \ 57 | $(python_files) \ 58 | $(generated_python_files:.py=.py.in) \ 59 | $(ui_DATA) \ 60 | $(desktop_DATA:.desktop=.desktop.in) \ 61 | $(NULL) 62 | -------------------------------------------------------------------------------- /awn-settings/awn-settings.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | _Name=Awn Settings 4 | _Comment=Manage Awn preferences, launchers, applets and themes 5 | Exec=awn-settings 6 | Icon=awn-settings 7 | Categories=Settings;DesktopSettings;GTK; 8 | 9 | -------------------------------------------------------------------------------- /awn-settings/awn-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/awn-settings/awn-settings.png -------------------------------------------------------------------------------- /awn-settings/awn_settings_launcher.py.in: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # 3 | # Copyright (C) 2013 Povilas Kanapickas 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 2 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 | # 19 | 20 | import os 21 | import sys 22 | 23 | PLAT_PKG = '@PY_PLAT_PKG@' 24 | SITE_PKG = '@PY_SITE_PKG@' 25 | 26 | AWN_SETTINGS_DIR = os.path.join('@PKGDATADIR@', 'awn-settings') 27 | sys.path = [AWN_SETTINGS_DIR] + sys.path 28 | if PLAT_PKG not in sys.path: 29 | sys.path = [PLAT_PKG] + sys.path 30 | if SITE_PKG not in sys.path: 31 | sys.path = [SITE_PKG] + sys.path 32 | 33 | from awn_settings import main 34 | 35 | if __name__ == "__main__": 36 | main(sys.argv[1:]) 37 | -------------------------------------------------------------------------------- /awn.config: -------------------------------------------------------------------------------- 1 | 2 | #define DOXYGEN_SHOULD_SKIP_THIS 3 | #define __cplusplus 201103L 4 | -------------------------------------------------------------------------------- /awn.creator: -------------------------------------------------------------------------------- 1 | [General] 2 | -------------------------------------------------------------------------------- /awn.includes: -------------------------------------------------------------------------------- 1 | . 2 | /usr/include/gtk-2.0 3 | /usr/include/glib-2.0 4 | /usr/include/dbus-1.0 5 | /usr/include/libwnck-1.0 6 | /usr/include/gdk-pixbuf-2.0 7 | /usr/include/libdesktop-agnostic-1.0 8 | /usr/include/glibmm-2.4 9 | /usr/include/gtkmm-2.4 10 | /usr/include/giomm-2.4 11 | -------------------------------------------------------------------------------- /awn.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | vapidir=@datarootdir@/vala/vapi 6 | 7 | Name: libawn 8 | Description: Avant-Window-Navigator applets/plugin library 9 | Version: @VERSION@ 10 | Libs: -L${libdir} -lawn 11 | Cflags: -I${includedir} 12 | Requires: @LIBRARY_MODULES@ 13 | -------------------------------------------------------------------------------- /bindings/python/Makefile.am: -------------------------------------------------------------------------------- 1 | # shave-related 2 | V = @ 3 | Q = $(V:1=) 4 | QUIET_GEN = $(Q:@=@echo ' GEN '$@;) 5 | 6 | NULL = 7 | 8 | # awn python scripts 9 | pyawndir = $(pyexecdir)/awn 10 | pyawn_PYTHON = __init__.py 11 | 12 | AM_CPPFLAGS = \ 13 | $(PYTHON_CPPFLAGS) \ 14 | $(PYGTK_CFLAGS) \ 15 | $(AWN_CFLAGS) \ 16 | -I$(top_srcdir) \ 17 | -I$(top_builddir)/libawn \ 18 | $(NULL) 19 | 20 | # awn python extensions 21 | pyawnexecdir = $(pyexecdir)/awn 22 | pyawnexec_LTLIBRARIES = awn.la 23 | 24 | common_ldflags = -module -avoid-version 25 | 26 | AWN_DEFS = awn.defs 27 | CLEANFILES = awn.c 28 | EXTRA_DIST = $(AWN_DEFS) awn.override __init__.py.in 29 | awn.c: $(AWN_DEFS) awn.override 30 | 31 | awn_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initawn 32 | 33 | awn_la_LIBADD = \ 34 | $(PYTHON_LDFLAGS) \ 35 | $(PYTHON_EXTRA_LIBS) \ 36 | $(PYTHON_EXTRA_LDFLAGS) \ 37 | $(PYGTK_LIBS) \ 38 | $(AWN_LIBS) \ 39 | $(top_builddir)/libawn/libawn.la \ 40 | $(NULL) 41 | 42 | awn_la_SOURCES = awnmodule.c 43 | nodist_awn_la_SOURCES = awn.c 44 | 45 | defsdir = $(datarootdir)/pygtk/2.0/defs 46 | defs_DATA = $(AWN_DEFS) 47 | 48 | # code generator 49 | .defs.c: 50 | $(QUIET_GEN)($(PYG_CODEGEN) \ 51 | -I $(srcdir) \ 52 | --py_ssize_t-clean \ 53 | --register $(PYGTK_DEFSDIR)/gdk-types.defs \ 54 | --register $(PYGTK_DEFSDIR)/gtk-types.defs \ 55 | --register $(LDA_DEFSDIR)/desktopagnostic.defs \ 56 | --register $(LDA_DEFSDIR)/desktopagnostic_config.defs \ 57 | --override $(srcdir)/$*.override \ 58 | --prefix py$* $<) > gen-$*.c \ 59 | && cp -f gen-$*.c $*.c \ 60 | && rm -f gen-$*.c 61 | -------------------------------------------------------------------------------- /bindings/python/awnmodule.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007 Neil Jagdish Patel 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, write to the 16 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 | * Boston, MA 02111-1307, USA. 18 | */ 19 | 20 | #ifdef HAVE_CONFIG_H 21 | #include "config.h" 22 | #endif 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | /* the following symbols are declared in awn.c: */ 37 | void pyawn_add_constants (PyObject *module, const gchar *strip_prefix); 38 | void pyawn_register_classes (PyObject *d); 39 | extern PyMethodDef pyawn_functions[]; 40 | 41 | Pycairo_CAPI_t *Pycairo_CAPI; 42 | 43 | void sink_awnoverlay (GObject *object) 44 | { 45 | if (g_object_is_floating (object)) 46 | { 47 | g_object_ref_sink (object); 48 | } 49 | } 50 | 51 | DL_EXPORT (void) 52 | initawn (void) 53 | { 54 | PyObject *m, *d; 55 | 56 | init_pygobject (); 57 | 58 | Pycairo_IMPORT; 59 | if (PyImport_ImportModule ("gtk") == NULL) { 60 | PyErr_SetString (PyExc_ImportError, 61 | "could not import gtk"); 62 | return; 63 | } 64 | 65 | pygobject_register_sinkfunc (AWN_TYPE_OVERLAY, sink_awnoverlay); 66 | 67 | m = Py_InitModule ("awn", pyawn_functions); 68 | d = PyModule_GetDict (m); 69 | 70 | pyawn_register_classes (d); 71 | pyawn_add_constants (m, "AWN_"); 72 | 73 | PyModule_AddIntConstant (m, "PANEL_ID_DEFAULT", AWN_PANEL_ID_DEFAULT); 74 | 75 | if (PyErr_Occurred ()) { 76 | Py_FatalError ("unable to initialise awn module"); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /bindings/vala/Makefile.am: -------------------------------------------------------------------------------- 1 | # adapted from vala's vapi/Makefile.am 2 | NULL = 3 | 4 | include $(top_srcdir)/Makefile.shave 5 | 6 | vapidir = $(datadir)/vala/vapi 7 | 8 | dist_vapi_DATA = \ 9 | awn.vapi \ 10 | awn.deps \ 11 | $(NULL) 12 | 13 | dist_noinst_DATA = \ 14 | awn.exclude \ 15 | awn.files \ 16 | awn.gi \ 17 | awn.metadata \ 18 | awn.namespace \ 19 | awn-custom.vala \ 20 | $(NULL) 21 | 22 | VAPIGEN_INPUT = \ 23 | awn.gi \ 24 | awn-custom.vala \ 25 | $(NULL) 26 | 27 | EXTRA_DIST = \ 28 | build.vapi \ 29 | libintl.vapi 30 | 31 | if MAINTAINER_MODE 32 | awn.gi: awn.exclude awn.files awn.namespace 33 | $(QUIET_GEN)$(VALA_GEN_INTROSPECT) awn $(srcdir) 34 | 35 | awn.vapi: $(VAPIGEN_INPUT) awn.metadata awn.deps 36 | $(QUIET_GEN)$(VAPIGEN) --library=awn --vapidir=$(LDA_VAPIDIR) \ 37 | $(VAPIGEN_INPUT) 38 | endif 39 | -------------------------------------------------------------------------------- /bindings/vala/awn.deps: -------------------------------------------------------------------------------- 1 | atk 2 | cairo 3 | pango 4 | gio-2.0 5 | gdk-2.0 6 | gdk-pixbuf-2.0 7 | gtk+-2.0 8 | desktop-agnostic 9 | desktop-agnostic-cfg 10 | -------------------------------------------------------------------------------- /bindings/vala/awn.exclude: -------------------------------------------------------------------------------- 1 | include/libawn/libawn.h 2 | -------------------------------------------------------------------------------- /bindings/vala/awn.files: -------------------------------------------------------------------------------- 1 | include/libawn 2 | lib/libawn.so 3 | -------------------------------------------------------------------------------- /bindings/vala/awn.metadata: -------------------------------------------------------------------------------- 1 | Awn cprefix="Awn" lower_case_cprefix="awn_" cheader_filename="libawn/libawn.h" 2 | 3 | AwnAppletSimple::context_menu_popup.event namespace_name="Gdk" type_name="EventButton" 4 | AwnIcon::context_menu_popup.event namespace_name="Gdk" type_name="EventButton" 5 | 6 | awn_applet_simple_set_icon_info.states no_array_length="1" 7 | awn_applet_simple_set_icon_info.icon_names no_array_length="1" 8 | awn_cairo_pattern_add_color_stop_color hidden="1" 9 | awn_cairo_pattern_add_color_stop_color_with_alpha_multiplier hidden="1" 10 | awn_cairo_rounded_rect hidden="1" 11 | awn_cairo_rounded_rect_shadow hidden="1" 12 | awn_cairo_set_source_color hidden="1" 13 | awn_cairo_set_source_color_with_alpha_multiplier hidden="1" 14 | awn_cairo_set_source_color_with_multipliers hidden="1" 15 | awn_config_free hidden="1" 16 | awn_config_get_default hidden="1" 17 | awn_config_get_default_for_applet hidden="1" 18 | awn_config_get_default_for_applet_by_info hidden="1" 19 | awn_icon_clicked hidden="1" 20 | awn_icon_middle_clicked hidden="1" 21 | awn_themed_icon_get_icon_at_size transfer_ownership="1" 22 | awn_themed_icon_set_info.states no_array_length="1" 23 | awn_themed_icon_set_info.icon_names no_array_length="1" 24 | awn_utils_ensure_transparent_bg hidden="1" 25 | awn_utils_get_offset_modifier_by_path_type hidden="1" 26 | awn_utils_gslist_to_gvaluearray hidden="1" 27 | awn_utils_make_transparent_bg hidden="1" 28 | awn_utils_show_menu_images hidden="1" 29 | 30 | AwnOverlayProgress abstract="1" 31 | AwnAppletInitPFunc value_owned="1" 32 | 33 | awn_applet_create_about_item.comments nullable="1" 34 | awn_applet_create_about_item.website nullable="1" 35 | awn_applet_create_about_item.website_label nullable="1" 36 | awn_applet_create_about_item.icon_name nullable="1" 37 | awn_applet_create_about_item.translator_credits nullable="1" 38 | awn_applet_create_about_item.authors is_array="1" array_null_terminated="1" nullable="1" 39 | awn_applet_create_about_item.artists is_array="1" array_null_terminated="1" nullable="1" 40 | awn_applet_create_about_item.documenters is_array="1" array_null_terminated="1" nullable="1" 41 | 42 | awn_overlay_pixbuf_file_new.file_name nullable="1" 43 | -------------------------------------------------------------------------------- /bindings/vala/awn.namespace: -------------------------------------------------------------------------------- 1 | Awn 2 | -------------------------------------------------------------------------------- /bindings/vala/build.vapi: -------------------------------------------------------------------------------- 1 | [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] 2 | namespace Build { 3 | public const string APPLETSDIR; 4 | public const string GETTEXT_PACKAGE; 5 | public const string LOCALEDIR; 6 | public const string VERSION; 7 | } 8 | 9 | // vim: set noet : 10 | -------------------------------------------------------------------------------- /bindings/vala/libintl.vapi: -------------------------------------------------------------------------------- 1 | [CCode (cheader_filename = "glib.h,glib/gi18n.h", cprefix = "", lower_case_cprefix = "")] 2 | namespace GLib.Gettext { 3 | public static unowned string _ (string msgid); 4 | public static unowned string ngettext (string msgid, string msgid_plural, ulong n); 5 | public static unowned string? bindtextdomain (string domainname, string? dirname); 6 | public static unowned string? textdomain (string? domainname); 7 | } 8 | 9 | // vim: set noet ts=4 sts=4 sw=4 : 10 | -------------------------------------------------------------------------------- /data/Makefile.am: -------------------------------------------------------------------------------- 1 | APP_ICON_NAME = avant-window-navigator 2 | DESKTOP_BASENAME = avant-window-navigator 3 | desktopdir = $(datarootdir)/applications 4 | include $(top_srcdir)/Makefile.app-icons 5 | include $(top_srcdir)/Makefile.desktop-files 6 | include $(top_srcdir)/Makefile.shave 7 | include $(top_srcdir)/Makefile.schemas 8 | 9 | icons = avant-window-navigator-24.png avant-window-navigator-32.png 10 | 11 | # icon-related 12 | 13 | # I have no idea where else to put it. 14 | fallbackicondir = $(datadir)/icons/hicolor/scalable/apps 15 | fallbackicon_DATA = \ 16 | awn-window-fallback.svg \ 17 | $(NULL) 18 | 19 | install-icons: 20 | mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/24x24/apps 21 | mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/32x32/apps 22 | $(INSTALL) -m644 $(srcdir)/avant-window-navigator-24.png $(DESTDIR)$(datadir)/icons/hicolor/24x24/apps/avant-window-navigator.png 23 | $(INSTALL) -m644 $(srcdir)/avant-window-navigator-32.png $(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/avant-window-navigator.png 24 | 25 | gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor 26 | install-data-hook: update-icon-cache 27 | uninstall-hook: update-icon-cache 28 | update-icon-cache: 29 | @-if test -z "$(DESTDIR)"; then \ 30 | echo "Updating Gtk icon cache."; \ 31 | $(gtk_update_icon_cache); \ 32 | else \ 33 | echo "*** Icon cache not updated. After (un)install, run this:"; \ 34 | echo "*** $(gtk_update_icon_cache)"; \ 35 | fi 36 | 37 | dist_pkg_DATA = \ 38 | awn-themed-icon.ui \ 39 | index.theme 40 | 41 | pkgdir = $(pkgdatadir) 42 | 43 | # config-related 44 | 45 | schema_in_files = avant-window-navigator.schema-ini.in 46 | 47 | # global 48 | 49 | install-data-local: install-gconf-schemas install-icons 50 | 51 | uninstall-local: 52 | rm -f $(DESTDIR)$(datadir)/icons/hicolor/24x24/apps/avant-window-navigator.png 53 | rm -f $(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/avant-window-navigator.png 54 | 55 | EXTRA_DIST += \ 56 | $(icons) \ 57 | $(text_DATA) \ 58 | $(desktop_DATA:.desktop=.desktop.in) \ 59 | $(schema_in_files:.schema-ini.in=.schema-ini.in.in) \ 60 | active/spotlight_png_inline.cc \ 61 | awn-window-fallback.svg \ 62 | $(NULL) 63 | 64 | CLEANFILES += $(schemas_DATA) $(schema_in_DATA) $(schema_DATA) 65 | -------------------------------------------------------------------------------- /data/active/spotlight1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/data/active/spotlight1.png -------------------------------------------------------------------------------- /data/active/spotlight2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/data/active/spotlight2.png -------------------------------------------------------------------------------- /data/avant-window-navigator-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/data/avant-window-navigator-24.png -------------------------------------------------------------------------------- /data/avant-window-navigator-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/data/avant-window-navigator-32.png -------------------------------------------------------------------------------- /data/avant-window-navigator.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | _Name=Avant Window Navigator 4 | _Comment=A dock-like window navigator. 5 | Exec=avant-window-navigator 6 | Icon=avant-window-navigator 7 | Categories=GNOME;Utility; 8 | -------------------------------------------------------------------------------- /data/avant-window-navigator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/data/avant-window-navigator.png -------------------------------------------------------------------------------- /data/index.theme: -------------------------------------------------------------------------------- 1 | [Icon Theme] 2 | Name=awn-theme 3 | 4 | Directories=scalable 5 | 6 | [scalable] 7 | Size=48 8 | MaxSize=256 9 | Context=Apps 10 | Type=Scalable 11 | 12 | -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = reference 2 | -------------------------------------------------------------------------------- /doc/PPA_autoppa: -------------------------------------------------------------------------------- 1 | HowTo use PPA and autoppa 2 | ================= 3 | 4 | Require: 5 | - Be admin of the team 6 | - Install package dput seahorse and devscript 7 | - Had a OpenPGP key uploaded to Launchpad 8 | 9 | Using autoPPA: 10 | 11 | You can use this repository for Ubuntu 12 | deb http://ppa.launchpad.net/autoppa/ubuntu gutsy universe 13 | deb-src http://ppa.launchpad.net/autoppa/ubuntu gutsy universe 14 | 15 | For Debian, add "deb-src http://ppa.launchpad.net/autoppa/ubuntu gutsy universe" 16 | Download source : apt-get source autoppa 17 | Build autoppa : dpkg-buildpackage -rfakeroot 18 | Install the deb 19 | 20 | 1.Set up the branch 21 | To build the package, you should create a new branch : bzr branch http://bazaar.launchpad.net/~awn-testing/awn/awn-core-testing awn-core-testing-package 22 | 23 | 2. Configure your dput configuration 24 | Edit a .dput.conf file in your home directory with this type of configuration 25 | 26 | [awn-testing] 27 | fqdn = ppa.launchpad.net 28 | method = ftp 29 | incoming = ~awn-testing/ubuntu/ 30 | login = anonymous 31 | allow_unsigned_uploads = 0 32 | 33 | 3. Configure autoppa 34 | Edit a .autoppa.conf in your home directory with this type of configuration 35 | 36 | [avant-window-navigator-testing] 37 | email = John Doe 38 | branch = /path/to/the/branch/awn-core-testing-package 39 | repository = /path/to/the/branch/awn-core-testing-package 40 | ppa = awn-testing 41 | releases = edgy feisty gutsy hardy 42 | 43 | 4. Configure devscripts 44 | Backup your devscripts if you have one : cp ~/.devscripts ~/.devscripts-backup 45 | Create the devscripts file : cp /usr/share/devscripts/conf.default ~/.devscripts 46 | Edit ~/.devscripts, find the ‘# DEBUILD_PRESERVE_ENVVARS=""‘ line and 47 | replace it with: 48 | DEBUILD_PRESERVE_ENVVARS="DISPLAY" 49 | 50 | 5. Use autoPPA 51 | To build : 52 | - Launch the command for example : "EDITOR=nano autoppa avant-window-navigator-testing-0.2.2~bzr156-1" 53 | - Write a changelog (like "Build Revision 156") 54 | - Ctrl+o to save, Ctrl+x to quit and launch the build 55 | avant-window-navigator-testing : the name of the package (can't be changed) 56 | -0.2.2 : the version 57 | ~bzr156 : the revision of the branch 58 | -1 : the revision of the package 59 | To upload a new package, the revision must be higher (first the branch, after the package) 60 | Examples : 61 | 0.2.2~bzr156-1 is higher than 0.2.2~bzr155-4 62 | 0.2.2~bzr157-2 is higher than 0.2.2~bzr157-1 63 | The final version will be avant-window-navigator-testing-0.2.2~bzr156-ubuntu1-1 64 | where ubuntu is the version of ubuntu 65 | 66 | Links: 67 | https://help.launchpad.net/PPAQuickStart 68 | http://news.launchpad.net/ppa/introducing-autoppa 69 | -------------------------------------------------------------------------------- /doc/reference/libawn-docs.sgml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | Awn Reference Manual 7 | 8 | 9 | 10 | API Reference 11 | 12 | Applets 13 | 14 | 15 | 16 | 17 | Base Components 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Icons 29 | 30 | 31 | 32 | 33 | 34 | Icon Overlays 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Utilities 46 | 47 | 48 | 49 | 50 | 51 | 52 | Index 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /doc/reference/libawn-overrides.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/doc/reference/libawn-overrides.txt -------------------------------------------------------------------------------- /doc/reference/libawn.types: -------------------------------------------------------------------------------- 1 | awn_overlay_progress_circle_get_type 2 | awn_tooltip_get_type 3 | awn_overlay_pixbuf_file_get_type 4 | awn_overlay_themed_icon_get_type 5 | awn_overlay_progress_get_type 6 | awn_image_get_type 7 | awn_overlay_text_get_type 8 | awn_themed_icon_get_type 9 | awn_alignment_get_type 10 | awn_effects_get_type 11 | awn_applet_simple_get_type 12 | awn_label_get_type 13 | awn_box_get_type 14 | awn_icon_get_type 15 | awn_applet_get_type 16 | awn_dialog_get_type 17 | awn_overlay_pixbuf_get_type 18 | awn_icon_box_get_type 19 | awn_overlayable_get_type 20 | awn_overlay_throbber_get_type 21 | awn_overlay_get_type 22 | -------------------------------------------------------------------------------- /doc/waf: -------------------------------------------------------------------------------- 1 | waf support 2 | =========== 3 | 4 | Statut : Imcomplete 5 | 6 | TODO 7 | - Add pyawn directory 8 | - Add awn.pc.in support 9 | - src/ dbus stuff : waf doesn't name it as autotools do 10 | - libawn/ Generate awn-enum-types.{c|h} 11 | - Others stuff (check the #TODO in waf files) 12 | - Test installation 13 | 14 | Principe 15 | - All in Python 16 | - Files are build in a subdirectory (build/) So you can use autotools or waf 17 | - Basic command : ./waf configure ./waf build (-p for nice progress bar) ./waf install ./waf uninstall ./waf dist ./waf clean 18 | - waf is a executable script which extract tools for building 19 | - wscript and wscript_build are files for configure build (like configure.in and Makefile.am) 20 | - You can put all instruction in the top directory wscript but to simplify debug, I put some wscript_build in subdirectory 21 | - To migrate a directory, just try to write the Makefile into waf. 22 | 23 | Links 24 | - Homepage : http://code.google.com/p/waf/ 25 | - SVN : svn checkout http://waf.googlecode.com/svn/trunk/ waf-read-only 26 | - There is good examples in the SVN dir ( most interested in demos/gnome and demos/adv) 27 | - Other examples (semantik and PackageKit are good) : http://code.google.com/p/waf/wiki/ProjectsUsingWaf 28 | - Wiki (some stuff is outdate) : http://code.google.com/p/waf/w/list 29 | - Internal code : http://freehackers.org/~tnagy/wafdoc/index.html 30 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-bounce.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_BOUNCE_H__ 20 | #define __AWN_EFFECT_BOUNCE_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean bounce_effect(AwnEffectsAnimation* anim); 25 | gboolean bounce_hover_effect(AwnEffectsAnimation* anim); 26 | gboolean bounce_opening_effect(AwnEffectsAnimation* anim); 27 | gboolean bounce_effect_finalize(AwnEffectsAnimation* anim); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-desaturate.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifdef HAVE_CONFIG_H 19 | #include 20 | #endif 21 | 22 | #include "awn-effect-desaturate.h" 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | gboolean 29 | desaturate_effect(AwnEffectsAnimation* anim) 30 | { 31 | AwnEffectsPrivate* priv = anim->effects->priv; 32 | 33 | AWN_ANIMATION_INIT(anim) { 34 | priv->direction = AWN_EFFECT_DIR_DOWN; 35 | priv->saturation = 1.0; 36 | } 37 | 38 | const gdouble DESATURATION_STEP = 0.04; 39 | 40 | switch (priv->direction) { 41 | 42 | case AWN_EFFECT_DIR_DOWN: 43 | priv->saturation -= DESATURATION_STEP; 44 | 45 | if (priv->saturation < 0) { 46 | priv->saturation = 0; 47 | } 48 | 49 | if (awn_effect_check_top_effect(anim, NULL)) { 50 | awn_effects_redraw(anim->effects); 51 | if (priv->saturation > 0) { 52 | return TRUE; 53 | } else { 54 | return awn_effect_suspend_animation(anim, 55 | (GSourceFunc)desaturate_effect); 56 | } 57 | } else { 58 | priv->direction = AWN_EFFECT_DIR_UP; 59 | } 60 | 61 | break; 62 | 63 | case AWN_EFFECT_DIR_UP: 64 | 65 | default: 66 | priv->saturation += DESATURATION_STEP; 67 | } 68 | 69 | /* repaint widget */ 70 | awn_effects_redraw(anim->effects); 71 | 72 | gboolean repeat = TRUE; 73 | 74 | if (priv->saturation >= 1.0) { 75 | priv->saturation = 1.0; 76 | priv->direction = AWN_EFFECT_DIR_DOWN; 77 | /* check for repeating */ 78 | repeat = awn_effect_handle_repeating(anim); 79 | } 80 | 81 | return repeat; 82 | } 83 | 84 | gboolean 85 | desaturate_effect_finalize(AwnEffectsAnimation* anim) 86 | { 87 | 88 | return TRUE; 89 | } 90 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-desaturate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_DESATURATE_H__ 20 | #define __AWN_EFFECT_DESATURATE_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean desaturate_effect(AwnEffectsAnimation* anim); 25 | gboolean desaturate_effect_finalize(AwnEffectsAnimation* anim); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-fade.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_FADE_H__ 20 | #define __AWN_EFFECT_FADE_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean fade_out_effect(AwnEffectsAnimation* anim); 25 | gboolean fading_effect(AwnEffectsAnimation* anim); 26 | gboolean fading_hover_effect(AwnEffectsAnimation* anim); 27 | gboolean fading_effect_finalize(AwnEffectsAnimation* anim); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-glow.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_GLOW_H__ 20 | #define __AWN_EFFECT_GLOW_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean glow_effect(AwnEffectsAnimation* anim); 25 | gboolean glow_opening_effect(AwnEffectsAnimation* anim); 26 | gboolean glow_closing_effect(AwnEffectsAnimation* anim); 27 | gboolean glow_attention_effect(AwnEffectsAnimation* anim); 28 | gboolean glow_effect_finalize(AwnEffectsAnimation* anim); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-simple.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_SIMPLE_H__ 20 | #define __AWN_EFFECT_SIMPLE_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean simple_hover_effect(AwnEffectsAnimation* anim); 25 | gboolean simple_attention_effect(AwnEffectsAnimation* anim); 26 | gboolean simple_opening_effect(AwnEffectsAnimation* anim); 27 | gboolean simple_closing_effect(AwnEffectsAnimation* anim); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-spotlight.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_SPOTLIGHT_H__ 20 | #define __AWN_EFFECT_SPOTLIGHT_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean spotlight_hover_effect(AwnEffectsAnimation* anim); 25 | gboolean spotlight_half_fade_effect(AwnEffectsAnimation* anim); 26 | gboolean spotlight_opening_effect(AwnEffectsAnimation* anim); 27 | gboolean spotlight_closing_effect(AwnEffectsAnimation* anim); 28 | void spotlight_init(); 29 | gboolean spotlight_effect_finalize(AwnEffectsAnimation* anim); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-spotlight3d.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_SPOTLIGHT3D_H__ 20 | #define __AWN_EFFECT_SPOTLIGHT3D_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean spotlight3D_effect(AwnEffectsAnimation* anim); 25 | gboolean spotlight3D_hover_effect(AwnEffectsAnimation* anim); 26 | gboolean spotlight3D_opening_effect(AwnEffectsAnimation* anim); 27 | gboolean spotlight3D_closing_effect(AwnEffectsAnimation* anim); 28 | gboolean spotlight3D_effect_finalize(AwnEffectsAnimation* anim); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-squish.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_SQUISH_H__ 20 | #define __AWN_EFFECT_SQUISH_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean bounce_squish_closing_effect(AwnEffectsAnimation* anim); 25 | gboolean bounce_squish_opening_effect(AwnEffectsAnimation* anim); 26 | gboolean bounce_squish_attention_effect(AwnEffectsAnimation* anim); 27 | gboolean bounce_squish_hover_effect(AwnEffectsAnimation* anim); 28 | gboolean bounce_squish_effect(AwnEffectsAnimation* anim); 29 | gboolean bounce_squish_effect_finalize(AwnEffectsAnimation* anim); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-turn.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_TURN_H__ 20 | #define __AWN_EFFECT_TURN_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean turn_hover_effect(AwnEffectsAnimation* anim); 25 | gboolean turn_effect(AwnEffectsAnimation* anim); 26 | gboolean turn_opening_effect(AwnEffectsAnimation* anim); 27 | gboolean turn_closing_effect(AwnEffectsAnimation* anim); 28 | gboolean turn_effect_finalize(AwnEffectsAnimation* anim); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /libawn/anims/awn-effect-zoom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | 19 | #ifndef __AWN_EFFECT_ZOOM_H__ 20 | #define __AWN_EFFECT_ZOOM_H__ 21 | 22 | #include "awn-effects-shared.h" 23 | 24 | gboolean zoom_effect(AwnEffectsAnimation* anim); 25 | gboolean zoom_attention_effect(AwnEffectsAnimation* anim); 26 | gboolean zoom_opening_effect(AwnEffectsAnimation* anim); 27 | gboolean zoom_closing_effect(AwnEffectsAnimation* anim); 28 | gboolean zoom_effect_finalize(AwnEffectsAnimation* anim); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /libawn/awn-alignment.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Author : Michal Hruby 18 | */ 19 | 20 | #ifndef __AWN_ALIGNMENT_H__ 21 | #define __AWN_ALIGNMENT_H__ 22 | 23 | #include 24 | 25 | #include "awn-defines.h" 26 | #include "awn-applet.h" 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #define AWN_TYPE_ALIGNMENT (awn_alignment_get_type ()) 33 | 34 | #define AWN_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ 35 | AWN_TYPE_ALIGNMENT,\ 36 | AwnAlignment)) 37 | 38 | #define AWN_ALIGNMENT_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), \ 39 | AWN_TYPE_ALIGNMENT, \ 40 | AwnAlignmentClass)) 41 | 42 | #define AWN_IS_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ 43 | AWN_TYPE_ALIGNMENT)) 44 | 45 | #define AWN_IS_ALIGNMENT_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 46 | AWN_TYPE_ALIGNMENT)) 47 | 48 | #define AWN_ALIGNMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 49 | AWN_TYPE_ALIGNMENT, \ 50 | AwnAlignmentClass)) 51 | 52 | typedef struct _AwnAlignment AwnAlignment; 53 | typedef struct _AwnAlignmentClass AwnAlignmentClass; 54 | typedef struct _AwnAlignmentPrivate AwnAlignmentPrivate; 55 | 56 | struct _AwnAlignment { 57 | GtkAlignment parent; 58 | 59 | AwnAlignmentPrivate* priv; 60 | }; 61 | 62 | struct _AwnAlignmentClass { 63 | GtkAlignmentClass parent_class; 64 | 65 | /* Future padding */ 66 | void (*_alignment0)(void); 67 | void (*_alignment1)(void); 68 | void (*_alignment2)(void); 69 | void (*_alignment3)(void); 70 | }; 71 | 72 | GType awn_alignment_get_type(void); 73 | 74 | GtkWidget* awn_alignment_new_for_applet(AwnApplet* applet); 75 | 76 | gint awn_alignment_get_offset_modifier(AwnAlignment* alignment); 77 | 78 | void awn_alignment_set_offset_modifier(AwnAlignment* alignment, 79 | gint modifier); 80 | 81 | #ifdef __cplusplus 82 | } // extern "C" 83 | #endif 84 | 85 | 86 | #endif 87 | -------------------------------------------------------------------------------- /libawn/awn-box.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | */ 18 | 19 | #ifndef _AWN_BOX_H_ 20 | #define _AWN_BOX_H_ 21 | 22 | #include 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | #define AWN_TYPE_BOX (awn_box_get_type ()) 29 | 30 | #define AWN_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ 31 | AWN_TYPE_BOX, AwnBox)) 32 | 33 | #define AWN_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ 34 | AWN_TYPE_BOX, AwnBoxClass)) 35 | 36 | #define AWN_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ 37 | AWN_TYPE_BOX)) 38 | 39 | #define AWN_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ 40 | AWN_TYPE_BOX)) 41 | 42 | #define AWN_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ 43 | AWN_TYPE_BOX, AwnBoxClass)) 44 | 45 | typedef struct _AwnBox AwnBox; 46 | typedef struct _AwnBoxClass AwnBoxClass; 47 | typedef struct _AwnBoxPrivate AwnBoxPrivate; 48 | 49 | struct _AwnBox { 50 | GtkBox parent; 51 | 52 | AwnBoxPrivate* priv; 53 | }; 54 | 55 | struct _AwnBoxClass { 56 | GtkBoxClass parent_class; 57 | }; 58 | 59 | GType awn_box_get_type(void) G_GNUC_CONST; 60 | 61 | GtkWidget* awn_box_new(GtkOrientation orient); 62 | 63 | void awn_box_set_orientation(AwnBox* box, 64 | GtkOrientation orient); 65 | 66 | void awn_box_set_orientation_from_pos_type(AwnBox* box, 67 | GtkPositionType pos_type); 68 | 69 | #ifdef __cplusplus 70 | } // extern "C" 71 | #endif 72 | 73 | 74 | #endif /* _AWN_BOX_H_ */ 75 | 76 | -------------------------------------------------------------------------------- /libawn/awn-config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Mark Lee 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Author : Mark Lee 18 | */ 19 | 20 | #ifndef __LIBAWN_AWN_CONFIG_H__ 21 | #define __LIBAWN_AWN_CONFIG_H__ 22 | 23 | #include 24 | #include 25 | #include "awn-applet.h" 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | DesktopAgnosticConfigClient* awn_config_get_default(gint panel_id, GError** error); 32 | DesktopAgnosticConfigClient* awn_config_get_default_for_applet(AwnApplet* applet, GError** error); 33 | DesktopAgnosticConfigClient* awn_config_get_default_for_applet_by_info(const gchar* name, const gchar* uid, GError** error); 34 | void awn_config_free(void); 35 | 36 | #ifdef __cplusplus 37 | } // extern "C" 38 | #endif 39 | 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /libawn/awn-dbus-watcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | */ 18 | 19 | #ifndef _AWN_DBUS_WATCHER_H 20 | #define _AWN_DBUS_WATCHER_H 21 | 22 | #include 23 | #include 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | #define AWN_TYPE_DBUS_WATCHER (awn_dbus_watcher_get_type ()) 30 | 31 | #define AWN_DBUS_WATCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ 32 | AWN_TYPE_DBUS_WATCHER, AwnDBusWatcher)) 33 | 34 | #define AWN_DBUS_WATCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \ 35 | AWN_TYPE_DBUS_WATCHER, AwnDBusWatcherClass)) 36 | 37 | #define AWN_IS_DBUS_WATCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ 38 | AWN_TYPE_DBUS_WATCHER)) 39 | 40 | #define AWN_IS_DBUS_WATCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ 41 | AWN_TYPE_DBUS_WATCHER)) 42 | 43 | #define AWN_DBUS_WATCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 44 | AWN_TYPE_DBUS_WATCHER, AwnDBusWatcherClass)) 45 | 46 | typedef struct _AwnDBusWatcher AwnDBusWatcher; 47 | typedef struct _AwnDBusWatcherClass AwnDBusWatcherClass; 48 | typedef struct _AwnDBusWatcherPrivate AwnDBusWatcherPrivate; 49 | 50 | 51 | struct _AwnDBusWatcher { 52 | GObject parent; 53 | 54 | /*< private >*/ 55 | AwnDBusWatcherPrivate* priv; 56 | }; 57 | 58 | struct _AwnDBusWatcherClass { 59 | GObjectClass parent_class; 60 | 61 | /*< signals >*/ 62 | void (*name_appeared)(AwnDBusWatcher* watcher, 63 | gchar* name); 64 | void (*name_disappeared)(AwnDBusWatcher* watcher, 65 | gchar* name); 66 | void (*_awn_dbus_watcher_1)(void); 67 | void (*_awn_dbus_watcher_2)(void); 68 | }; 69 | 70 | GType awn_dbus_watcher_get_type(void) G_GNUC_CONST; 71 | 72 | AwnDBusWatcher* awn_dbus_watcher_get_default(void); 73 | gboolean awn_dbus_watcher_has_name(AwnDBusWatcher* self, const gchar* name); 74 | 75 | #ifdef __cplusplus 76 | } // extern "C" 77 | #endif 78 | 79 | 80 | #endif /* _AWN_DBUS_WATCHER_H */ 81 | 82 | -------------------------------------------------------------------------------- /libawn/awn-desktop-lookup-client.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Authored by Rodney Cryderman 18 | * 19 | */ 20 | /* awn-desktop-lookup-client.h */ 21 | 22 | #ifndef _AWN_DESKTOP_LOOKUP_CLIENT 23 | #define _AWN_DESKTOP_LOOKUP_CLIENT 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define AWN_TYPE_DESKTOP_LOOKUP_CLIENT awn_desktop_lookup_client_get_type() 32 | 33 | #define AWN_DESKTOP_LOOKUP_CLIENT(obj) \ 34 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_DESKTOP_LOOKUP_CLIENT, AwnDesktopLookupClient)) 35 | 36 | #define AWN_DESKTOP_LOOKUP_CLIENT_CLASS(klass) \ 37 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_DESKTOP_LOOKUP_CLIENT, AwnDesktopLookupClientClass)) 38 | 39 | #define AWN_IS_DESKTOP_LOOKUP_CLIENT(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_DESKTOP_LOOKUP_CLIENT)) 41 | 42 | #define AWN_IS_DESKTOP_LOOKUP_CLIENT_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_DESKTOP_LOOKUP_CLIENT)) 44 | 45 | #define AWN_DESKTOP_LOOKUP_CLIENT_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_DESKTOP_LOOKUP_CLIENT, AwnDesktopLookupClientClass)) 47 | 48 | typedef struct { 49 | GObject parent; 50 | } AwnDesktopLookupClient; 51 | 52 | typedef struct { 53 | GObjectClass parent_class; 54 | } AwnDesktopLookupClientClass; 55 | 56 | GType awn_desktop_lookup_client_get_type(void); 57 | 58 | AwnDesktopLookupClient* awn_desktop_lookup_client_new(void); 59 | 60 | #ifdef __cplusplus 61 | } // extern "C" 62 | #endif 63 | 64 | 65 | #endif /* _AWN_DESKTOP_LOOKUP_CLIENT */ 66 | 67 | /* awn-desktop-lookup-client.c */ 68 | 69 | -------------------------------------------------------------------------------- /libawn/awn-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | #ifndef __AWN_DIALOG_H__ 19 | #define __AWN_DIALOG_H__ 20 | 21 | #include 22 | #include 23 | 24 | #include "awn-applet.h" 25 | #include "awn-defines.h" 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define AWN_TYPE_DIALOG (awn_dialog_get_type ()) 32 | 33 | #define AWN_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ 34 | AWN_TYPE_DIALOG, AwnDialog)) 35 | 36 | #define AWN_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \ 37 | AWN_TYPE_DIALOG, AwnDialogClass)) 38 | 39 | #define AWN_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ 40 | AWN_TYPE_DIALOG)) 41 | 42 | #define AWN_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ 43 | AWN_TYPE_DIALOG)) 44 | 45 | #define AWN_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 46 | AWN_TYPE_DIALOG, AwnDialogClass)) 47 | 48 | 49 | /* AwnDialog CLASS & TYPE */ 50 | 51 | typedef struct _AwnDialog AwnDialog; 52 | 53 | typedef struct _AwnDialogClass AwnDialogClass; 54 | 55 | typedef struct _AwnDialogPrivate AwnDialogPrivate; 56 | 57 | struct _AwnDialog { 58 | GtkWindow window; 59 | 60 | AwnDialogPrivate* priv; 61 | }; 62 | 63 | struct _AwnDialogClass { 64 | GtkWindowClass parent_class; 65 | }; 66 | 67 | GType awn_dialog_get_type(void); 68 | 69 | GtkWidget* awn_dialog_new(void); 70 | 71 | GtkWidget* awn_dialog_new_for_widget(GtkWidget* widget); 72 | 73 | GtkWidget* awn_dialog_new_for_widget_with_applet(GtkWidget* widget, 74 | AwnApplet* applet); 75 | 76 | void awn_dialog_set_padding(AwnDialog* dialog, gint padding); 77 | 78 | GtkWidget* awn_dialog_get_content_area(AwnDialog* dialog); 79 | 80 | #ifdef __cplusplus 81 | } // extern "C" 82 | #endif 83 | 84 | 85 | #endif 86 | 87 | -------------------------------------------------------------------------------- /libawn/awn-effects-ops-helpers.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michal Hruby 3 | * Copyright (C) 2008 Rodney Cryderman 4 | * Copyright (C) 1999 The Free Software Foundation 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | #ifndef _AWN_EFFECTS_OPS_HELPERS_H 21 | #define _AWN_EFFECTS_OPS_HELPERS_H 22 | 23 | #include 24 | #include 25 | #include "awn-effects.h" 26 | 27 | #include 28 | #include 29 | 30 | void 31 | paint_arrow_triangle(cairo_t* cr, double size, gint count); 32 | 33 | void 34 | paint_arrow_dot(cairo_t* cr, double size, gint count, 35 | double r, double g, double b); 36 | 37 | guchar 38 | lighten_component(const guchar cur_value, const gfloat amount, 39 | gboolean absolute); 40 | 41 | void 42 | lighten_surface(cairo_surface_t* src, 43 | gint surface_width, gint surface_height, 44 | const gfloat amount); 45 | 46 | void 47 | darken_surface(cairo_t* cr, gint surface_width, gint surface_height); 48 | 49 | void 50 | blur_surface_shadow(cairo_surface_t* src, 51 | gint surface_width, gint surface_height, 52 | const int radius); 53 | 54 | void 55 | blur_surface_shadow_rgba(cairo_surface_t* src, 56 | gint surface_width, gint surface_height, const int radius, 57 | guchar r, guchar g, guchar b, gfloat alpha_intensity); 58 | 59 | void 60 | surface_saturate(cairo_surface_t* icon_srfc, const gfloat saturation); 61 | 62 | #endif 63 | 64 | -------------------------------------------------------------------------------- /libawn/awn-enum-types.cc.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifdef HAVE_CONFIG_H 3 | #include "config.h" 4 | #endif 5 | 6 | #include "awn-enum-types.h" 7 | 8 | /*** END file-header ***/ 9 | 10 | /*** BEGIN file-production ***/ 11 | /* enumerations from "@filename@" */ 12 | #include "@filename@" 13 | /*** END file-production ***/ 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | /*** BEGIN value-header ***/ 20 | GType 21 | @enum_name@_get_type(void) { 22 | static GType enum_type_id = 0; 23 | if (G_UNLIKELY (!enum_type_id)) 24 | { 25 | static const G@Type@Value values[] = { 26 | /*** END value-header ***/ 27 | 28 | /*** BEGIN value-production ***/ 29 | { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 30 | /*** END value-production ***/ 31 | 32 | /*** BEGIN value-tail ***/ 33 | { 0, NULL, NULL } 34 | }; 35 | enum_type_id = g_@type@_register_static("@EnumName@", values); 36 | } 37 | return enum_type_id; 38 | } 39 | /*** END value-tail ***/ 40 | 41 | #ifdef __cplusplus 42 | } // extern "C" 43 | #endif 44 | -------------------------------------------------------------------------------- /libawn/awn-enum-types.h.in: -------------------------------------------------------------------------------- 1 | /*** BEGIN file-header ***/ 2 | #ifndef __AWN_ENUM_TYPES_H__ 3 | #define __AWN_ENUM_TYPES_H__ 4 | 5 | #include 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | /*** END file-header ***/ 12 | 13 | /*** BEGIN file-production ***/ 14 | /* enumerations from "@filename@" */ 15 | /*** END file-production ***/ 16 | 17 | /*** BEGIN file-tail ***/ 18 | #ifdef __cplusplus 19 | } // extern "C" 20 | #endif 21 | 22 | 23 | #endif /* !__AWN_ENUM_TYPES_H__ */ 24 | /*** END file-tail ***/ 25 | 26 | /*** BEGIN value-header ***/ 27 | GType @enum_name@_get_type (void) G_GNUC_CONST; 28 | #define AWN_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) 29 | 30 | /*** END value-header ***/ 31 | -------------------------------------------------------------------------------- /libawn/awn-icon-box.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Authored by Neil Jagdish Patel 18 | * 19 | */ 20 | 21 | #ifndef _AWN_ICON_BOX_H_ 22 | #define _AWN_ICON_BOX_H_ 23 | 24 | #include 25 | 26 | #include "awn-defines.h" 27 | #include "awn-applet.h" 28 | #include "awn-box.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_ICON_BOX (awn_icon_box_get_type ()) 35 | 36 | #define AWN_ICON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ 37 | AWN_TYPE_ICON_BOX, AwnIconBox)) 38 | 39 | #define AWN_ICON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ 40 | AWN_TYPE_ICON_BOX, AwnIconBoxClass)) 41 | 42 | #define AWN_IS_ICON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ 43 | AWN_TYPE_ICON_BOX)) 44 | 45 | #define AWN_IS_ICON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ 46 | AWN_TYPE_ICON_BOX)) 47 | 48 | #define AWN_ICON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ 49 | AWN_TYPE_ICON_BOX, AwnIconBoxClass)) 50 | 51 | typedef struct _AwnIconBox AwnIconBox; 52 | typedef struct _AwnIconBoxClass AwnIconBoxClass; 53 | typedef struct _AwnIconBoxPrivate AwnIconBoxPrivate; 54 | 55 | struct _AwnIconBox { 56 | AwnBox parent; 57 | 58 | AwnIconBoxPrivate* priv; 59 | }; 60 | 61 | struct _AwnIconBoxClass { 62 | AwnBoxClass parent_class; 63 | }; 64 | 65 | GType awn_icon_box_get_type(void) G_GNUC_CONST; 66 | 67 | GtkWidget* awn_icon_box_new(void); 68 | 69 | GtkWidget* awn_icon_box_new_for_applet(AwnApplet* applet); 70 | 71 | void awn_icon_box_set_pos_type(AwnIconBox* icon_box, 72 | GtkPositionType position); 73 | 74 | void awn_icon_box_set_offset(AwnIconBox* icon_box, 75 | gint offset); 76 | 77 | #ifdef __cplusplus 78 | } // extern "C" 79 | #endif 80 | 81 | 82 | #endif /* _AWN_ICON_BOX_H_ */ 83 | 84 | -------------------------------------------------------------------------------- /libawn/awn-image.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Authored by Michal Hruby 18 | * 19 | */ 20 | 21 | #ifndef _AWN_IMAGE_H_ 22 | #define _AWN_IMAGE_H_ 23 | 24 | #include 25 | #include 26 | 27 | #include "awn-overlay-text.h" 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #define AWN_TYPE_IMAGE awn_image_get_type() 34 | 35 | #define AWN_IMAGE(obj) \ 36 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_IMAGE, AwnImage)) 37 | 38 | #define AWN_IMAGE_CLASS(klass) \ 39 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_IMAGE, AwnImageClass)) 40 | 41 | #define AWN_IS_IMAGE(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_IMAGE)) 43 | 44 | #define AWN_IS_IMAGE_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_IMAGE)) 46 | 47 | #define AWN_IMAGE_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_IMAGE, AwnImageClass)) 49 | 50 | typedef struct _AwnImagePrivate AwnImagePrivate; 51 | 52 | typedef struct { 53 | GtkImage parent; 54 | 55 | AwnImagePrivate* priv; 56 | } AwnImage; 57 | 58 | typedef struct { 59 | GtkImageClass parent_class; 60 | } AwnImageClass; 61 | 62 | GType awn_image_get_type(void); 63 | 64 | AwnImage* awn_image_new(void); 65 | 66 | #ifdef __cplusplus 67 | } // extern "C" 68 | #endif 69 | 70 | 71 | #endif /* _AWN_IMAGE_H_ */ 72 | 73 | -------------------------------------------------------------------------------- /libawn/awn-label.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Authored by Michal Hruby 18 | * 19 | */ 20 | 21 | #ifndef _AWN_LABEL 22 | #define _AWN_LABEL 23 | 24 | #include 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define AWN_TYPE_LABEL awn_label_get_type() 32 | 33 | #define AWN_LABEL(obj) \ 34 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_LABEL, AwnLabel)) 35 | 36 | #define AWN_LABEL_CLASS(klass) \ 37 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_LABEL, AwnLabelClass)) 38 | 39 | #define AWN_IS_LABEL(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_LABEL)) 41 | 42 | #define AWN_IS_LABEL_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_LABEL)) 44 | 45 | #define AWN_LABEL_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_LABEL, AwnLabelClass)) 47 | 48 | typedef struct { 49 | GtkLabel parent; 50 | } AwnLabel; 51 | 52 | typedef struct { 53 | GtkLabelClass parent_class; 54 | } AwnLabelClass; 55 | 56 | GType awn_label_get_type(void); 57 | 58 | AwnLabel* awn_label_new(void); 59 | 60 | #ifdef __cplusplus 61 | } // extern "C" 62 | #endif 63 | 64 | 65 | #endif /* _AWN_LABEL */ 66 | 67 | -------------------------------------------------------------------------------- /libawn/awn-overlay-pixbuf-file.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | /* awn-overlay-pixbuf-file.h */ 21 | 22 | #ifndef _AWN_OVERLAY_PIXBUF_FILE 23 | #define _AWN_OVERLAY_PIXBUF_FILE 24 | 25 | #include 26 | #include "awn-overlay-pixbuf.h" 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #define AWN_TYPE_OVERLAY_PIXBUF_FILE awn_overlay_pixbuf_file_get_type() 33 | 34 | #define AWN_OVERLAY_PIXBUF_FILE(obj) \ 35 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_PIXBUF_FILE, AwnOverlayPixbufFile)) 36 | 37 | #define AWN_OVERLAY_PIXBUF_FILE_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_PIXBUF_FILE, AwnOverlayPixbufFileClass)) 39 | 40 | #define AWN_IS_OVERLAY_PIXBUF_FILE(obj) \ 41 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_PIXBUF_FILE)) 42 | 43 | #define AWN_IS_OVERLAY_PIXBUF_FILE_CLASS(klass) \ 44 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_PIXBUF_FILE)) 45 | 46 | #define AWN_OVERLAY_PIXBUF_FILE_GET_CLASS(obj) \ 47 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_PIXBUF_FILE, AwnOverlayPixbufFileClass)) 48 | 49 | typedef struct { 50 | AwnOverlayPixbuf parent; 51 | } AwnOverlayPixbufFile; 52 | 53 | typedef struct { 54 | AwnOverlayPixbufClass parent_class; 55 | } AwnOverlayPixbufFileClass; 56 | 57 | GType awn_overlay_pixbuf_file_get_type(void); 58 | 59 | AwnOverlayPixbufFile* awn_overlay_pixbuf_file_new(gchar* file_name); 60 | 61 | #ifdef __cplusplus 62 | } // extern "C" 63 | #endif 64 | 65 | 66 | #endif /* _AWN_OVERLAY_PIXBUF_FILE */ 67 | -------------------------------------------------------------------------------- /libawn/awn-overlay-pixbuf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | 21 | /* awn-overlay-pixbuf.h */ 22 | 23 | #ifndef _AWN_OVERLAY_PIXBUF 24 | #define _AWN_OVERLAY_PIXBUF 25 | 26 | #include 27 | #include 28 | 29 | #include "awn-overlay.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define AWN_TYPE_OVERLAY_PIXBUF awn_overlay_pixbuf_get_type() 36 | 37 | #define AWN_OVERLAY_PIXBUF(obj) \ 38 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_PIXBUF, AwnOverlayPixbuf)) 39 | 40 | #define AWN_OVERLAY_PIXBUF_CLASS(klass) \ 41 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_PIXBUF, AwnOverlayPixbufClass)) 42 | 43 | #define AWN_IS_OVERLAY_PIXBUF(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_PIXBUF)) 45 | 46 | #define AWN_IS_OVERLAY_PIXBUF_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_PIXBUF)) 48 | 49 | #define AWN_OVERLAY_PIXBUF_GET_CLASS(obj) \ 50 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_PIXBUF, AwnOverlayPixbufClass)) 51 | 52 | typedef struct { 53 | AwnOverlay parent; 54 | } AwnOverlayPixbuf; 55 | 56 | typedef struct { 57 | AwnOverlayClass parent_class; 58 | } AwnOverlayPixbufClass; 59 | 60 | GType awn_overlay_pixbuf_get_type(void); 61 | 62 | AwnOverlayPixbuf* awn_overlay_pixbuf_new(void); 63 | 64 | AwnOverlayPixbuf* awn_overlay_pixbuf_new_with_pixbuf(GdkPixbuf* pixbuf); 65 | 66 | #ifdef __cplusplus 67 | } // extern "C" 68 | #endif 69 | 70 | 71 | #endif /* _AWN_OVERLAY_PIXBUF */ 72 | -------------------------------------------------------------------------------- /libawn/awn-overlay-progress-circle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | /* awn-overlay-progress-circle.h */ 21 | 22 | #ifndef _AWN_OVERLAY_PROGRESS_CIRCLE 23 | #define _AWN_OVERLAY_PROGRESS_CIRCLE 24 | 25 | #include 26 | #include "awn-overlay-progress.h" 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #define AWN_TYPE_OVERLAY_PROGRESS_CIRCLE awn_overlay_progress_circle_get_type() 33 | 34 | #define AWN_OVERLAY_PROGRESS_CIRCLE(obj) \ 35 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_PROGRESS_CIRCLE, AwnOverlayProgressCircle)) 36 | 37 | #define AWN_OVERLAY_PROGRESS_CIRCLE_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_PROGRESS_CIRCLE, AwnOverlayProgressCircleClass)) 39 | 40 | #define AWN_IS_OVERLAY_PROGRESS_CIRCLE(obj) \ 41 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_PROGRESS_CIRCLE)) 42 | 43 | #define AWN_IS_OVERLAY_PROGRESS_CIRCLE_CLASS(klass) \ 44 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_PROGRESS_CIRCLE)) 45 | 46 | #define AWN_OVERLAY_PROGRESS_CIRCLE_GET_CLASS(obj) \ 47 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_PROGRESS_CIRCLE, AwnOverlayProgressCircleClass)) 48 | 49 | typedef struct { 50 | AwnOverlayProgress parent; 51 | } AwnOverlayProgressCircle; 52 | 53 | typedef struct { 54 | AwnOverlayProgressClass parent_class; 55 | } AwnOverlayProgressCircleClass; 56 | 57 | GType awn_overlay_progress_circle_get_type(void); 58 | 59 | AwnOverlayProgressCircle* awn_overlay_progress_circle_new(void); 60 | 61 | #ifdef __cplusplus 62 | } // extern "C" 63 | #endif 64 | 65 | 66 | #endif /* _AWN_OVERLAY_PROGRESS_CIRCLE */ 67 | -------------------------------------------------------------------------------- /libawn/awn-overlay-progress.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | 21 | /* awn-overlay-progress.h */ 22 | 23 | #ifndef _AWN_OVERLAY_PROGRESS 24 | #define _AWN_OVERLAY_PROGRESS 25 | 26 | #include 27 | #include "awn-overlay.h" 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #define AWN_TYPE_OVERLAY_PROGRESS awn_overlay_progress_get_type() 34 | 35 | #define AWN_OVERLAY_PROGRESS(obj) \ 36 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_PROGRESS, AwnOverlayProgress)) 37 | 38 | #define AWN_OVERLAY_PROGRESS_CLASS(klass) \ 39 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_PROGRESS, AwnOverlayProgressClass)) 40 | 41 | #define AWN_IS_OVERLAY_PROGRESS(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_PROGRESS)) 43 | 44 | #define AWN_IS_OVERLAY_PROGRESS_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_PROGRESS)) 46 | 47 | #define AWN_OVERLAY_PROGRESS_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_PROGRESS, AwnOverlayProgressClass)) 49 | 50 | typedef struct { 51 | AwnOverlay parent; 52 | } AwnOverlayProgress; 53 | 54 | typedef struct { 55 | AwnOverlayClass parent_class; 56 | } AwnOverlayProgressClass; 57 | 58 | GType awn_overlay_progress_get_type(void); 59 | 60 | AwnOverlayProgress* awn_overlay_progress_new(void); 61 | 62 | #ifdef __cplusplus 63 | } // extern "C" 64 | #endif 65 | 66 | 67 | #endif /* _AWN_OVERLAY_PROGRESS */ 68 | -------------------------------------------------------------------------------- /libawn/awn-overlay-text.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | /* awn-overlay-text.h */ 21 | 22 | #ifndef _AWN_OVERLAY_TEXT 23 | #define _AWN_OVERLAY_TEXT 24 | 25 | #include 26 | #include "awn-overlay.h" 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #define AWN_TYPE_OVERLAY_TEXT awn_overlay_text_get_type() 33 | 34 | #define AWN_OVERLAY_TEXT(obj) \ 35 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_TEXT, AwnOverlayText)) 36 | 37 | #define AWN_OVERLAY_TEXT_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_TEXT, AwnOverlayTextClass)) 39 | 40 | #define AWN_IS_OVERLAY_TEXT(obj) \ 41 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_TEXT)) 42 | 43 | #define AWN_IS_OVERLAY_TEXT_CLASS(klass) \ 44 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_TEXT)) 45 | 46 | #define AWN_OVERLAY_TEXT_GET_CLASS(obj) \ 47 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_TEXT, AwnOverlayTextClass)) 48 | 49 | typedef struct { 50 | AwnOverlay parent; 51 | } AwnOverlayText; 52 | 53 | typedef struct { 54 | AwnOverlayClass parent_class; 55 | } AwnOverlayTextClass; 56 | 57 | GType awn_overlay_text_get_type(void); 58 | 59 | AwnOverlayText* awn_overlay_text_new(void); 60 | 61 | void awn_overlay_text_get_size(AwnOverlayText* overlay, 62 | GtkWidget* widget, 63 | gchar* text, 64 | gint size, 65 | gint* width, gint* height); 66 | 67 | #ifdef __cplusplus 68 | } // extern "C" 69 | #endif 70 | 71 | 72 | #endif /* _AWN_OVERLAY_TEXT */ 73 | 74 | -------------------------------------------------------------------------------- /libawn/awn-overlay-themed-icon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | /* awn-overlay-themed-icon.h */ 21 | 22 | #ifndef _AWN_OVERLAY_THEMED_ICON 23 | #define _AWN_OVERLAY_THEMED_ICON 24 | 25 | #include 26 | 27 | #include "awn-overlay.h" 28 | #include "awn-themed-icon.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_OVERLAY_THEMED_ICON awn_overlay_themed_icon_get_type() 35 | 36 | #define AWN_OVERLAY_THEMED_ICON(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_THEMED_ICON, AwnOverlayThemedIcon)) 38 | 39 | #define AWN_OVERLAY_THEMED_ICON_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_THEMED_ICON, AwnOverlayThemedIconClass)) 41 | 42 | #define AWN_IS_OVERLAY_THEMED_ICON(obj) \ 43 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_THEMED_ICON)) 44 | 45 | #define AWN_IS_OVERLAY_THEMED_ICON_CLASS(klass) \ 46 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_THEMED_ICON)) 47 | 48 | #define AWN_OVERLAY_THEMED_ICON_GET_CLASS(obj) \ 49 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_THEMED_ICON, AwnOverlayThemedIconClass)) 50 | 51 | typedef struct { 52 | AwnOverlay parent; 53 | } AwnOverlayThemedIcon; 54 | 55 | typedef struct { 56 | AwnOverlayClass parent_class; 57 | } AwnOverlayThemedIconClass; 58 | 59 | GType awn_overlay_themed_icon_get_type(void); 60 | 61 | AwnOverlayThemedIcon* awn_overlay_themed_icon_new(const gchar* icon_name); 62 | 63 | #ifdef __cplusplus 64 | } // extern "C" 65 | #endif 66 | 67 | 68 | #endif /* _AWN_OVERLAY_THEMED_ICON */ 69 | -------------------------------------------------------------------------------- /libawn/awn-overlay-throbber.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * 18 | */ 19 | 20 | /* awn-overlay-throbber.h */ 21 | 22 | #ifndef _AWN_OVERLAY_THROBBER 23 | #define _AWN_OVERLAY_THROBBER 24 | 25 | #include 26 | #include 27 | #include "awn-overlay.h" 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #define AWN_TYPE_OVERLAY_THROBBER awn_overlay_throbber_get_type() 34 | 35 | #define AWN_OVERLAY_THROBBER(obj) \ 36 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAY_THROBBER, AwnOverlayThrobber)) 37 | 38 | #define AWN_OVERLAY_THROBBER_CLASS(klass) \ 39 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_OVERLAY_THROBBER, AwnOverlayThrobberClass)) 40 | 41 | #define AWN_IS_OVERLAY_THROBBER(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAY_THROBBER)) 43 | 44 | #define AWN_IS_OVERLAY_THROBBER_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_OVERLAY_THROBBER)) 46 | 47 | #define AWN_OVERLAY_THROBBER_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_OVERLAY_THROBBER, AwnOverlayThrobberClass)) 49 | 50 | typedef struct { 51 | AwnOverlay parent; 52 | } AwnOverlayThrobber; 53 | 54 | typedef struct { 55 | AwnOverlayClass parent_class; 56 | } AwnOverlayThrobberClass; 57 | 58 | GType awn_overlay_throbber_get_type(void); 59 | 60 | GtkWidget* awn_overlay_throbber_new(void); 61 | 62 | #ifdef __cplusplus 63 | } // extern "C" 64 | #endif 65 | 66 | 67 | #endif /* _AWN_OVERLAY_THROBBER */ 68 | -------------------------------------------------------------------------------- /libawn/awn-overlayable.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | */ 18 | 19 | /* awn-overlayable.h */ 20 | 21 | #ifndef _AWN_OVERLAYABLE 22 | #define _AWN_OVERLAYABLE 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-defines.h" 29 | #include "awn-effects.h" 30 | #include "awn-overlay.h" 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #define AWN_TYPE_OVERLAYABLE awn_overlayable_get_type() 37 | 38 | #define AWN_OVERLAYABLE(obj) \ 39 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_OVERLAYABLE, AwnOverlayable)) 40 | 41 | #define AWN_IS_OVERLAYABLE(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_OVERLAYABLE)) 43 | 44 | #define AWN_OVERLAYABLE_GET_INTERFACE(inst) \ 45 | (G_TYPE_INSTANCE_GET_INTERFACE ((inst), AWN_TYPE_OVERLAYABLE, \ 46 | AwnOverlayableIface)) 47 | 48 | typedef struct _AwnOverlayable AwnOverlayable; 49 | typedef struct _AwnOverlayableIface AwnOverlayableIface; 50 | 51 | struct _AwnOverlayableIface { 52 | GTypeInterface parent; 53 | 54 | AwnEffects* (*get_effects)(AwnOverlayable* self); 55 | }; 56 | 57 | GType awn_overlayable_get_type(void); 58 | 59 | AwnEffects* awn_overlayable_get_effects(AwnOverlayable* self); 60 | 61 | void awn_overlayable_add_overlay(AwnOverlayable* self, 62 | AwnOverlay* overlay); 63 | 64 | void awn_overlayable_remove_overlay(AwnOverlayable* self, 65 | AwnOverlay* overlay); 66 | 67 | GList* awn_overlayable_get_overlays(AwnOverlayable* self); 68 | 69 | 70 | #ifdef __cplusplus 71 | } // extern "C" 72 | #endif 73 | 74 | 75 | #endif /* _AWN_OVERLAYABLE */ 76 | -------------------------------------------------------------------------------- /libawn/gseal-transition.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2 -*- 2 | * 3 | * GSEAL transition definitions. 4 | * 5 | * Copyright (C) 2009, 2010 Mark Lee 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this program. If not, see . 19 | * 20 | */ 21 | 22 | #ifndef __GSEAL_TRANSITION_H__ 23 | #define __GSEAL_TRANSITION_H__ 24 | 25 | #ifndef GSEAL 26 | #define gtk_adjustment_get_upper(x) (x)->upper 27 | #define gtk_selection_data_get_data(x) (x)->data 28 | #define gtk_selection_data_get_length(x) (x)->length 29 | #define gtk_socket_get_plug_window(x) (x)->plug_window 30 | #define gtk_widget_get_window(x) (x)->window 31 | #endif 32 | 33 | #if !GTK_CHECK_VERSION(2,17,5) 34 | #define gtk_widget_get_has_window(x) (!GTK_WIDGET_NO_WINDOW (x)) 35 | #endif 36 | 37 | #if !GTK_CHECK_VERSION(2,17,7) 38 | #define gtk_widget_get_allocation(w, alloc) { *(alloc) = (w)->allocation; } 39 | #define gtk_widget_get_visible(x) GTK_WIDGET_VISIBLE(x) 40 | #endif 41 | 42 | #if !GTK_CHECK_VERSION(2,17,10) 43 | #define gtk_widget_is_drawable(w) GTK_WIDGET_DRAWABLE(w) 44 | #endif 45 | 46 | #if !GTK_CHECK_VERSION(2,19,5) 47 | #define gtk_widget_get_realized(w) GTK_WIDGET_REALIZED(w) 48 | #define gtk_widget_get_mapped(w) GTK_WIDGET_MAPPED(w) 49 | #endif 50 | 51 | #endif 52 | /* vim: set ts=2 sts=2 sw=2 ai cindent : */ 53 | -------------------------------------------------------------------------------- /libawn/libawn-marshal.list: -------------------------------------------------------------------------------- 1 | VOID:STRING,BOXED 2 | -------------------------------------------------------------------------------- /libawn/libawn.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | * 17 | * Author : Neil Jagdish Patel 18 | */ 19 | 20 | #ifndef __LIBAWN_H__ 21 | #define __LIBAWN_H__ 22 | 23 | /* Please keep this list alphabetized. */ 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | #include 51 | 52 | #endif /* < __LIBAWN_H__ /> */ 53 | 54 | -------------------------------------------------------------------------------- /m4/as-ac-expand.m4: -------------------------------------------------------------------------------- 1 | dnl as-ac-expand.m4 0.2.0 -*- autoconf -*- 2 | dnl autostars m4 macro for expanding directories using configure's prefix 3 | dnl 4 | dnl (C) 2003, 2004, 2005 Thomas Vander Stichele 5 | dnl 6 | dnl Copying and distribution of this file, with or without modification, 7 | dnl are permitted in any medium without royalty provided the copyright 8 | dnl notice and this notice are preserved. 9 | dnl 10 | dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR) 11 | dnl 12 | dnl example: 13 | dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) 14 | dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local 15 | AC_DEFUN([AS_AC_EXPAND], 16 | [ 17 | EXP_VAR=[$1] 18 | FROM_VAR=[$2] 19 | 20 | dnl first expand prefix and exec_prefix if necessary 21 | prefix_save=$prefix 22 | exec_prefix_save=$exec_prefix 23 | 24 | dnl if no prefix given, then use /usr/local, the default prefix 25 | if test "x$prefix" = "xNONE"; then 26 | prefix="$ac_default_prefix" 27 | fi 28 | dnl if no exec_prefix given, then use prefix 29 | if test "x$exec_prefix" = "xNONE"; then 30 | exec_prefix=$prefix 31 | fi 32 | 33 | full_var="$FROM_VAR" 34 | dnl loop until it doesn't change anymore 35 | while true; do 36 | new_full_var="`eval echo $full_var`" 37 | if test "x$new_full_var" = "x$full_var"; then break; fi 38 | full_var=$new_full_var 39 | done 40 | 41 | dnl clean up 42 | full_var=$new_full_var 43 | AC_SUBST([$1], "$full_var") 44 | 45 | dnl restore prefix and exec_prefix 46 | prefix=$prefix_save 47 | exec_prefix=$exec_prefix_save 48 | ]) 49 | -------------------------------------------------------------------------------- /m4/as-compiler-flag.m4: -------------------------------------------------------------------------------- 1 | dnl as-compiler-flag.m4 0.1.0 2 | 3 | dnl autostars m4 macro for detection of compiler flags 4 | 5 | dnl David Schleef 6 | 7 | dnl $Id: as-compiler-flag.m4,v 1.1 2005/12/15 23:35:19 ds Exp $ 8 | 9 | dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED]) 10 | dnl Tries to compile with the given CFLAGS. 11 | dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags, 12 | dnl and ACTION-IF-NOT-ACCEPTED otherwise. 13 | 14 | AC_DEFUN([AS_COMPILER_FLAG], 15 | [ 16 | AC_MSG_CHECKING([to see if compiler understands $1]) 17 | 18 | save_CFLAGS="$CFLAGS" 19 | CFLAGS="$CFLAGS $1" 20 | 21 | AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no]) 22 | CFLAGS="$save_CFLAGS" 23 | 24 | if test "X$flag_ok" = Xyes ; then 25 | m4_ifvaln([$2],[$2]) 26 | true 27 | else 28 | m4_ifvaln([$3],[$3]) 29 | true 30 | fi 31 | AC_MSG_RESULT([$flag_ok]) 32 | ]) 33 | 34 | dnl AS_COMPILER_FLAGS(VAR, FLAGS) 35 | dnl Tries to compile with the given CFLAGS. 36 | 37 | AC_DEFUN([AS_COMPILER_FLAGS], 38 | [ 39 | list=$2 40 | flags_supported="" 41 | flags_unsupported="" 42 | AC_MSG_CHECKING([for supported compiler flags]) 43 | for each in $list 44 | do 45 | save_CFLAGS="$CFLAGS" 46 | CFLAGS="$CFLAGS $each" 47 | AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no]) 48 | CFLAGS="$save_CFLAGS" 49 | 50 | if test "X$flag_ok" = Xyes ; then 51 | flags_supported="$flags_supported $each" 52 | else 53 | flags_unsupported="$flags_unsupported $each" 54 | fi 55 | done 56 | AC_MSG_RESULT([$flags_supported]) 57 | if test "X$flags_unsupported" != X ; then 58 | AC_MSG_WARN([unsupported compiler flags: $flags_unsupported]) 59 | fi 60 | $1="$$1 $flags_supported" 61 | ]) 62 | 63 | -------------------------------------------------------------------------------- /m4/gconf.m4: -------------------------------------------------------------------------------- 1 | dnl AM_GCONF_SOURCE_2 2 | dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas 3 | dnl (i.e. pass to gconftool-2 4 | dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where 5 | dnl you should install foo.schemas files 6 | dnl 7 | 8 | AC_DEFUN([AM_GCONF_SOURCE_2], 9 | [ 10 | if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then 11 | GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` 12 | else 13 | GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE 14 | fi 15 | 16 | AC_ARG_WITH(gconf-source, 17 | [ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",) 18 | 19 | AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE) 20 | AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation]) 21 | 22 | if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then 23 | GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' 24 | fi 25 | 26 | AC_ARG_WITH(gconf-schema-file-dir, 27 | [ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",) 28 | 29 | AC_SUBST(GCONF_SCHEMA_FILE_DIR) 30 | AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files]) 31 | 32 | AC_ARG_ENABLE(schemas-install, 33 | [ --disable-schemas-install Disable the schemas installation], 34 | [case ${enableval} in 35 | yes|no) ;; 36 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;; 37 | esac]) 38 | AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no]) 39 | ]) 40 | -------------------------------------------------------------------------------- /m4/shave.m4: -------------------------------------------------------------------------------- 1 | dnl Make automake/libtool output more friendly to humans 2 | dnl 3 | dnl SHAVE_INIT([shavedir],[default_mode]) 4 | dnl 5 | dnl shavedir: the directory where the shave scripts are, it defaults to 6 | dnl $(top_builddir) 7 | dnl default_mode: (enable|disable) default shave mode. This parameter 8 | dnl controls shave's behaviour when no option has been 9 | dnl given to configure. It defaults to disable. 10 | dnl 11 | dnl * SHAVE_INIT should be called late in your configure.(ac|in) file (just 12 | dnl before AC_CONFIG_FILE/AC_OUTPUT is perfect. This macro rewrites CC and 13 | dnl LIBTOOL, you don't want the configure tests to have these variables 14 | dnl re-defined. 15 | dnl * This macro requires GNU make's -s option. 16 | 17 | AC_DEFUN([_SHAVE_ARG_ENABLE], 18 | [ 19 | AC_ARG_ENABLE([shave], 20 | AS_HELP_STRING( 21 | [--enable-shave], 22 | [use shave to make the build pretty [[default=$1]]]),, 23 | [enable_shave=$1] 24 | ) 25 | ]) 26 | 27 | AC_DEFUN([SHAVE_INIT], 28 | [ 29 | dnl you can tweak the default value of enable_shave 30 | m4_if([$2], [enable], [_SHAVE_ARG_ENABLE(yes)], [_SHAVE_ARG_ENABLE(no)]) 31 | 32 | if test x"$enable_shave" = xyes; then 33 | dnl where can we find the shave scripts? 34 | m4_if([$1],, 35 | [shavedir="$ac_pwd"], 36 | [shavedir="$ac_pwd/$1"]) 37 | AC_SUBST(shavedir) 38 | 39 | dnl make is now quiet 40 | AC_SUBST([MAKEFLAGS], [-s]) 41 | AC_SUBST([AM_MAKEFLAGS], ['`test -z $V && echo -s`']) 42 | 43 | dnl we need sed 44 | AC_CHECK_PROG(SED,sed,sed,false) 45 | 46 | dnl substitute libtool 47 | SHAVE_SAVED_LIBTOOL=$LIBTOOL 48 | LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'" 49 | AC_SUBST(LIBTOOL) 50 | 51 | dnl substitute cc/cxx 52 | SHAVE_SAVED_CC=$CC 53 | SHAVE_SAVED_CXX=$CXX 54 | SHAVE_SAVED_FC=$FC 55 | SHAVE_SAVED_F77=$F77 56 | CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}" 57 | CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}" 58 | FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}" 59 | F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}" 60 | AC_SUBST(CC) 61 | AC_SUBST(CXX) 62 | AC_SUBST(FC) 63 | AC_SUBST(F77) 64 | 65 | V=@ 66 | else 67 | V=1 68 | fi 69 | Q='$(V:1=)' 70 | AC_SUBST(V) 71 | AC_SUBST(Q) 72 | ]) 73 | 74 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | applets/expander/expander.desktop.in.in 2 | [type: gettext/ini]applets/taskmanager/awn-applet-taskmanager.schema-ini.in 3 | applets/taskmanager/task-launcher.cc 4 | applets/taskmanager/task-icon.cc 5 | applets/taskmanager/task-icon-build-context-menus.cc 6 | applets/taskmanager/taskmanager.desktop.in.in 7 | applets/quick-prefs/applet.vala 8 | applets/quick-prefs/quick-prefs.desktop.in.in 9 | applets/separator/separator.desktop.in.in 10 | applets/simple-launcher/simple-launcher.desktop.in.in 11 | awn-settings/awn-settings.desktop.in 12 | [type: gettext/glade]awn-settings/awn-settings.ui 13 | awn-settings/awn_class.py 14 | awn-settings/awn_settings.py 15 | bindings/python/__init__.py.in 16 | data/avant-window-navigator.desktop.in 17 | [type: gettext/ini]data/avant-window-navigator.schema-ini.in.in 18 | [type: gettext/glade]data/awn-themed-icon.ui 19 | libawn/awn-applet.cc 20 | libawn/awn-themed-icon.cc 21 | src/awn-applet-proxy.cc 22 | src/awn-panel.cc 23 | -------------------------------------------------------------------------------- /po/POTFILES.skip: -------------------------------------------------------------------------------- 1 | applets/taskmanager/taskmanager.desktop.in 2 | applets/expander/expander.desktop.in 3 | applets/separator/separator.desktop.in 4 | applets/simple-launcher/simple-launcher.desktop.in 5 | applets/quick-prefs/applet.c 6 | applets/quick-prefs/quick-prefs.desktop.in 7 | awn-manager/ 8 | debian/ 9 | bindings/python/__init__.py 10 | -------------------------------------------------------------------------------- /po/notexist: -------------------------------------------------------------------------------- 1 | bindings/python/__init__.py 2 | -------------------------------------------------------------------------------- /shave/shave-libtool.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # we need sed 4 | SED=@SED@ 5 | if test -z "$SED" ; then 6 | SED=sed 7 | fi 8 | 9 | lt_unmangle () 10 | { 11 | last_result=`echo $1 | $SED -e 's#.libs/##' -e 's#[0-9a-zA-Z_\-\.]*_la-##'` 12 | } 13 | 14 | # the real libtool to use 15 | LIBTOOL="$1" 16 | shift 17 | 18 | # if 1, don't print anything, the underlaying wrapper will do it 19 | pass_though=0 20 | 21 | # scan the arguments, keep the right ones for libtool, and discover the mode 22 | preserved_args= 23 | while test "$#" -gt 0; do 24 | opt="$1" 25 | shift 26 | 27 | case $opt in 28 | --mode=*) 29 | mode=`echo $opt | $SED -e 's/[-_a-zA-Z0-9]*=//'` 30 | preserved_args="$preserved_args $opt" 31 | ;; 32 | -o) 33 | lt_output="$1" 34 | preserved_args="$preserved_args $opt" 35 | ;; 36 | *) 37 | preserved_args="$preserved_args $opt" 38 | ;; 39 | esac 40 | done 41 | 42 | case "$mode" in 43 | compile) 44 | # shave will be called and print the actual CC/CXX/LINK line 45 | preserved_args="$preserved_args --shave-mode=$mode" 46 | pass_though=1 47 | ;; 48 | link) 49 | preserved_args="$preserved_args --shave-mode=$mode" 50 | Q=" LINK " 51 | ;; 52 | *) 53 | # let's u 54 | # echo "*** libtool: Unimplemented mode: $mode, fill a bug report" 55 | ;; 56 | esac 57 | 58 | lt_unmangle "$lt_output" 59 | output=$last_result 60 | 61 | if test -z $V; then 62 | if test $pass_though -eq 0; then 63 | echo "$Q$output" 64 | fi 65 | $LIBTOOL --silent $preserved_args 66 | else 67 | echo $LIBTOOL $preserved_args 68 | $LIBTOOL $preserved_args 69 | fi 70 | -------------------------------------------------------------------------------- /shave/shave.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # we need sed 4 | SED=@SED@ 5 | if test -z "$SED" ; then 6 | SED=sed 7 | fi 8 | 9 | lt_unmangle () 10 | { 11 | last_result=`echo $1 | $SED -e 's#.libs/##' -e 's#[0-9a-zA-Z_\-\.]*_la-##'` 12 | } 13 | 14 | # the tool to wrap (cc, cxx, ar, ranlib, ..) 15 | tool="$1" 16 | shift 17 | 18 | # the reel tool (to call) 19 | REEL_TOOL="$1" 20 | shift 21 | 22 | pass_through=0 23 | preserved_args= 24 | while test "$#" -gt 0; do 25 | opt="$1" 26 | shift 27 | 28 | case $opt in 29 | --shave-mode=*) 30 | mode=`echo $opt | $SED -e 's/[-_a-zA-Z0-9]*=//'` 31 | ;; 32 | -o) 33 | lt_output="$1" 34 | preserved_args="$preserved_args $opt" 35 | ;; 36 | *) 37 | preserved_args="$preserved_args $opt" 38 | ;; 39 | esac 40 | done 41 | 42 | # mode=link is handled in the libtool wrapper 43 | case "$mode,$tool" in 44 | link,*) 45 | pass_through=1 46 | ;; 47 | *,cxx) 48 | Q=" CXX " 49 | ;; 50 | *,cc) 51 | Q=" CC " 52 | ;; 53 | *,fc) 54 | Q=" FC " 55 | ;; 56 | *,f77) 57 | Q=" F77 " 58 | ;; 59 | *,*) 60 | # should not happen 61 | Q=" CC " 62 | ;; 63 | esac 64 | 65 | lt_unmangle "$lt_output" 66 | output=$last_result 67 | 68 | if test -z $V; then 69 | if test $pass_through -eq 0; then 70 | echo "$Q$output" 71 | fi 72 | $REEL_TOOL $preserved_args 73 | else 74 | echo $REEL_TOOL $preserved_args 75 | $REEL_TOOL $preserved_args 76 | fi 77 | -------------------------------------------------------------------------------- /src/awn-app.h: -------------------------------------------------------------------------------- 1 | /* awn-app.h generated by valac 0.12.1, the Vala compiler, do not modify */ 2 | 3 | 4 | #ifndef __AWN_APP_H__ 5 | #define __AWN_APP_H__ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | G_BEGIN_DECLS 15 | 16 | 17 | #define AWN_TYPE_APP_DBUS_INTERFACE (awn_app_dbus_interface_get_type ()) 18 | #define AWN_APP_DBUS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_APP_DBUS_INTERFACE, AwnAppDBusInterface)) 19 | #define AWN_IS_APP_DBUS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_APP_DBUS_INTERFACE)) 20 | #define AWN_APP_DBUS_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), AWN_TYPE_APP_DBUS_INTERFACE, AwnAppDBusInterfaceIface)) 21 | 22 | typedef struct _AwnAppDBusInterface AwnAppDBusInterface; 23 | typedef struct _AwnAppDBusInterfaceIface AwnAppDBusInterfaceIface; 24 | 25 | #define AWN_TYPE_APPLICATION (awn_application_get_type ()) 26 | #define AWN_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_APPLICATION, AwnApplication)) 27 | #define AWN_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_APPLICATION, AwnApplicationClass)) 28 | #define AWN_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_APPLICATION)) 29 | #define AWN_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_APPLICATION)) 30 | #define AWN_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_APPLICATION, AwnApplicationClass)) 31 | 32 | typedef struct _AwnApplication AwnApplication; 33 | typedef struct _AwnApplicationClass AwnApplicationClass; 34 | typedef struct _AwnApplicationPrivate AwnApplicationPrivate; 35 | 36 | struct _AwnAppDBusInterfaceIface { 37 | GTypeInterface parent_iface; 38 | gchar** (*get_panels) (AwnAppDBusInterface* self, int* result_length1, GError** error); 39 | void (*remove_panel) (AwnAppDBusInterface* self, gint panel_id, GError** error); 40 | }; 41 | 42 | struct _AwnApplication { 43 | GObject parent_instance; 44 | AwnApplicationPrivate * priv; 45 | }; 46 | 47 | struct _AwnApplicationClass { 48 | GObjectClass parent_class; 49 | }; 50 | 51 | 52 | AwnAppDBusInterface* awn_app_dbus_interface_dbus_proxy_new (DBusGConnection* connection, const char* name, const char* path); 53 | GType awn_app_dbus_interface_get_type (void) G_GNUC_CONST; 54 | gchar** awn_app_dbus_interface_get_panels (AwnAppDBusInterface* self, int* result_length1, GError** error); 55 | void awn_app_dbus_interface_remove_panel (AwnAppDBusInterface* self, gint panel_id, GError** error); 56 | GType awn_application_get_type (void) G_GNUC_CONST; 57 | AwnApplication* awn_application_get_default (void); 58 | 59 | 60 | G_END_DECLS 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /src/awn-background-3d.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | */ 20 | 21 | #ifndef _AWN_BACKGROUND_3D_H 22 | #define _AWN_BACKGROUND_3D_H 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-background.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_BACKGROUND_3D (awn_background_3d_get_type()) 35 | 36 | #define AWN_BACKGROUND_3D(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_3D, \ 37 | AwnBackground3d)) 38 | 39 | #define AWN_BACKGROUND_3D_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_3D, \ 40 | AwnBackground3dClass)) 41 | 42 | #define AWN_IS_BACKGROUND_3D(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_3D)) 43 | 44 | #define AWN_IS_BACKGROUND_3D_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 45 | AWN_TYPE_BACKGROUND_3D)) 46 | 47 | #define AWN_BACKGROUND_3D_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | AWN_TYPE_BACKGROUND_3D, AwnBackground3dClass)) 49 | 50 | typedef struct _AwnBackground3d AwnBackground3d; 51 | typedef struct _AwnBackground3dClass AwnBackground3dClass; 52 | 53 | struct _AwnBackground3d { 54 | AwnBackground parent; 55 | }; 56 | 57 | struct _AwnBackground3dClass { 58 | AwnBackgroundClass parent_class; 59 | }; 60 | 61 | GType awn_background_3d_get_type(void) G_GNUC_CONST; 62 | 63 | AwnBackground* awn_background_3d_new(DesktopAgnosticConfigClient* client, 64 | AwnPanel* panel); 65 | 66 | #ifdef __cplusplus 67 | } // extern "C" 68 | #endif 69 | 70 | 71 | #endif /* _AWN_BACKGROUND_3D_H */ 72 | 73 | -------------------------------------------------------------------------------- /src/awn-background-curves.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | */ 20 | 21 | #ifndef _AWN_BACKGROUND_CURVES_H 22 | #define _AWN_BACKGROUND_CURVES_H 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-background.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_BACKGROUND_CURVES (awn_background_curves_get_type()) 35 | 36 | #define AWN_BACKGROUND_CURVES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_CURVES, \ 37 | AwnBackgroundCurves)) 38 | 39 | #define AWN_BACKGROUND_CURVES_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_CURVES, \ 40 | AwnBackgroundCurvesClass)) 41 | 42 | #define AWN_IS_BACKGROUND_CURVES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_CURVES)) 43 | 44 | #define AWN_IS_BACKGROUND_CURVES_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 45 | AWN_TYPE_BACKGROUND_CURVES)) 46 | 47 | #define AWN_BACKGROUND_CURVES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | AWN_TYPE_BACKGROUND_CURVES, AwnBackgroundCurvesClass)) 49 | 50 | typedef struct _AwnBackgroundCurves AwnBackgroundCurves; 51 | typedef struct _AwnBackgroundCurvesClass AwnBackgroundCurvesClass; 52 | 53 | struct _AwnBackgroundCurves { 54 | AwnBackground parent; 55 | }; 56 | 57 | struct _AwnBackgroundCurvesClass { 58 | AwnBackgroundClass parent_class; 59 | }; 60 | 61 | GType awn_background_curves_get_type(void) G_GNUC_CONST; 62 | 63 | AwnBackground* awn_background_curves_new(DesktopAgnosticConfigClient* client, 64 | AwnPanel* panel); 65 | 66 | #ifdef __cplusplus 67 | } // extern "C" 68 | #endif 69 | 70 | 71 | #endif /* _AWN_BACKGROUND_CURVES_H */ 72 | 73 | -------------------------------------------------------------------------------- /src/awn-background-edgy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Michal Hruby 19 | */ 20 | 21 | #ifndef _AWN_BACKGROUND_EDGY_H 22 | #define _AWN_BACKGROUND_EDGY_H 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-background-flat.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_BACKGROUND_EDGY (awn_background_edgy_get_type()) 35 | 36 | #define AWN_BACKGROUND_EDGY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_EDGY, \ 37 | AwnBackgroundEdgy)) 38 | 39 | #define AWN_BACKGROUND_EDGY_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_EDGY, \ 40 | AwnBackgroundEdgyClass)) 41 | 42 | #define AWN_IS_BACKGROUND_EDGY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_EDGY)) 43 | 44 | #define AWN_IS_BACKGROUND_EDGY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 45 | AWN_TYPE_BACKGROUND_EDGY)) 46 | 47 | #define AWN_BACKGROUND_EDGY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | AWN_TYPE_BACKGROUND_EDGY, AwnBackgroundEdgyClass)) 49 | 50 | typedef struct _AwnBackgroundEdgy AwnBackgroundEdgy; 51 | typedef struct _AwnBackgroundEdgyClass AwnBackgroundEdgyClass; 52 | typedef struct _AwnBackgroundEdgyPrivate AwnBackgroundEdgyPrivate; 53 | 54 | struct _AwnBackgroundEdgy { 55 | AwnBackgroundFlat parent; 56 | 57 | gint size_offset; 58 | 59 | AwnBackgroundEdgyPrivate* priv; 60 | }; 61 | 62 | struct _AwnBackgroundEdgyClass { 63 | AwnBackgroundFlatClass parent_class; 64 | }; 65 | 66 | GType awn_background_edgy_get_type(void) G_GNUC_CONST; 67 | 68 | AwnBackground* awn_background_edgy_new(DesktopAgnosticConfigClient* client, 69 | AwnPanel* panel); 70 | 71 | #ifdef __cplusplus 72 | } // extern "C" 73 | #endif 74 | 75 | 76 | #endif /* _AWN_BACKGROUND_EDGY_H */ 77 | 78 | -------------------------------------------------------------------------------- /src/awn-background-flat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | */ 20 | 21 | #ifndef _AWN_BACKGROUND_FLAT_H 22 | #define _AWN_BACKGROUND_FLAT_H 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-background.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_BACKGROUND_FLAT (awn_background_flat_get_type()) 35 | 36 | #define AWN_BACKGROUND_FLAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_FLAT, \ 37 | AwnBackgroundFlat)) 38 | 39 | #define AWN_BACKGROUND_FLAT_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_FLAT, \ 40 | AwnBackgroundFlatClass)) 41 | 42 | #define AWN_IS_BACKGROUND_FLAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_FLAT)) 43 | 44 | #define AWN_IS_BACKGROUND_FLAT_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 45 | AWN_TYPE_BACKGROUND_FLAT)) 46 | 47 | #define AWN_BACKGROUND_FLAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | AWN_TYPE_BACKGROUND_FLAT, AwnBackgroundFlatClass)) 49 | 50 | typedef struct _AwnBackgroundFlat AwnBackgroundFlat; 51 | typedef struct _AwnBackgroundFlatClass AwnBackgroundFlatClass; 52 | 53 | struct _AwnBackgroundFlat { 54 | AwnBackground parent; 55 | }; 56 | 57 | struct _AwnBackgroundFlatClass { 58 | AwnBackgroundClass parent_class; 59 | }; 60 | 61 | GType awn_background_flat_get_type(void) G_GNUC_CONST; 62 | 63 | AwnBackground* awn_background_flat_new(DesktopAgnosticConfigClient* client, 64 | AwnPanel* panel); 65 | 66 | #ifdef __cplusplus 67 | } // extern "C" 68 | #endif 69 | 70 | 71 | #endif /* _AWN_BACKGROUND_FLAT_H */ 72 | 73 | -------------------------------------------------------------------------------- /src/awn-background-floaty.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Michal Hruby 19 | */ 20 | 21 | #ifndef _AWN_BACKGROUND_FLOATY_H 22 | #define _AWN_BACKGROUND_FLOATY_H 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-background.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_BACKGROUND_FLOATY (awn_background_floaty_get_type()) 35 | 36 | #define AWN_BACKGROUND_FLOATY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_FLOATY, \ 37 | AwnBackgroundFloaty)) 38 | 39 | #define AWN_BACKGROUND_FLOATY_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_FLOATY, \ 40 | AwnBackgroundFloatyClass)) 41 | 42 | #define AWN_IS_BACKGROUND_FLOATY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_FLOATY)) 43 | 44 | #define AWN_IS_BACKGROUND_FLOATY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 45 | AWN_TYPE_BACKGROUND_FLOATY)) 46 | 47 | #define AWN_BACKGROUND_FLOATY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | AWN_TYPE_BACKGROUND_FLOATY, AwnBackgroundFloatyClass)) 49 | 50 | typedef struct _AwnBackgroundFloaty AwnBackgroundFloaty; 51 | typedef struct _AwnBackgroundFloatyClass AwnBackgroundFloatyClass; 52 | 53 | struct _AwnBackgroundFloaty { 54 | AwnBackground parent; 55 | }; 56 | 57 | struct _AwnBackgroundFloatyClass { 58 | AwnBackgroundClass parent_class; 59 | }; 60 | 61 | GType awn_background_floaty_get_type(void) G_GNUC_CONST; 62 | 63 | AwnBackground* awn_background_floaty_new(DesktopAgnosticConfigClient* client, 64 | AwnPanel* panel); 65 | 66 | #ifdef __cplusplus 67 | } // extern "C" 68 | #endif 69 | 70 | 71 | #endif /* _AWN_BACKGROUND_FLOATY_H */ 72 | 73 | -------------------------------------------------------------------------------- /src/awn-background-lucido.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Alberto Aldegheri 19 | */ 20 | 21 | #ifndef _AWN_BACKGROUND_LUCIDO_H 22 | #define _AWN_BACKGROUND_LUCIDO_H 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include "awn-background.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define AWN_TYPE_BACKGROUND_LUCIDO (awn_background_lucido_get_type()) 35 | 36 | #define AWN_BACKGROUND_LUCIDO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_LUCIDO, \ 37 | AwnBackgroundLucido)) 38 | 39 | #define AWN_BACKGROUND_LUCIDO_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_LUCIDO, \ 40 | AwnBackgroundLucidoClass)) 41 | 42 | #define AWN_IS_BACKGROUND_LUCIDO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_LUCIDO)) 43 | 44 | #define AWN_IS_BACKGROUND_LUCIDO_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 45 | AWN_TYPE_BACKGROUND_LUCIDO)) 46 | 47 | #define AWN_BACKGROUND_LUCIDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | AWN_TYPE_BACKGROUND_LUCIDO, AwnBackgroundLucidoClass)) 49 | 50 | typedef struct _AwnBackgroundLucido AwnBackgroundLucido; 51 | typedef struct _AwnBackgroundLucidoClass AwnBackgroundLucidoClass; 52 | typedef struct _AwnBackgroundLucidoPrivate AwnBackgroundLucidoPrivate; 53 | 54 | struct _AwnBackgroundLucido { 55 | AwnBackground parent; 56 | AwnBackgroundLucidoPrivate* priv; 57 | }; 58 | 59 | struct _AwnBackgroundLucidoClass { 60 | AwnBackgroundClass parent_class; 61 | }; 62 | 63 | GType awn_background_lucido_get_type(void) G_GNUC_CONST; 64 | 65 | AwnBackground* awn_background_lucido_new(DesktopAgnosticConfigClient* client, 66 | AwnPanel* panel); 67 | 68 | #ifdef __cplusplus 69 | } // extern "C" 70 | #endif 71 | 72 | 73 | #endif /* _AWN_BACKGROUND_LUCIDO_H */ 74 | 75 | -------------------------------------------------------------------------------- /src/awn-background-null.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Alberto Aldegheri 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Alberto Aldegheri 19 | * 20 | */ 21 | 22 | #include "config.h" 23 | 24 | #include "awn-background-null.h" 25 | 26 | extern "C" { 27 | G_DEFINE_TYPE(AwnBackgroundNull, awn_background_null, AWN_TYPE_BACKGROUND) 28 | } 29 | 30 | static void 31 | awn_background_null_constructed(GObject* object) 32 | { 33 | G_OBJECT_CLASS(awn_background_null_parent_class)->constructed(object); 34 | } 35 | 36 | static void 37 | awn_background_null_dispose(GObject* object) 38 | { 39 | G_OBJECT_CLASS(awn_background_null_parent_class)->dispose(object); 40 | } 41 | 42 | static void 43 | awn_background_null_class_init(AwnBackgroundNullClass* klass) 44 | { 45 | GObjectClass* obj_class = G_OBJECT_CLASS(klass); 46 | 47 | obj_class->constructed = awn_background_null_constructed; 48 | obj_class->dispose = awn_background_null_dispose; 49 | } 50 | 51 | 52 | static void 53 | awn_background_null_init(AwnBackgroundNull* bg) 54 | { 55 | 56 | } 57 | 58 | AwnBackground* 59 | awn_background_null_new(DesktopAgnosticConfigClient* client, AwnPanel* panel) 60 | { 61 | AwnBackground* bg; 62 | 63 | bg = g_object_new(AWN_TYPE_BACKGROUND_NULL, 64 | "client", client, 65 | "panel", panel, 66 | NULL); 67 | return bg; 68 | } 69 | 70 | /* vim: set et ts=2 sts=2 sw=2 : */ 71 | -------------------------------------------------------------------------------- /src/awn-background-null.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Alberto Aldegheri 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Alberto Aldegheri 19 | * 20 | */ 21 | 22 | #ifndef _AWN_BACKGROUND_NULL_H 23 | #define _AWN_BACKGROUND_NULL_H 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "awn-background.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define AWN_TYPE_BACKGROUND_NULL (awn_background_null_get_type()) 36 | 37 | #define AWN_BACKGROUND_NULL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_BACKGROUND_NULL, \ 38 | AwnBackgroundNull)) 39 | 40 | #define AWN_BACKGROUND_NULL_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_BACKGROUND_NULL, \ 41 | AwnBackgroundNullClass)) 42 | 43 | #define AWN_IS_BACKGROUND_NULL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_BACKGROUND_NULL)) 44 | 45 | #define AWN_IS_BACKGROUND_NULL_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 46 | AWN_TYPE_BACKGROUND_NULL)) 47 | 48 | #define AWN_BACKGROUND_NULL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 49 | AWN_TYPE_BACKGROUND_NULL, AwnBackgroundNullClass)) 50 | 51 | typedef struct _AwnBackgroundNull AwnBackgroundNull; 52 | typedef struct _AwnBackgroundNullClass AwnBackgroundNullClass; 53 | 54 | struct _AwnBackgroundNull { 55 | AwnBackground parent; 56 | }; 57 | 58 | struct _AwnBackgroundNullClass { 59 | AwnBackgroundClass parent_class; 60 | }; 61 | 62 | GType awn_background_null_get_type(void) G_GNUC_CONST; 63 | 64 | AwnBackground* awn_background_null_new(DesktopAgnosticConfigClient* client, 65 | AwnPanel* panel); 66 | 67 | #ifdef __cplusplus 68 | } // extern "C" 69 | #endif 70 | 71 | 72 | #endif /* _AWN_BACKGROUND_NULL_H */ 73 | 74 | -------------------------------------------------------------------------------- /src/awn-marshal.list: -------------------------------------------------------------------------------- 1 | BOOLEAN:VOID 2 | VOID:STRING,BOXED 3 | -------------------------------------------------------------------------------- /src/awn-monitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | */ 20 | 21 | #ifndef _AWN_MONITOR_H 22 | #define _AWN_MONITOR_H 23 | 24 | #include 25 | #include 26 | 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #define AWN_TYPE_MONITOR (awn_monitor_get_type()) 34 | 35 | #define AWN_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_MONITOR, \ 36 | AwnMonitor)) 37 | 38 | #define AWN_MONITOR_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), AWN_MONITOR, \ 39 | AwnMonitorClass)) 40 | 41 | #define AWN_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_MONITOR)) 42 | 43 | #define AWN_IS_MONITOR_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \ 44 | AWN_TYPE_MONITOR)) 45 | 46 | #define AWN_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 47 | AWN_TYPE_MONITOR, AwnMonitorClass)) 48 | 49 | typedef struct _AwnMonitor AwnMonitor; 50 | typedef struct _AwnMonitorClass AwnMonitorClass; 51 | typedef struct _AwnMonitorPrivate AwnMonitorPrivate; 52 | 53 | struct _AwnMonitor { 54 | GObject parent; 55 | 56 | gint width; 57 | gint height; 58 | gint x_offset; 59 | gint y_offset; 60 | gfloat align; 61 | 62 | /*< private >*/ 63 | AwnMonitorPrivate* priv; 64 | }; 65 | 66 | struct _AwnMonitorClass { 67 | GObjectClass parent_class; 68 | 69 | /*< signals >*/ 70 | void (*geometry_changed)(AwnMonitor* monitor); 71 | }; 72 | 73 | GType awn_monitor_get_type(void) G_GNUC_CONST; 74 | 75 | 76 | AwnMonitor* awn_monitor_new_for_screen(GdkScreen* screen, 77 | DesktopAgnosticConfigClient* client); 78 | 79 | #ifdef __cplusplus 80 | } // extern "C" 81 | #endif 82 | 83 | 84 | 85 | #endif /* _AWN_MONITOR_H */ 86 | 87 | -------------------------------------------------------------------------------- /src/awn-panel.vapi: -------------------------------------------------------------------------------- 1 | /* awn-panel.vapi stub (manually generated) */ 2 | 3 | [CCode (cprefix = "Awn", lower_case_cprefix = "awn_")] 4 | namespace Awn { 5 | [CCode (cheader_filename = "awn-panel.h")] 6 | public class Panel : Gtk.Window, Atk.Implementor, Gtk.Buildable { 7 | [CCode (type = "GtkWidget*", has_construct_function = false)] 8 | public Panel.with_panel_id (int panel_id); 9 | public bool add_applet (string desktop_file) throws GLib.Error; 10 | public bool delete_applet (string uid) throws GLib.Error; 11 | public bool set_applet_flags (string uid, int flags) throws GLib.Error; 12 | public bool set_glow (string sender, bool activate); 13 | public uint inhibit_autohide (string sender, string app_name, string reason); 14 | public bool uninhibit_autohide (uint cookie); 15 | 16 | [CCode (array_length = false, array_null_terminated = true)] 17 | public string[] get_inhibitors (); 18 | 19 | public bool get_snapshot (out int width, out int height, out int rowstride, out bool has_alpha, out int bits_per_sample, out int num_channels, out char[] pixel_data) throws GLib.Error; 20 | 21 | public int64 docklet_request (int min_size, bool shrink, bool expand) throws GLib.Error; 22 | 23 | [NoAccessorMethod] 24 | public int panel_id { get; construct; } 25 | [NoAccessorMethod] 26 | public int64 panel_xid { get; } 27 | [NoAccessorMethod] 28 | public int position { get; set construct; } 29 | [NoAccessorMethod] 30 | public int size { get; set construct; } 31 | [NoAccessorMethod] 32 | public int offset { get; set construct; } 33 | [NoAccessorMethod] 34 | public int max_size { get; } 35 | [NoAccessorMethod] 36 | public int path_type { get; set construct; } 37 | [NoAccessorMethod] 38 | public float offset_modifier { get; set construct; } 39 | 40 | public virtual signal void size_changed (int size); 41 | public virtual signal void position_changed (int position); 42 | public virtual signal void offset_changed (int offset); 43 | public virtual signal void property_changed (string prop_name, GLib.Value val); 44 | 45 | public virtual signal void destroy_applet (string uid); 46 | public virtual signal void destroy_notify (); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/awn-separator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Library General Public License version 6 | * 2 or later as published by the Free Software Foundation. 7 | * 8 | * This program is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU Lesser General Public License 14 | * along with this program. If not, see . 15 | * 16 | * Authored by Michal Hruby 17 | * 18 | */ 19 | 20 | #ifndef _AWN_SEPARATOR_H_ 21 | #define _AWN_SEPARATOR_H_ 22 | 23 | #include 24 | #include 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | #define AWN_TYPE_SEPARATOR awn_separator_get_type() 31 | 32 | #define AWN_SEPARATOR(obj) \ 33 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_SEPARATOR, AwnSeparator)) 34 | 35 | #define AWN_SEPARATOR_CLASS(klass) \ 36 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_SEPARATOR, AwnSeparatorClass)) 37 | 38 | #define AWN_IS_SEPARATOR(obj) \ 39 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_SEPARATOR)) 40 | 41 | #define AWN_IS_SEPARATOR_CLASS(klass) \ 42 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_SEPARATOR)) 43 | 44 | #define AWN_SEPARATOR_GET_CLASS(obj) \ 45 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_SEPARATOR, AwnSeparatorClass)) 46 | 47 | typedef struct _AwnSeparatorPrivate AwnSeparatorPrivate; 48 | 49 | typedef struct { 50 | GtkImage parent; 51 | 52 | AwnSeparatorPrivate* priv; 53 | } AwnSeparator; 54 | 55 | typedef struct { 56 | GtkImageClass parent_class; 57 | } AwnSeparatorClass; 58 | 59 | GType 60 | awn_separator_get_type(void); 61 | 62 | GtkWidget* 63 | awn_separator_new_from_config(DesktopAgnosticConfigClient* client); 64 | 65 | GtkWidget* 66 | awn_separator_new_from_config_with_values(DesktopAgnosticConfigClient* client, 67 | GtkPositionType pos, 68 | gint size, gint offset); 69 | 70 | void 71 | awn_separator_set_transparent(AwnSeparator* sep, gboolean transp); 72 | 73 | gboolean 74 | awn_separator_get_transparent(AwnSeparator* sep, gboolean transp); 75 | 76 | void 77 | awn_separator_set_separator_size(AwnSeparator* sep, gint size); 78 | 79 | gint 80 | awn_separator_get_separator_size(AwnSeparator* sep, gint size); 81 | 82 | #ifdef __cplusplus 83 | } // extern "C" 84 | #endif 85 | 86 | 87 | #endif /* _AWN_SEPARATOR_H_ */ 88 | 89 | -------------------------------------------------------------------------------- /src/awn-throbber.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Michal Hruby 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Library General Public License version 6 | * 2 or later as published by the Free Software Foundation. 7 | * 8 | * This program is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU Lesser General Public License 14 | * along with this program. If not, see . 15 | * 16 | * Authored by Michal Hruby 17 | * 18 | */ 19 | 20 | #ifndef _AWN_THROBBER_H_ 21 | #define _AWN_THROBBER_H_ 22 | 23 | #include 24 | #include 25 | 26 | #include 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #define AWN_TYPE_THROBBER (awn_throbber_get_type ()) 33 | 34 | #define AWN_THROBBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ 35 | AWN_TYPE_THROBBER, AwnThrobber)) 36 | 37 | #define AWN_THROBBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\ 38 | AWN_TYPE_THROBBER, AwnThrobberClass)) 39 | 40 | #define AWN_IS_THROBBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\ 41 | AWN_TYPE_THROBBER)) 42 | 43 | #define AWN_IS_THROBBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\ 44 | AWN_TYPE_THROBBER)) 45 | 46 | #define AWN_THROBBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ 47 | AWN_TYPE_THROBBER, AwnThrobberClass)) 48 | 49 | typedef struct _AwnThrobber AwnThrobber; 50 | typedef struct _AwnThrobberClass AwnThrobberClass; 51 | typedef struct _AwnThrobberPrivate AwnThrobberPrivate; 52 | 53 | struct _AwnThrobber { 54 | AwnIcon parent; 55 | 56 | AwnThrobberPrivate* priv; 57 | }; 58 | 59 | struct _AwnThrobberClass { 60 | AwnIconClass parent_class; 61 | }; 62 | 63 | typedef enum { 64 | AWN_THROBBER_TYPE_NORMAL, 65 | AWN_THROBBER_TYPE_SAD_FACE, 66 | AWN_THROBBER_TYPE_ARROW_1, 67 | AWN_THROBBER_TYPE_ARROW_2, 68 | AWN_THROBBER_TYPE_CLOSE_BUTTON 69 | } AwnThrobberType; 70 | 71 | GType awn_throbber_get_type(void) G_GNUC_CONST; 72 | 73 | GtkWidget* awn_throbber_new(void); 74 | 75 | GtkWidget* awn_throbber_new_with_config(DesktopAgnosticConfigClient* client); 76 | 77 | void awn_throbber_set_type(AwnThrobber* throbber, 78 | AwnThrobberType type); 79 | 80 | void awn_throbber_set_size(AwnThrobber* throbber, gint size); 81 | 82 | #ifdef __cplusplus 83 | } // extern "C" 84 | #endif 85 | 86 | 87 | #endif /* _AWN_THROBBER_H_ */ 88 | 89 | -------------------------------------------------------------------------------- /src/awn-ua-alignment.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 Rodney Cryderman 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * 19 | */ 20 | 21 | /* awn-ua-alignment.h */ 22 | 23 | #ifndef _AWN_UA_ALIGNMENT 24 | #define _AWN_UA_ALIGNMENT 25 | 26 | #include 27 | #include "awn-applet-manager.h" 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #define AWN_TYPE_UA_ALIGNMENT awn_ua_alignment_get_type() 34 | 35 | #define AWN_UA_ALIGNMENT(obj) \ 36 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_UA_ALIGNMENT, AwnUAAlignment)) 37 | 38 | #define AWN_UA_ALIGNMENT_CLASS(klass) \ 39 | (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_UA_ALIGNMENT, AwnUAAlignmentClass)) 40 | 41 | #define AWN_IS_UA_ALIGNMENT(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_UA_ALIGNMENT)) 43 | 44 | #define AWN_IS_UA_ALIGNMENT_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_UA_ALIGNMENT)) 46 | 47 | #define AWN_UA_ALIGNMENT_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_UA_ALIGNMENT, AwnUAAlignmentClass)) 49 | 50 | typedef struct { 51 | GtkAlignment parent; 52 | } AwnUAAlignment; 53 | 54 | typedef struct { 55 | GtkAlignmentClass parent_class; 56 | } AwnUAAlignmentClass; 57 | 58 | GType awn_ua_alignment_get_type(void); 59 | 60 | GtkWidget* awn_ua_alignment_new(AwnAppletManager* manager, gchar* ua_list_entry, double ua_ratio); 61 | 62 | GtkWidget* awn_ua_alignment_get_socket(AwnUAAlignment* self); 63 | 64 | GdkWindow* awn_ua_alignment_add_id(AwnUAAlignment* self, GdkNativeWindow native_window); 65 | 66 | gint awn_ua_alignment_list_cmp(const void* a, const void* b); 67 | 68 | #ifdef __cplusplus 69 | } // extern "C" 70 | #endif 71 | 72 | 73 | #endif /* _AWN_UA_ALIGNMENT */ 74 | -------------------------------------------------------------------------------- /src/awn-x.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | * 20 | * Notes : Contains functions allowing Awn to get a icon from XOrg using the 21 | * xid. Please note that all icon reading code has been lifted from 22 | * libwnck (XUtils.c), so track bugfixes in libwnck. 23 | */ 24 | 25 | #include "config.h" 26 | #include "awn-x.h" 27 | #include "xutils.h" 28 | 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /src/awn-x.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | * 20 | * Notes : Contains functions allowing Awn to get an icon from XOrg using the 21 | * xid. Please note that all icon reading code has been lifted from 22 | * libwnck (XUtils.c), so track bugfixes in libwnck. 23 | */ 24 | 25 | #ifndef _AWN_X_H 26 | #define _AWN_X_H 27 | 28 | #include 29 | #include 30 | #include 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /src/xutils.h: -------------------------------------------------------------------------------- 1 | /* Xlib utilities */ 2 | 3 | /* 4 | * Copyright (C) 2001 Havoc Pennington 5 | * 2009 Michal Hruby 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Library General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Library General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Library General Public 18 | * License along with this library; if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 | * Boston, MA 02111-1307, USA. 21 | */ 22 | 23 | #ifndef WNCK_XUTILS_H 24 | #define WNCK_XUTILS_H 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | void xutils_set_strut(GdkWindow* gdk_window, 35 | GtkPositionType position, 36 | guint32 strut, 37 | guint32 strut_start, 38 | guint32 strut_end); 39 | 40 | GdkRegion* xutils_get_input_shape(GdkWindow* window); 41 | 42 | GdkWindow* xutils_get_window_at_pointer(GdkDisplay* gdk_display); 43 | 44 | gboolean xutils_is_window_minimized(GdkWindow* window); 45 | 46 | #ifdef __cplusplus 47 | } // extern "C" 48 | #endif 49 | 50 | 51 | #endif /* WNCK_XUTILS_H */ 52 | -------------------------------------------------------------------------------- /tests/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/Makefile.shave 2 | 3 | noinst_PROGRAMS = \ 4 | test-applet-simple \ 5 | test-awn-effects \ 6 | test-awn-icon \ 7 | test-awn-icon-box \ 8 | test-taskmanager \ 9 | test-themed-icon 10 | 11 | AM_CPPFLAGS = $(STANDARD_CPPFLAGS) $(DISABLE_DEPRECATED_FLAGS) $(AWN_CFLAGS) -I$(top_srcdir) 12 | AM_CFLAGS = $(WARNING_FLAGS) 13 | AM_CXXFLAGS = $(WARNING_FLAGS) -fpermissive -std=c++11 14 | 15 | test_applet_simple_SOURCES = test-applet-simple.cc 16 | test_applet_simple_LDADD = \ 17 | $(top_builddir)/libawn/libawn.la \ 18 | $(AWN_LIBS) 19 | 20 | test_awn_effects_SOURCES = test-awn-effects.cc 21 | test_awn_effects_LDADD = \ 22 | $(top_builddir)/libawn/libawn.la \ 23 | $(AWN_LIBS) 24 | 25 | test_awn_icon_SOURCES = test-awn-icon.cc 26 | test_awn_icon_LDADD = \ 27 | $(top_builddir)/libawn/libawn.la \ 28 | $(AWN_LIBS) 29 | 30 | test_awn_icon_box_SOURCES = test-awn-icon-box.cc 31 | test_awn_icon_box_LDADD = \ 32 | $(top_builddir)/libawn/libawn.la \ 33 | $(AWN_LIBS) 34 | 35 | test_taskmanager_SOURCES = test-taskmanager.cc 36 | test_taskmanager_LDADD = \ 37 | $(AWN_LIBS) \ 38 | $(top_builddir)/libawn/libawn.la \ 39 | $(NULL) 40 | 41 | test_themed_icon_SOURCES = test-themed-icon.cc 42 | test_themed_icon_LDADD = \ 43 | $(top_builddir)/libawn/libawn.la \ 44 | $(AWN_LIBS) 45 | 46 | EXTRA_DIST = test-awn-dialog.py \ 47 | test-awn-tooltip.py \ 48 | test-effects.py \ 49 | test-effects-scaling.py \ 50 | test-overlays.py \ 51 | test-taskmanager-dnd.py \ 52 | test-taskmanager-windows.py 53 | 54 | noinst_PROGRAMS += test-vala-awn-dialog 55 | 56 | VALA_FILES = \ 57 | test-vala-awn-dialog.vala \ 58 | $(NULL) 59 | 60 | test_vala_awn_dialog_SOURCES = test-vala-awn-dialog.c 61 | test_vala_awn_dialog_CFLAGS = -Wall -Wno-redundant-decls 62 | test_vala_awn_dialog_LDADD = \ 63 | $(top_builddir)/libawn/libawn.la \ 64 | $(AWN_LIBS) 65 | 66 | .vala.c: 67 | $(QUIET_GEN)$(VALAC) -C $< --vapidir=$(top_srcdir)/bindings/vala \ 68 | --vapidir=$(LDA_VAPIDIR) --pkg=awn 69 | 70 | EXTRA_DIST += $(VALA_FILES) 71 | CLEANFILES = test-vala-awn-dialog.c 72 | -------------------------------------------------------------------------------- /tests/test-applet-simple.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | */ 20 | #include 21 | #include 22 | #include 23 | 24 | gint 25 | main(gint argc, gchar** argv) 26 | { 27 | GtkWidget* window, *socket, *icon; 28 | GdkScreen* screen; 29 | GdkColormap* map; 30 | 31 | gtk_init(&argc, &argv); 32 | 33 | screen = gdk_screen_get_default(); 34 | map = gdk_screen_get_rgba_colormap(screen); 35 | 36 | window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 37 | if (map) { 38 | gtk_widget_set_colormap(window, map); 39 | } 40 | gtk_window_resize(GTK_WINDOW(window), 50, 100); 41 | gtk_widget_show(window); 42 | 43 | socket = gtk_socket_new(); 44 | gtk_container_add(GTK_CONTAINER(window), socket); 45 | gtk_widget_show(socket); 46 | 47 | icon = awn_applet_simple_new("test-applet", "1234567890", 0); 48 | awn_applet_simple_set_icon_name(AWN_APPLET_SIMPLE(icon), GTK_STOCK_APPLY); 49 | gtk_plug_construct(GTK_PLUG(icon), gtk_socket_get_id(GTK_SOCKET(socket))); 50 | 51 | gtk_main(); 52 | return 0; 53 | } 54 | 55 | -------------------------------------------------------------------------------- /tests/test-awn-dialog.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright © 2009 Michal Hruby 4 | # Copyright © 2009 Mark Lee 5 | # 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 2 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software 18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 | 20 | import awn 21 | import gtk 22 | 23 | 24 | def change_orient(widget, dialog): 25 | i = dialog.props.position 26 | i = (i + 1) % 4 27 | dialog.props.position = i 28 | 29 | 30 | def change_attach(widget, dialog): 31 | dialog.props.anchored = not dialog.props.anchored 32 | 33 | d = awn.Dialog() 34 | d.set_title("Hello") 35 | d.show_all() 36 | 37 | win = gtk.Window() 38 | win.connect('delete-event', lambda w, e: gtk.main_quit()) 39 | button = gtk.Label("One of the dialogs points to this window") 40 | win.add(button) 41 | win.show_all() 42 | 43 | d2 = awn.Dialog(win) 44 | d2.set_title("Another title") 45 | d2.set_size_request(-1, 200) 46 | button = gtk.Button("Change orient") 47 | button.connect("clicked", change_orient, d2) 48 | d2.add(button) 49 | button = gtk.Button("Toggle attach") 50 | button.connect("clicked", change_attach, d2) 51 | d2.add(button) 52 | d2.show_all() 53 | 54 | gtk.main() 55 | -------------------------------------------------------------------------------- /tests/test-awn-tooltip.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright © 2009 Michal Hruby 4 | # Copyright © 2009 Mark Lee 5 | # 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 2 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software 18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 | 20 | import gtk 21 | import awn 22 | import gobject 23 | 24 | 25 | def show_hide_tooltip(icon): 26 | tooltip = icon.get_tooltip() 27 | if (tooltip.flags() & gtk.VISIBLE) == 0: 28 | tooltip.update_position() 29 | tooltip.show() 30 | icon.set_state("icon1") 31 | else: 32 | tooltip.hide() 33 | icon.set_state("icon2") 34 | 35 | return True # timer repeats 36 | 37 | win = gtk.Window() 38 | box = gtk.HBox() 39 | icon = awn.ThemedIcon() 40 | icon.set_info_simple("media-player", "12345", "media-player") 41 | icon.set_tooltip_text("Icon with smart-behavior & toggle-on-click") 42 | 43 | icon2 = awn.ThemedIcon() 44 | icon2.set_info("media-player", "1234", ["icon1", "icon2"], 45 | ["gnome-main-menu", "media-player"]) 46 | icon2.set_state("icon2") 47 | icon2.set_tooltip_text("Icon with manual tooltip control") 48 | icon2.get_tooltip().set_position_hint("top", 35) 49 | icon2.get_tooltip().props.smart_behavior = False 50 | icon2.get_tooltip().props.toggle_on_click = False 51 | gobject.timeout_add(1500, show_hide_tooltip, icon2) 52 | 53 | icon3 = awn.ThemedIcon() 54 | icon3.set_info_simple("media-player", "123456", "media-player") 55 | icon3.set_tooltip_text("Tooltip toggled only with mouse clicks") 56 | icon3.get_tooltip().props.smart_behavior = False 57 | icon3.get_tooltip().show() 58 | # we'll leave the toggle-on-click property to True 59 | 60 | box.add(icon) 61 | box.add(icon2) 62 | box.add(icon3) 63 | 64 | win.add(box) 65 | win.show_all() 66 | 67 | gtk.main() 68 | -------------------------------------------------------------------------------- /tests/test-taskmanager-windows.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright © 2009 haytjes 4 | # Copyright © 2009 Mark Lee 5 | # 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 2 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software 18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 | 20 | import gtk 21 | import awn 22 | 23 | count_windows = 1 24 | 25 | 26 | def destroy_window(button, window): 27 | window.destroy() 28 | 29 | 30 | def button_clicked(button, combobox): 31 | type_hint = {0: gtk.gdk.WINDOW_TYPE_HINT_NORMAL, 32 | 1: gtk.gdk.WINDOW_TYPE_HINT_DIALOG, 33 | 2: gtk.gdk.WINDOW_TYPE_HINT_UTILITY}[combobox.get_active()] 34 | 35 | create_window(type_hint) 36 | 37 | 38 | def create_window(type_hint): 39 | global count_windows 40 | 41 | win = gtk.Window() 42 | win.set_type_hint(type_hint) 43 | win.set_title("Window "+str(count_windows)) 44 | 45 | vbox = gtk.VBox() 46 | win.add(vbox) 47 | 48 | type_hint_txt = {0: "WINDOW_TYPE_HINT_NORMAL", 49 | 1: "WINDOW_TYPE_HINT_DIALOG", 50 | 2: "WINDOW_TYPE_HINT_UTILITY"}[combobox.get_active()] 51 | label = gtk.Label("type hint: "+type_hint_txt) 52 | vbox.add(label) 53 | 54 | 55 | button = gtk.Button("close") 56 | button.connect('clicked', lambda w: win.destroy()) 57 | vbox.add(button) 58 | 59 | win.show_all() 60 | 61 | count_windows += 1 62 | 63 | win = gtk.Window() 64 | win.connect('destroy', lambda w: gtk.main_quit()) 65 | 66 | vbox = gtk.VBox() 67 | win.add(vbox) 68 | 69 | combobox = gtk.combo_box_new_text() 70 | combobox.append_text('GDK_WINDOW_TYPE_HINT_NORMAL') 71 | combobox.append_text('GDK_WINDOW_TYPE_HINT_DIALOG') 72 | combobox.append_text('GDK_WINDOW_TYPE_HINT_UTILITY') 73 | combobox.set_active(0) 74 | vbox.add(combobox) 75 | 76 | button = gtk.Button("Create window") 77 | button.connect("clicked", button_clicked, combobox) 78 | vbox.add(button) 79 | 80 | win.show_all() 81 | 82 | gtk.main() 83 | 84 | 85 | # WNCK_WINDOW_NORMAL, /* document/app window */ 86 | # WNCK_WINDOW_DIALOG, /* dialog */ 87 | # WNCK_WINDOW_UTILITY, /* palette/toolbox window */ 88 | -------------------------------------------------------------------------------- /tests/test-themed-icon.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Neil Jagdish Patel 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 | * 18 | * Author : Neil Jagdish Patel 19 | */ 20 | #include 21 | #include 22 | #include 23 | 24 | gint 25 | main(gint argc, gchar** argv) 26 | { 27 | GtkWidget* window, *hbox, *icon; 28 | GdkScreen* screen; 29 | GdkColormap* map; 30 | 31 | gtk_init(&argc, &argv); 32 | 33 | screen = gdk_screen_get_default(); 34 | map = gdk_screen_get_rgba_colormap(screen); 35 | 36 | window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 37 | g_signal_connect(G_OBJECT(window), "destroy", 38 | G_CALLBACK(gtk_main_quit), NULL); 39 | 40 | if (map) { 41 | gtk_widget_set_colormap(window, map); 42 | } 43 | gtk_window_resize(GTK_WINDOW(window), 50, 100); 44 | gtk_widget_show(window); 45 | 46 | hbox = gtk_hbox_new(TRUE, 0); 47 | gtk_container_add(GTK_CONTAINER(window), hbox); 48 | gtk_widget_show(hbox); 49 | 50 | icon = awn_themed_icon_new(); 51 | awn_themed_icon_set_info_simple(AWN_THEMED_ICON(icon), 52 | "test-applet", "test-uid", 53 | GTK_STOCK_DIALOG_INFO); 54 | gtk_box_pack_start(GTK_BOX(hbox), icon, TRUE, TRUE, 0); 55 | gtk_widget_show(icon); 56 | 57 | icon = awn_themed_icon_new(); 58 | awn_themed_icon_set_info_simple(AWN_THEMED_ICON(icon), 59 | "test-applet", "test-uid", 60 | "../data/avant-window-navigator.svg"); 61 | gtk_box_pack_start(GTK_BOX(hbox), icon, TRUE, TRUE, 0); 62 | gtk_widget_show(icon); 63 | 64 | gtk_main(); 65 | return 0; 66 | } 67 | -------------------------------------------------------------------------------- /themes/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | themedir = $(pkgdatadir)/themes 4 | theme_DATA = \ 5 | clearlooks-dark.awn-theme \ 6 | dust.awn-theme \ 7 | dark.awn-theme \ 8 | light.awn-theme \ 9 | smoked.awn-theme \ 10 | $(NULL) 11 | 12 | thumb_themedir = $(themedir)/thumbnails 13 | thumb_theme_DATA = \ 14 | thumbnails/clearlooks-dark-thumb.png \ 15 | thumbnails/dust-thumb.png \ 16 | thumbnails/dark-thumb.png \ 17 | thumbnails/light-thumb.png \ 18 | thumbnails/smoked-thumb.png \ 19 | $(NULL) 20 | 21 | @INTLTOOL_DESKTOP_RULE@ 22 | 23 | EXTRA_DIST = \ 24 | $(theme_DATA:.awn-theme:.awn-theme.in) \ 25 | $(thumb_theme_DATA) \ 26 | $(NULL) 27 | -------------------------------------------------------------------------------- /themes/clearlooks-dark.awn-theme.in: -------------------------------------------------------------------------------- 1 | [config/theme] 2 | floaty_offset = 10 3 | border = #47ae47ae47aeffff 4 | tooltip_outline_color = #0000000000005b5b 5 | icon_text_color = #ffffffffffffffff 6 | ghistep1 = #6c6c9595c7c7ffff 7 | ghistep2 = #6c6c9595c7c79898 8 | icon_text_outline_color = #000000000000ffff 9 | gtk_theme_mode = False 10 | thickness = 0.850000023842 11 | corner_radius = 21.0 12 | hilight = #6c6c9595c7c7ffff 13 | curviness = 1.0 14 | curves_symmetry = 0.699999988079 15 | tooltip_font_color = #000000000000ffff 16 | draw_pattern = False 17 | panel_angle = 45.0 18 | tooltip_bg_color = #f7f7e4e4c5c5e0e0 19 | gstep1 = #442144214421f7f7 20 | gstep2 = #000000000000ffff 21 | tooltip_font_name = Aller Bold 10 22 | icon_font_mode = 1 23 | sep_color = #ffffffffffff0000 24 | 25 | [config/effects] 26 | icon_effect = 349525 27 | arrow_icon = __awn_internal_arrow2 28 | show_shadows = False 29 | active_rect_color = #9090878779796666 30 | active_rect_outline = #0000000000000000 31 | 32 | [config/panel/1] 33 | style = 6 34 | orient = 3 35 | expand = False 36 | size = 48 37 | 38 | [theme-info] 39 | awn-theme-version = 0.4.0 40 | author = Awn-core team 41 | name = Clearlooks Dark 42 | version = 1.0 43 | icon = @PKGDATADIR@/themes/thumbnails/clearlooks-dark-thumb.png 44 | 45 | -------------------------------------------------------------------------------- /themes/dark.awn-theme.in: -------------------------------------------------------------------------------- 1 | [theme-info] 2 | name = Dark Theme 3 | icon = @PKGDATADIR@/themes/thumbnails/dark-thumb.png 4 | author = Awn-core team 5 | version = 1.0 6 | awn-theme-version = 0.4.0 7 | 8 | [config/panel/1] 9 | # Orientation of Awn, left=0, right=1, top=2 and bottom=3 10 | orient = 3 11 | # The user-visible size of Awn (minus the offset) 12 | size = 48 13 | # The style of the bar, none=0, flat bar=1, 3d bar=2, curved bar=3 14 | style = 1 15 | # Default offset 16 | offset = 10 17 | 18 | [config/effects] 19 | # Use triangles as arrows 20 | arrow_icon = __awn_internal_arrow1 21 | # Show reflections 22 | reflection_alpha_multiplier = 0.3 23 | # No shadows 24 | show_shadows = false 25 | # Don't use custom active icon 26 | active_background_icon = 27 | # Active rectangle color 28 | active_rect_color = #9090878779796666 29 | # Active rectangle outline color 30 | active_rect_outline = #0000000000000000 31 | 32 | [config/theme] 33 | # Don't use gtk theme mode. 34 | gtk_theme_mode = false 35 | # But use gtk theme mode for dialog. 36 | dialog_gtk_mode = true 37 | # Don't use patterns. 38 | draw_pattern = False 39 | # First gradient step color. 40 | gstep1 = #454545454545c8c8 41 | # Second gradient step color. 42 | gstep2 = #010101010101bebe 43 | # First highlight gradient step color. 44 | ghistep1 = #0101010101018ebe 45 | # Second highlight gradient step color. 46 | ghistep2 = #0101010101010a0a 47 | # Main border color. 48 | border = #000000000000cccc 49 | # Internal border color. 50 | hilight = #ffffffffffff1111 51 | # Corner radius of the background. Set to 0 to disable rounded corners. 52 | corner_radius = 10 53 | # The angle of the panel in 3D mode. 54 | panel_angle = 45 55 | # The symmetry of the curve in Curves mode. 56 | curves_symmetry = 0.5 57 | # The curviness of the panel in Curves mode. 58 | curviness = 1.0 59 | # Separator color 60 | sep_color = #aaaaaaaaaaaaa400 61 | # Tooltip font 62 | tooltip_font_name = Sans 10 63 | # Tooltip background 64 | tooltip_bg_color = #000000000000b3b3 65 | # Tooltip outline 66 | tooltip_outline_color = #000000000000a8a8 67 | 68 | -------------------------------------------------------------------------------- /themes/dust.awn-theme.in: -------------------------------------------------------------------------------- 1 | [config/theme] 2 | icon_text_color = #ffffffffffffffff 3 | ghistep1 = #4c4c41413c3cffff 4 | ghistep2 = #2626262624240000 5 | gstep2 = #1e1e1c1c1a1affff 6 | tooltip_font_color = #ffffffffffffffff 7 | gstep1 = #424240403c3cffff 8 | icon_text_outline_color = #000000000000ffff 9 | gtk_theme_mode = False 10 | draw_pattern = False 11 | tooltip_font_name = Sans 10 12 | tooltip_bg_color = #000000000000b3b3 13 | tooltip_outline_color = #000000000000a8a8 14 | 15 | hilight = #8d8d84848181ffff 16 | icon_font_mode = 1 17 | border = #424240403c3cffff 18 | sep_color = #ffffffffffff7f7f 19 | 20 | [config/effects] 21 | show_shadows = False 22 | arrow_icon = __awn_internal_arrow1 23 | active_background_icon = 24 | active_rect_color = #9090878779796666 25 | active_rect_outline = #0000000000000000 26 | 27 | [theme-info] 28 | name = Dust Theme 29 | author = Awn-core team 30 | version = 1.0 31 | awn-theme-version = 0.4.0 32 | icon = @PKGDATADIR@/themes/thumbnails/dust-thumb.png 33 | 34 | [config/panel/1] 35 | style = 1 36 | orient = 3 37 | expand = False 38 | size = 48 39 | 40 | -------------------------------------------------------------------------------- /themes/light.awn-theme.in: -------------------------------------------------------------------------------- 1 | [config/theme] 2 | icon_text_color = #ffffffffffffffff 3 | ghistep1 = #c4c4c2c2bdbd0000 4 | ghistep2 = #dcdcdadad5d50000 5 | gstep2 = #dcdcdadad5d56464 6 | tooltip_font_color = #ffffffffffffffff 7 | gstep1 = #dcdcdadad5d5d2d2 8 | icon_text_outline_color = #000000000000ffff 9 | icon_font_mode = 1 10 | panel_angle = 45.0 11 | gtk_theme_mode = False 12 | draw_pattern = False 13 | corner_radius = 7.0 14 | tooltip_font_name = Sans 10 15 | tooltip_bg_color = #30300a0a2424a8a8 16 | tooltip_outline_color = #000000000000a8a8 17 | curviness = 1.0 18 | hilight = #b3eaaf2daf2dffff 19 | border = #9c9c9a9a94940000 20 | sep_color = #ffffffffffff6464 21 | curves_symmetry = 0.5 22 | 23 | [config/effects] 24 | show_shadows = False 25 | active_background_icon = 26 | active_rect_color = #9090878779796666 27 | active_rect_outline = #0000000000000000 28 | 29 | [theme-info] 30 | name = Light Theme 31 | author = 6205 (modified by Awn-core team) 32 | version = 1.0 33 | icon = @PKGDATADIR@/themes/thumbnails/light-thumb.png 34 | awn-theme-version = 0.4.0 35 | 36 | [config/panel/1] 37 | style = 1 38 | orient = 3 39 | expand = False 40 | size = 48 41 | 42 | -------------------------------------------------------------------------------- /themes/smoked.awn-theme.in: -------------------------------------------------------------------------------- 1 | [config/theme] 2 | icon_text_color = #ffffffffffffffff 3 | ghistep1 = #c4c4c2c2bdbd0000 4 | ghistep2 = #dcdcdadad5d50000 5 | gstep2 = #a318a318a3189e9e 6 | tooltip_font_color = #ffffffffffffffff 7 | gstep1 = #9ce79ce79ce7b0b0 8 | icon_text_outline_color = #000000000000ffff 9 | panel_angle = 45.0 10 | gtk_theme_mode = False 11 | draw_pattern = False 12 | corner_radius = 7.0 13 | tooltip_font_name = Sans 10 14 | tooltip_bg_color = #30300a0a2424a8a8 15 | tooltip_outline_color = #000000000000a8a8 16 | curviness = 1.0 17 | hilight = #b3eaaf2daf2dffff 18 | icon_font_mode = 1 19 | border = #9c9c9a9a94940000 20 | sep_color = #ffffffffffff9b9b 21 | curves_symmetry = 0.5 22 | 23 | [config/effects] 24 | show_shadows = False 25 | icon_effect = 0 26 | arrow_icon = __awn_internal_arrow1 27 | active_background_icon = 28 | active_rect_color = #8461846184618282 29 | active_rect_outline = #b3b3aeaeaeaeffff 30 | 31 | [theme-info] 32 | name = Smoked 33 | author = DanRabbit (modified by Awn-core team) 34 | version = 1.0 35 | icon = @PKGDATADIR@/themes/thumbnails/smoked-thumb.png 36 | awn-theme-version = 0.4.0 37 | 38 | [config/panel/1] 39 | style = 1 40 | orient = 3 41 | expand = False 42 | size = 48 43 | 44 | -------------------------------------------------------------------------------- /themes/thumbnails/clearlooks-dark-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/themes/thumbnails/clearlooks-dark-thumb.png -------------------------------------------------------------------------------- /themes/thumbnails/dark-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/themes/thumbnails/dark-thumb.png -------------------------------------------------------------------------------- /themes/thumbnails/dust-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/themes/thumbnails/dust-thumb.png -------------------------------------------------------------------------------- /themes/thumbnails/light-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/themes/thumbnails/light-thumb.png -------------------------------------------------------------------------------- /themes/thumbnails/smoked-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p12tic/awn/dbdccc0fa38164c36a239069aa536932b014e817/themes/thumbnails/smoked-thumb.png --------------------------------------------------------------------------------