2013-08-21 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfLegacyScreen: use bigger icons size by default
libwnck would just use 32 and 16 sized icons, while we can safely use bigger versions. Fixes: https://bugs.launchpad.net/bugs/1214426.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-08-10 Stephen M. Webb <email address hidden>
directly include bamf-tab.h in libbamf.h.
Approved by PS Jenkins bot, Brandon Schaefer.
2013-08-09 Marco Trevisan (Treviño) <mail@3v1n0.net>
Bamf: remove Obsolete and never used BamfTabSource/BamfTabProvider
This has been implemented using unity webapps properly.
Approved by Stephen M. Webb, PS Jenkins bot.
2013-08-08 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfApplication: include Path in .desktop file if its working dir is not the default one. Fixes: https://bugs.launchpad.net/bugs/765466.
Approved by Christopher Townsend, PS Jenkins bot.
2013-08-07 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfMatcher: ignore known invalid window class values when matching windows
And generate better .desktop files for local apps.
This will make us life easier with Java.
Approved by PS Jenkins bot, Christopher Townsend.
2013-08-07 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfDaemon: Use nicer and more compliant dbus object paths for views.
Approved by Christopher Townsend, PS Jenkins bot.
2013-08-06 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfControl: add an API to allow generation of local .desktop file for a BamfApplication.
Add a bamf_control dbus method that requests to generate a new local .desktop
file for the provided application path. In case the application has alredy
a desktop file, the request is ignored. Otherwise we use some euristic to
generate an hopefully valid file saved in $XDG_DATA_HOME dir.
Also added a new DesktopUpdated signal to the BamfApplication DBus interface
that is emitted when the .desktop file for an application is set (for now). Fixes: https://bugs.launchpad.net/bugs/753305.
Approved by Christopher Townsend, PS Jenkins bot.
2013-07-24 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfMatcher: add support for the "--desktop_file_hint" exec parameter to override matching
This is needed mostly by new Qml applications, but it allows to every app to override
its matching by calling it with --desktop_file_hint file-to-use.desktop. Fixes: https://bugs.launchpad.net/bugs/1180402.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-07-24 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfLegacyWindow: cache the window Exec string
We might use this value multiple times during the BAMF execution,
and we don't need to recompute it everytime. Caching looks a good compromise.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-07-24 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfMatcher: correctly match QML applications launched with qmlscene or qmlviewer. Fixes: https://bugs.launchpad.net/bugs/1180402.
Approved by PS Jenkins bot, Brandon Schaefer.
2013-07-23 Marco Trevisan (Treviño) <mail@3v1n0.net>
"BamfPrivate, no need to define depreaction macro, GLib includes one.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-07-16 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfApplication: keep track of the application main-window and update name and icon accordingly
Applications without a .desktop file should update their name and icon based on their children.
So now we try to compute the main window children, and we update name and icon based on it. Fixes: https://bugs.launchpad.net/bugs/751909.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-07-16 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfApplication: if the .desktop file contains the full-path of an icon we should use it
If the parsed icon is a file, then we just use it without asking gtk if it's valid for theme.
. Fixes: https://bugs.launchpad.net/bugs/1201408.
Approved by PS Jenkins bot, Brandon Schaefer.
2013-06-26 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfFactory: remove the local_views list, we don't need that anymore
Having them tracked on allocated_views list is enough, and fixes an issue as explained on bug #1193559. Fixes: https://bugs.launchpad.net/bugs/1193449.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-06-26 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfApplication: try to use a window icon if the computed icon belongs to a "generic" app
Added a bunch of new BamfApplication tests for icon. Fixes: https://bugs.launchpad.net/bugs/768931, https://bugs.launchpad.net/bugs/1007383.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-06-26 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfMatcher: ignore registered .desktop files that are in an autostart-folder. Fixes: https://bugs.launchpad.net/bugs/1193502.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-06-19 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfDaemon, LibBamf: add icon property to store the BamfView icon and notify about its changes.
New tests added.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-06-19 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfDaemon, LibBamf: Make the BamfView's name a property, deprecated method+signal.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-06-18 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfMatcher: If a Window has changed its class, then we try to rematch it
This is mostly the case of LibreOffice, but if a window has changed its class,
then we should try to re-match, checking if now it can be matched by a new application.
If this is the case, then we remove the window from the previous application (that may
eventually be closed) and we add it to the new one.
Thanks to this we can finally remove a lot of libreoffice-only related code.
Approved by Brandon Schaefer, PS Jenkins bot.
2013-06-13 Marco Trevisan (Treviño) <mail@3v1n0.net>
Bamf: use generic marshallers when creating signals, remove legacy bamf-marshal
Improvements to the build system, fixed "make distcheck" (it was still referencing the old
bamf.h file) and generation of files when using parallel builds (make -jX).
Approved by Brandon Schaefer, PS Jenkins bot.
2013-06-13 Marco Trevisan (Treviño) <mail@3v1n0.net>
Bamf: the big trailing spaces cleanup!
I was just tired of all these spaces around, it's the time to remove them all!.
Approved by PS Jenkins bot, Brandon Schaefer.
2013-06-13 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfView: don't try to reload the children if they're empty but we already tried once
This finally mutes the "Unable to fetch children" warning... \o/. Fixes: https://bugs.launchpad.net/bugs/943083.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-06-13 Ted Gould <email address hidden>
Have bamfdaemon depend on the library instead of vice versa.
Approved by Marco Trevisan (Treviño), PS Jenkins bot.
2013-06-13 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfView: disconnect proper callback if a bamf-tab is closed
I guess it was a typo, we need to disconnect to the callback we've been
connected to before.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-06-13 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfView: use incremental children caching, delete them only when daemon stops
Each view used to cleanup the cached children every time a new one was added or
removed. This was needed at the dbus-glib times to handle the case of bamfdaemon
restart, but now we can handle this nicely, clening the children up only when this
happens.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-06-13 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfFactory: fix references of allocated/closed views; improve re-matching of views
Now the ownership of the open views is in the hash-table, closed views must be owned
by clients (if they want to). The factory also tracks the allocated views until they
don't get destroyed to re-use them if possible. Fixes: https://bugs.launchpad.net/bugs/1176524, https://bugs.launchpad.net/bugs/1181717.
Approved by Andrea Azzarone, PS Jenkins bot, Ted Gould.
2013-06-11 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfView: use statically allocated pspec to notify property changes
BamfFactory: some initial cleanup, remove views that have changed their path and use cached children.
Approved by PS Jenkins bot, Andrea Azzarone.
2013-06-11 Jeremy Bicha <email address hidden>
debian/control: Have libbamf3-dev depend on gir1.2-bamf-3, Drop build-depends on gir1.2-glib-2.0.
Approved by PS Jenkins bot, Mathieu Trudel-Lapierre, Marco Trevisan (Treviño).
2013-06-11 Marco Trevisan (Treviño) <mail@3v1n0.net>
Reverting revision 540, to get back GDBus based libbamf and DBus properties usage. Fixes: https://bugs.launchpad.net/bugs/697146, https://bugs.launchpad.net/bugs/1180057, https://bugs.launchpad.net/bugs/1180837, https://bugs.launchpad.net/bugs/1188518.
Approved by Andrea Azzarone, PS Jenkins bot.
2013-06-10 Marco Trevisan (Treviño) <mail@3v1n0.net>
BamfDaemon, LibBamf: Fix compilation errors out from ubuntu. Fixes: https://bugs.launchpad.net/bugs/1176524, https://bugs.launchpad.net/bugs/1186915.
Approved by PS Jenkins bot, Christopher Townsend.
2013-06-10 Marco Trevisan (Treviño) <mail@3v1n0.net>
Makefile.am.gtests: kill the launched dbus-daemon after running the tests. Fixes: https://bugs.launchpad.net/bugs/1088696, https://bugs.launchpad.net/bugs/1186915.
Approved by Francis Ginther, PS Jenkins bot.
2013-06-07 Didier Roche <email address hidden>
Try reverting intrusive rev 536, 537 and 538 for getting unity back on shape during tests
2013-06-07 Marco Trevisan (Treviño) <mail@3v1n0.net>
libbamf, BamfView: Use dbus-properties (both values and signals)
It allows to have correct values and signals when they get updated.
Deprecating related dbus methods/signals.
Approved by Andrea Azzarone, PS Jenkins bot.
2013-06-06 Marco Trevisan (Treviño) <mail@3v1n0.net>
libBamf: use GDBus proxies to connect to the daemon, move away from dbus-glib!
Include a lot of code cleanup, added destruction bits to the BamfFactory.
Use GCancellable for the dbus calls to have nicer object destruction.
Implement Matcher's GetTab methods (both daemon and library side) and XidsForApplication.
Expose signals names as #define'd strings.
Fix some library annotations (to have better GIR bindings).
Correctly emit property-changed signals for about-to-close view's. Fixes: https://bugs.launchpad.net/bugs/697146, https://bugs.launchpad.net/bugs/1180057, https://bugs.launchpad.net/bugs/1180837.
Approved by PS Jenkins bot, Mathieu Trudel-Lapierre, Andrea Azzarone, Brandon Schaefer.
2013-06-05 Marco Trevisan (Treviño) <mail@3v1n0.net>
LibBamfPrivate: add new private library to share code between client and daemon.
Approved by PS Jenkins bot, Brandon Schaefer.
2013-06-04 Mathieu Trudel-Lapierre <email address hidden>
Fix test-libbamf to properly call gtester2xunit.
Approved by PS Jenkins bot, Didier Roche.
2013-05-31 Timo Jyrinki <email address hidden>
libbamf: BamfApplication: cache MimeTypes and ApplicationType on favorite and sticky apps. Fixes: https://bugs.launchpad.net/bugs/1183871, https://bugs.launchpad.net/bugs/1183978.
Approved by PS Jenkins bot, Brandon Schaefer.
2013-05-02 Andrea Azzarone <email address hidden>
Remove functional tests.
Approved by PS Jenkins bot, Marco Trevisan (Treviño).