Skip to content

Commit

Permalink
xfce-bluetooth: display icon pixbuf instead of icon name
Browse files Browse the repository at this point in the history
  • Loading branch information
ncopa committed Jan 30, 2015
1 parent 7f3cb71 commit d3f76b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/xfce-bluetooth.vala
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,14 @@ public class XfceBluetoothApp : GLib.Object {
device_treeview = builder.get_object("device_treeview") as TreeView;
device_treeview.set_model(device_store);

var text = new CellRendererText();
var iconcell = new CellRendererPixbuf();
var col = new TreeViewColumn();
col.set_title("Icon");
col.pack_start(text, true);
col.add_attribute(text, "text", DevCols.ICON);
//col.set_title("Icon");
col.pack_start(iconcell, true);
col.add_attribute(iconcell, "icon-name", DevCols.ICON);
device_treeview.append_column(col);

var text = new CellRendererText();
col = new TreeViewColumn();
col.set_title("Device");
col.pack_start(text, true);
Expand Down

0 comments on commit d3f76b2

Please sign in to comment.