Commit graph

106 commits

Author SHA1 Message Date
Bastien Nocera
4a009da483 bluetooth: Don't change the switch status when transitioning
When transitioning from an enabled platform rfkill to disabled, the
Bluetooth adapter's power will lag behind. Make sure to not change the
switch's status when we get into this temporary state.

https://bugzilla.gnome.org/show_bug.cgi?id=760168
2016-01-10 15:59:25 +01:00
Bastien Nocera
40117a0ed5 bluetooth: Avoid broken state when enabling Bluetooth
When enabling Bluetooth, and with older versions of the rfkill
gnome-settings-daemon D-Bus service, we could get into a state where the
Bluetooth rfkill was off, but the hciX rfkill associated with the
adapter is blocked.

Avoid showing filler text in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=760168
2016-01-10 15:59:25 +01:00
Bastien Nocera
2fbac9b23b bluetooth: More tweaks to "off mode" pages
Some small changes labels, spacing and icons changes.
2015-07-31 15:08:17 +02:00
Bastien Nocera
15c8f0d012 bluetooth: Better UI when Bluetooth is disabled
We now offere separate "Bluetooth is off" and "Airplane mode is on"
pages. The "Airplane mode is on" offers to turn off airplane mode
altogether.

We also have better explanations for all the other modes, and a filler
Bluetooth logo to make the page seem less empty.

https://bugzilla.gnome.org/show_bug.cgi?id=751483
2015-07-30 20:13:29 +02:00
Bastien Nocera
e59e43b242 bluetooth: Add Obex sharing keywords
https://bugzilla.gnome.org/show_bug.cgi?id=740369
2015-07-30 20:13:29 +02:00
Bastien Nocera
8d6bdda036 bluetooth: Remove useless FIXME
Who knows what that was for...
2015-07-30 20:13:29 +02:00
Christophe Fergeau
031074816b bluetooth: Use AM_CPPFLAGS rather than INCLUDES
This is deprecated in newer automake versions, and this causes warnings
with automake 1.14:
panels/printers/Makefile.am:3: warning: 'INCLUDES' is the old name for
AM_CPPFLAGS' (or '*_CPPFLAGS')

https://bugzilla.gnome.org/show_bug.cgi?id=732189
2014-06-25 12:28:17 +02:00
Bastien Nocera
28fecc01c4 bluetooth: Updated design
With the majority of the implementation living in gnome-bluetooth.

https://bugzilla.gnome.org/show_bug.cgi?id=719565
2013-12-06 11:59:03 +01:00
Bastien Nocera
de226c703b bluetooth: Remove setup plugins support
It was used by a test plugin we ship ourselves for Geoclue 1.x,
and NetworkManager. Given that NetworkManager doesn't make use
of it anymore, let's remove it.
2013-12-06 11:59:03 +01:00
Yosef Or Boczko
31be582bd9 bluetooth: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:37:18 +02:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -05:00
Rui Matos
37b31bec3b bluetooth: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:01 +02:00
Rui Matos
be3965a76b bluetooth: Remove dead code
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:01 +02:00
Bastien Nocera
ba4eb42778 bluetooth: Fix crash when exiting during a connection
If a connection is on-going, make sure to cancel it before
when finalizing the panel, or we will be crashing once
we've finished connecting/disconnecting.

https://bugzilla.gnome.org/show_bug.cgi?id=708478
2013-09-22 22:24:54 +02:00
Yosef Or Boczko
ff8a214c5f bluetooth: Fix stretched header bar switch
and add padding of 4px

https://bugzilla.gnome.org/show_bug.cgi?id=703974
2013-07-19 16:29:18 +03:00
Yosef Or Boczko
888db9b453 bluetooth: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:57:37 +03:00
Gustavo Padovan
c7b02d716a bluetooth: use uuids to set switch_connection sensitiveness
Since the Services information is now gone, we need to rely on the uuids
to get the same behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=700915
2013-06-13 15:16:33 +02:00
Bastien Nocera
2c0de31bb6 Revert "bluetooth: use uuids to set switch_connection sensitiveness"
This reverts commit 6e9a352256 which
was committed by error.
2013-06-11 16:53:32 +02:00
Gustavo Padovan
6e9a352256 bluetooth: use uuids to set switch_connection sensitiveness
Since the Services information is now gone, we need to rely on the uuids
to get the same behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=700915
2013-06-11 16:49:40 +02:00
Emilio Pozuelo Monfort
ac43647ac0 Update adapter interface for BlueZ 5
And move it to a define while at it.

https://bugzilla.gnome.org/show_bug.cgi?id=700915
2013-06-03 15:35:24 +02:00
Allan Day
9ab3063d4c bluetooth: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01:00
William Jon McCann
9f9b4fcb18 bluetooth: Don't show label next to power switch
https://bugzilla.gnome.org/show_bug.cgi?id=694041
2013-02-18 16:40:45 +01:00
Jeremy Bicha
c1dd4a74cd bluetooth: Use the proper Unicode ellipsis (…) instead of three dots
https://bugzilla.gnome.org/show_bug.cgi?id=689497
2013-01-22 00:45:45 -05:00
Cosimo Cecchi
8d5f2908b5 panels: add --sourcedir=$(srcdir) when generating resource list
Like b8e93fb333 but for all panels.
2013-01-07 16:23:57 -05:00
Cosimo Cecchi
ddf9d29f66 bluetooth: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:05 +01:00
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +01:00
Bastien Nocera
a1e4c0298b bluetooth: Move visibility switch to the left 2012-12-17 10:52:50 +01:00
Bastien Nocera
63af1169b5 bluetooth: Move killswitch to the header 2012-12-17 10:52:49 +01:00
Bastien Nocera
2ee0d35844 bluetooth: Rename Bluetooth desktop name
To match the pattern used by other desktop files.
2012-12-11 17:09:04 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Bastien Nocera
2e0ab4ef09 bluetooth: Correct debug output 2012-12-10 08:28:39 +01:00
Jeremy Bicha
079b5dffdf bluetooth: Use '&' instead of 'and'
https://bugzilla.gnome.org/show_bug.cgi?id=689499
2012-12-03 09:22:59 -05:00
Bastien Nocera
6b95bb27d8 bluetooth: Remove ObexFTP file browsing from the UI
https://bugzilla.gnome.org/show_bug.cgi?id=685038
2012-12-03 08:54:18 +01:00
Debarshi Ray
be47ee93ee bluetooth: Align the device list with the all settings button
Fixes: https://bugzilla.gnome.org/688055
2012-11-10 18:48:25 +01:00
Bastien Nocera
c148fb2836 bluetooth: Use spinner when connecting
Rather than having an unusable switch (which wouldn't represent
the real state of the connection), show a spinner until the
connection is finished doing.
2012-11-08 18:52:28 +01:00
Bastien Nocera
77d134c4df bluetooth: Simplify ->finalize 2012-11-08 18:37:48 +01:00
Bastien Nocera
9818f3b256 bluetooth: Fix main switch acting bizarrely
The only time we were looking at the powered state of the adapter
is when the killswitch state was changing. Except that we're fast enough
that bluetoothd didn't have time to power up the adapter, so its
state was unpowered, which we would set the switch to.

The switch was off, the adapter was on.

We fix that problem by tracking the powered state of the adapter
separately.

https://bugzilla.redhat.com/show_bug.cgi?id=841881
2012-11-08 18:37:48 +01:00
Bastien Nocera
80c2739d27 bluetooth: Add UI code for a spinner during the connection 2012-11-08 18:37:48 +01:00
Bastien Nocera
f1e20c395d bluetooth: Remove unused variable 2012-11-08 18:37:48 +01:00
Bastien Nocera
876e4d4559 bluetooth: Avoid possible loops when Connection fails
If we switch "Connection" on via the switch, the disabling on failure
will create a loop where it always tries to connect again. Break that
loop.
2012-11-08 18:37:47 +01:00
Bastien Nocera
ede310d39c bluetooth: Expand properties notebook by default 2012-11-08 18:37:47 +01:00
Matthias Clasen
828e896e12 bluetooth: Fix accessible labels for switches in bluetooth panel
Setting mnemonic-widget on the labels makes orca read out meaningful
text for the switches.
https://bugzilla.gnome.org/show_bug.cgi?id=683703
2012-09-13 06:42:03 -04:00
Bastien Nocera
12a319875a bluetooth: Don't break the custom widgets on connect
We used to destroy and recreate the custom widgets whenever any of
the properties changed. Now we make sure that the custom widgets are
only destroyed and recreated when the device selected is a different one.

This fixes NetworkManager's Bluetooth plugins getting destroyed
because the Connected property changed, as it was trying to connect to
the device.

https://bugzilla.gnome.org/show_bug.cgi?id=681456
2012-09-07 13:32:06 +01:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Bastien Nocera
8776700a73 bluetooth: Update for killswitch API change 2012-07-26 17:56:08 +02:00
Florian Müllner
bc18595051 bluetooth: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Piotr Drąg
5f124d6008 all: fix up tooltips
Idea from commit d5088b2eb1.
2012-05-18 18:39:31 +02:00
Cosimo Cecchi
656862e697 bluetooth: don't set a shadow type on the viewport
https://bugzilla.gnome.org/show_bug.cgi?id=672956
2012-04-30 08:49:20 -04:00
Bastien Nocera
e3565989e0 bluetooth: Fix wrong panel name in warning 2012-01-26 19:10:10 +00:00
Bastien Nocera
479817c808 bluetooth: XFCE doesn't want to see our desktop files 2012-01-23 16:48:03 +00:00