Commit graph

8 commits

Author SHA1 Message Date
Zhu, Yongsheng 62990c3d7e DBusServer: improve notification for auto sync (MB#10000)
Implement new notification for auto sync according to
requirements. The main changes are messages description
and internationalized.

3 kinds of messages are defined and shown via notification
server: 'is syncing', 'Sync complete' and 'Sync problem'.
They are used in below scenarios:
1) sync is successfully started, show 'is syncing'
2) sync is ended, show 'Sync complete' or 'Sync problem'
3) sync has problem, once sync is not successfully started,
and a fatal error occurs, show 'Sync Problem'. If not a fatal
problem, don't show anything.

To detect when sync is successfully started and done, SessionListener
is defined to listen to these changes. This gives AutoSyncManager
opportunities to send notifications once these statuses are changed.

Two buttons 'Dismiss' and 'View' are added into all notifications
to let users dismiss the notification or pop up sync-ui.
They are implemented by optional 'actions' mechasim of notification.
So if the notification server doesn't support actions, don't add
them.
2010-03-08 15:46:21 -08:00
Patrick Ohly 06d17572c5 autotools: build GNOME Bluetooth panel plugin (MB #7089)
The GNOME Bluetooth panel plugin needs to be installed into
the location used by the system. We guess what that location might be by
installing into `pkg-config --variable=libdir gnome-bluetooth-1.0`/plugins.

Because this location might not be writable, compiling the plugin is
off by default. It can be enabled with --enable-gnome-bluetooth-panel-plugin
which depends on the libgnome-bluetooth-dev files.

Shared libraries must be enabled when enabling the plugin. Not currently
checked by configure.
2010-02-04 16:33:29 +01:00
Patrick Ohly 176a9a1a0d autotools + GTK GUI: added sync-config-widget.c to PO files
sync-config-widget.c contains translations, but wasn't listed
as input file for translation. Found by distcheck.
2009-12-02 18:19:13 +01:00
Jussi Kukkonen 58552f7a25 gtk-ui: simplify report handling & source checking 2009-11-01 12:59:28 +02:00
Patrick Ohly bddf3dd274 make dist: src/gtk-ui/main.c now must be translated
The last commit adds _("Sync") to the main.c file,
so now it must be listes in POTFILES.in. Found by
"make distcheck" in the nightly test.
2009-09-18 10:40:30 +02:00
Patrick Ohly 3f3147132e --enable-gui=all: use different name in .desktop file for GTK version
When installing both the plain GTK and the Moblin-themed version,
the Moblin version uses the normal "Sync - Up to date" name/comment
and the GTK version uses "Sync (GTK)" as name with the same
comment. This is a somewhat arbitrary choice, with the rationale
being that a Moblin user is less likely to care about the
distinction while a GTK user might understand what "(GTK)" means.
2009-09-16 10:48:34 +02:00
Patrick Ohly b6230cf43b translation: install localized version of sync.desktop (Bugzilla #4133)
Install a translated sync.desktop derived from a sync.desktop.in.
The two strings are marked with an underscore; somehow they are already
translated even though the sync.desktop file was not listed in po/POTFILES.in.
2009-07-09 15:00:08 +02:00
Jussi Kukkonen 7f21cc02f1 add internationalization support 2009-05-06 10:49:34 +03:00