Commit graph

288 commits

Author SHA1 Message Date
Jussi Kukkonen
ad9a6bd3f6 gtk-ui: use templateName when available
use templateName to describe the device when he needs to select the
template to be used.
2010-03-26 10:23:01 +01:00
Patrick Ohly
b1ff0c86df sync-UI + D-Bus lib: removed obsolete include for engine defs
The Synthesis engine definition file is no longer necessary,
because passing through the progress events unmodified was
removed in the 1.0 release cycle.
2010-03-23 18:57:30 +01:00
Jussi Kukkonen
3a20df3d00 add error message for 506 (Processing error) 2010-03-23 14:07:20 +02:00
Jussi Kukkonen
6c4b13ce69 gtk-ui: add error message for GetConfig() failure
Failure to load the configuration for defaultPeer is quite
fatal, add an error message.
2010-03-18 14:42:55 +02:00
Jussi Kukkonen
288dacb286 gtk-ui: add automatic sync toggle
This toggles the autoSync value in the peer configuration
2010-03-18 14:42:55 +02:00
Jussi Kukkonen
26c9289e90 gtk-ui: fix minor bug in time label building
label would sometimes say "last synced 1 hours ago"
instead of "last synced an hour ago"
2010-03-18 14:42:55 +02:00
Jussi Kukkonen
dcbc48e637 gtk-ui: improve device config UI
automatically select the best template in the combobox, modify
the information text accordingly, improve layout a bit
2010-03-18 14:42:55 +02:00
Jussi Kukkonen
7432e4e89c gtk-ui: handle InfoRequest timeout error 2010-03-18 14:42:55 +02:00
Jussi Kukkonen
25368b40a5 gtk-ui: set 'insensitive' sources to sync=none (MB#9961)
When sources are insensitive in the ui, set sync=none
when saving
2010-03-18 14:42:55 +02:00
Jussi Kukkonen
6fced30a4e gtk-ui: do not confirm simple service changes (MB#10082) 2010-03-18 14:42:55 +02:00
Jussi Kukkonen
65a1517440 gtk-ui: fix error output (MB#9558)
prepend error messages with "There was a problem with last sync:\n"
when the error is from a previous session.
2010-03-18 14:42:55 +02:00
Jussi Kukkonen
aca23237a8 gtk-ui: fix crasher in device template selection
it was possible to configure a device without selecting a template,
this segfaulted. Prevent the crash and set the button sensitive
only when there is a selection
2010-03-08 17:47:18 -08:00
Jussi Kukkonen
e9570cfe7e gtk-ui: string updates
Stop using the world "service" where possible. If it needs to be used,
add a corresponding string for devices.
2010-03-08 17:47:18 -08:00
Jussi Kukkonen
f8409c0ecc gtk-ui: fix settings icon mode bug
settings icon was left into active state when back button was clicked
2010-03-08 17:47:18 -08:00
Jussi Kukkonen
3dfa24433f gtk-ui: don't update service list twice
Refuse to update the service list if previous update is still going.
Make sure SyncConfigWidget still exists when GetSessions() returns.
2010-03-08 17:47:18 -08:00
Jussi Kukkonen
a26a1c5462 gtk-ui: fix double free in error handling (MB #9869) 2010-02-24 09:37:50 +01:00
Jussi Kukkonen
1d9fdc995c gtk-ui: handle error 22002 (syncevolution died unexpectedly) 2010-02-24 09:37:43 +01:00
Jussi Kukkonen
43b62f05a6 gtk-ui: use bluetooth panel on Moblin
Use the Bluetooth toolbar panel on Moblin and bluetooth-wizard
when it is available. Both are checked for on app startup.
2010-02-24 09:37:35 +01:00
Jussi Kukkonen
bd39c07b22 gtk-ui: fix possible crasher
if a device configuration exists but the template does not,
we may try to create a config widget with empty name
2010-02-23 14:54:52 +02:00
Jussi Kukkonen
e2ec9b04b5 gtk-ui: use TemplatesChanged to update device list
Also remove the process-watching hack used fro GNOME: this will
work in all platforms.
2010-02-23 14:54:46 +02:00
Jussi Kukkonen
f79c414bbe gtk-ui: don't use gtk_dialog_get_content_area()
gtk_dialog_get_content_area() was introduced in GTK+ 2.14, avoid
using it so compile works in Ubuntu Hardy.

This fix mean using (theoretically) deprecated api. In practice we
need to do something different by GTK+ 3.0 where the deprecated bits
are disabled -- either start using ifdefs or stop supporting 2.12.
2010-02-22 16:36:49 +01:00
Jussi Kukkonen
4934b7ec9e gtk-ui: implement InfoRequest handling for passwords 2010-02-19 10:00:22 +01:00
Jussi Kukkonen
ac62405e58 gtk-ui: backup-restore improvements
* don't sync automatically after restoring
  (in a slow-sync-request situation this would be confusing)
* add more indication of the type of operation that is currently
  running
* explain the choices better in emergency view
* show infobar after restore, explaining that changes have not been
  synced
2010-02-17 08:30:32 +01:00
Jussi Kukkonen
ffdee0a5f2 gtk-ui: fix keyboard access in configuration
One of the device configuration commits had accidentally
changed the key-press-event handler so it suppressed all
keypresses: text entries were not editable in moblin
(single window version)
2010-02-10 15:58:10 +02:00
Jussi Kukkonen
8ffa93907e gtk-ui: show main view when restoring backup (MB #9617) 2010-02-10 14:11:09 +01:00
Jussi Kukkonen
2dfd82dcd2 gtk-ui: start bluetooth wizard when Add device clicked
Start bluetooth-wizard when "Add new device" is clicked.
Hide the button when bluetooth-wizard is not found.
Refresh config list when bluetooth-wizard is closed.
2010-02-09 20:08:11 +02:00
Jussi Kukkonen
56eb3ab034 gtk-ui: use "fingerprint" for device template selector
The first string (before ";" or ",") in fingerPrint property
is used as template name in UI if user needs to select the template
of a device.

Also minor fix for dbus client bindings:
check for config existence before destroying.
2010-02-09 20:08:11 +02:00
Jussi Kukkonen
5b2cf8bef3 gtk-ui: workaround for missing "active" in MxGtkLightSwitch
MxGtkLightSwitch should have active property but it doesn't
yet. This commit can be reverted once it does.
2010-02-08 23:19:58 +02:00
Jussi Kukkonen
92181f1a14 gtk-ui: ask for 1024 window width for gtk windows 2010-02-08 23:19:51 +02:00
Jussi Kukkonen
6aef84e0dc gtk-ui: improve confirmation dialogs 2010-02-08 22:50:37 +02:00
Jussi Kukkonen
2dcbee9fd5 gtk-ui: improve virtual source display in config
Hide the "base" sources in configuration when a virtual source exists.
Fix multiple bugs where virtual sources showed up unexpectedly
Also remove some TODOs that are no longer relevant
2010-02-08 17:06:44 +02:00
Jussi Kukkonen
85cc158c30 gtk-ui: changes in config api 2010-02-08 12:23:30 +02:00
Jussi Kukkonen
8c6288f98c gtk-ui: hide virtual sources when not usable + other tweaks
when a source does not have type set, don't show it in
configuration UI: this hides unused virtual sources.

Also use PeerIsClient to check if peer is a "Device".

Add comments for missing features
2010-02-08 11:51:20 +02:00
Jussi Kukkonen
e03c6129e2 gtk-ui: escape source names when using markup 2010-02-08 11:51:20 +02:00
Jussi Kukkonen
2aa13e1d56 gtk-ui: improve slow sync messages 2010-02-08 11:51:20 +02:00
Jussi Kukkonen
e3455ed922 gtk-ui: very rough draft of device template selection 2010-02-08 11:51:20 +02:00
Jussi Kukkonen
dad6d64221 gtk-ui: don't require username/password for device configs 2010-02-08 11:51:20 +02:00
Jussi Kukkonen
793e8c87cb gtk-ui: layout & code updates for device config UI 2010-02-08 11:51:20 +02:00
Jussi Kukkonen
270e2cc9da gtk-ui: modify SyncConfigWidget for device sync changes 2010-02-08 11:51:20 +02:00
Jussi Kukkonen
775e0097e1 gtk-ui: don't open two main windows (MB #9449) 2010-02-04 12:12:13 +02:00
Jussi Kukkonen
c5bac32f43 gtk-ui: fix suspicious string array handling (MB #9434)
The string array for dbus method was not NULL-terminated.
2010-02-04 12:12:13 +02:00
Jussi Kukkonen
c20dca275d gtk-ui: fix another problem with non-libunique build 2010-02-03 15:33:28 +02:00
Patrick Ohly
58c934b103 gtk-gui: fixed compiler error when not having libunique 2010-02-03 13:54:42 +01:00
Jussi Kukkonen
b634f949c9 gtk-ui: forgot to change source naming Memo->Notes
This was supposed to be part of the earlier change where known
source names get consistent names in the UI (plural of the datatype).
2010-02-03 13:27:47 +01:00
Jussi Kukkonen
03d6bddbbb gtk-ui: --show-settings should match url prefix (MB #9284)
"--show-settings http://foo.bar.com/sync" should match
"syncURL = http://foo.bar.com/sync?dr=1m". This also takes
care of obex+bt syncURLs with channel.
2010-02-03 13:27:47 +01:00
Jussi Kukkonen
bdd92eb523 gtk-ui: ellipsize very long service name in main view 2010-02-03 13:27:47 +01:00
Jussi Kukkonen
4bda3fd716 gtk-ui: make config usable with long strings (MB #9278)
Two-pronged approach:
* make sure service and source labels are not to wide for small screens
* enable horizontal scrolling t in case the above might fail

I consider horizontal scrollbars in the configuration a bug, but the
second point makes sure the UI is never totally unusable...
2010-02-03 13:27:47 +01:00
Jussi Kukkonen
49a04ae69a gtk-ui: remember to update service list when it is shown 2010-02-03 13:27:47 +01:00
Jussi Kukkonen
d0d8434caf gtk-ui: handle source phases correctly (MB #9320)
The ProgressChanged handler must keep track of source phases
if we want to show "Preparing Calendar" type info.
2010-02-03 13:27:47 +01:00
Jussi Kukkonen
954ce260ff gtk-ui: Fix error output 2010-02-03 13:27:47 +01:00