Merge lp:~seb128/unity-control-center/bluetooth-leftover-button into lp:unity-control-center

Proposed by Sebastien Bacher
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 12862
Merged at revision: 12862
Proposed branch: lp:~seb128/unity-control-center/bluetooth-leftover-button
Merge into: lp:unity-control-center
Diff against target: 64 lines (+3/-32)
2 files modified
panels/bluetooth/bluetooth.ui (+0/-28)
panels/bluetooth/cc-bluetooth-panel.c (+3/-4)
To merge this branch: bzr merge lp:~seb128/unity-control-center/bluetooth-leftover-button
Reviewer Review Type Date Requested Status
Iain Lane Needs Information
Review via email: mp+294508@code.launchpad.net

Commit message

bluetooh: remove leftover "browse" button, the backend used was removed
during the bluez5 update and the panel callbacks were cleaned out, the button
is doing nothing else than confusing users

Description of the change

bluetooh: remove leftover "browse" button, the backend used was removed
during the bluez5 update and the panel callbacks were cleaned out, the button
is doing nothing else than confusing users

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote :

Thanks, looks good, just one improvement to suggest

review: Needs Information
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks, I guess that could be improved, I cherry picked that bit from upstream https://git.gnome.org/browse/gnome-control-center/commit/?&id=6b95bb27d81f56acc74c99dd3e131e8b228b8209

seems the code is still the same in trunk
https://git.gnome.org/browse/gnome-control-center/tree/panels/bluetooth/cc-bluetooth-panel.c?id=6b95bb27d81f56acc74c99dd3e131e8b228b8209#n353

I'm going to SRU the no-refactoring version but feel free to block that mp if you think the code should be improvement in the same landing (needs to create a bug upstream/suggest a patch/backport that, so it's going to take a bit longer but that's fine we are early in the cycle)

Revision history for this message
Sebastien Bacher (seb128) wrote :

let's land that fix and improve later

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'panels/bluetooth/bluetooth.ui'
--- panels/bluetooth/bluetooth.ui 2014-03-12 17:29:59 +0000
+++ panels/bluetooth/bluetooth.ui 2016-05-12 13:51:25 +0000
@@ -545,34 +545,6 @@
545 <property name="position">3</property>545 <property name="position">3</property>
546 </packing>546 </packing>
547 </child>547 </child>
548 <child>
549 <object class="GtkBox" id="browse_box">
550 <property name="visible">True</property>
551 <property name="can_focus">False</property>
552 <child>
553 <placeholder/>
554 </child>
555 <child>
556 <object class="GtkButton" id="browse_button">
557 <property name="label" translatable="yes">Browse Files…</property>
558 <property name="can_focus">True</property>
559 <property name="receives_default">True</property>
560 <property name="use_action_appearance">False</property>
561 </object>
562 <packing>
563 <property name="expand">False</property>
564 <property name="fill">False</property>
565 <property name="pack_type">end</property>
566 <property name="position">1</property>
567 </packing>
568 </child>
569 </object>
570 <packing>
571 <property name="expand">False</property>
572 <property name="fill">True</property>
573 <property name="position">4</property>
574 </packing>
575 </child>
576 </object>548 </object>
577 <packing>549 <packing>
578 <property name="expand">False</property>550 <property name="expand">False</property>
579551
=== modified file 'panels/bluetooth/cc-bluetooth-panel.c'
--- panels/bluetooth/cc-bluetooth-panel.c 2016-03-09 21:55:46 +0000
+++ panels/bluetooth/cc-bluetooth-panel.c 2016-05-12 13:51:25 +0000
@@ -276,7 +276,6 @@
276 gtk_widget_hide (WID ("keyboard_box"));276 gtk_widget_hide (WID ("keyboard_box"));
277 gtk_widget_hide (WID ("sound_box"));277 gtk_widget_hide (WID ("sound_box"));
278 gtk_widget_hide (WID ("mouse_box"));278 gtk_widget_hide (WID ("mouse_box"));
279 gtk_widget_hide (WID ("browse_box"));
280 gtk_widget_hide (WID ("send_box"));279 gtk_widget_hide (WID ("send_box"));
281280
282 bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser));281 bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser));
@@ -332,10 +331,10 @@
332331
333 uuids = (const char **) g_value_get_boxed (&value);332 uuids = (const char **) g_value_get_boxed (&value);
334 for (i = 0; uuids && uuids[i] != NULL; i++) {333 for (i = 0; uuids && uuids[i] != NULL; i++) {
335 if (g_str_equal (uuids[i], "OBEXObjectPush"))334 if (g_str_equal (uuids[i], "OBEXObjectPush")) {
336 gtk_widget_show (WID ("send_box"));335 gtk_widget_show (WID ("send_box"));
337 else if (g_str_equal (uuids[i], "OBEXFileTransfer"))336 break;
338 gtk_widget_show (WID ("browse_box"));337 }
339 }338 }
340 g_value_unset (&value);339 g_value_unset (&value);
341 }340 }

Subscribers

People subscribed via source and target branches