Skip to content

Commit

Permalink
xfce-bluetooth: fix remove button
Browse files Browse the repository at this point in the history
  • Loading branch information
ncopa committed Jan 20, 2015
1 parent c7ae419 commit d3baefc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions data/bluetooth-preferences.ui
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="show_arrow">False</property>
<property name="icon_size_set">True</property>
<child>
<object class="GtkToolButton" id="b_search">
<object class="GtkToolButton" id="btn_search">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
Expand All @@ -96,7 +97,7 @@
</packing>
</child>
<child>
<object class="GtkToolButton" id="b_add">
<object class="GtkToolButton" id="btn_add">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
Expand All @@ -109,7 +110,7 @@
</packing>
</child>
<child>
<object class="GtkToolButton" id="b_bond">
<object class="GtkToolButton" id="btn_pair">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
Expand All @@ -122,7 +123,7 @@
</packing>
</child>
<child>
<object class="GtkToolButton" id="b_trust">
<object class="GtkToolButton" id="btn_trust">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
Expand All @@ -135,12 +136,12 @@
</packing>
</child>
<child>
<object class="GtkToolButton" id="b_setup">
<object class="GtkToolButton" id="btn_properties">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="is_important">True</property>
<property name="label" translatable="yes" comments="translators: toolbar item: keep it as short as possible">Setup...</property>
<property name="label" translatable="yes" comments="translators: toolbar item: keep it as short as possible">Properties...</property>
<property name="stock_id">gtk-properties</property>
</object>
<packing>
Expand All @@ -149,12 +150,13 @@
</packing>
</child>
<child>
<object class="GtkToolButton" id="b_remove">
<object class="GtkToolButton" id="btn_remove">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" comments="translators: toolbar item: keep it as short as possible">Remove</property>
<property name="stock_id">gtk-delete</property>
<signal name="clicked" handler="xfce_bluetooth_app_on_remove" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
Expand Down
4 changes: 2 additions & 2 deletions src/xfce-bluetooth.vala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class XfceBluetoothApp : GLib.Object {
public SpinButton discoverable_timeout_spinbutton;

string? selected_device = null;
Button device_remove_button;
ToolButton device_remove_button;
TreeView device_treeview;

DBusObjectManager manager;
Expand Down Expand Up @@ -113,7 +113,7 @@ public class XfceBluetoothApp : GLib.Object {
discoverable_timeout_spinbutton.adjustment.value_changed.connect((a) => {
adapter.discoverable_timeout = (uint32) a.value;
});
device_remove_button = builder.get_object("btn_remove") as Button;
device_remove_button = builder.get_object("btn_remove") as ToolButton;

find_devices();

Expand Down

0 comments on commit d3baefc

Please sign in to comment.