Fix invisible text in prefs.

merge-requests/222/head
Jens Lody 6 years ago
parent 160ec29814
commit 9587a0efe3
  1. 2
      src/prefs.js

@ -378,6 +378,7 @@ const WeatherPrefsWidget = new GObject.Class({
let renderer = new Gtk.CellRendererText(); let renderer = new Gtk.CellRendererText();
column.pack_start(renderer, null); column.pack_start(renderer, null);
column.add_attribute(renderer, "text", 0);
column.set_cell_data_func(renderer, function() { column.set_cell_data_func(renderer, function() {
arguments[1].markup = arguments[2].get_value(arguments[3], 0); arguments[1].markup = arguments[2].get_value(arguments[3], 0);
@ -387,6 +388,7 @@ const WeatherPrefsWidget = new GObject.Class({
this.treeview.append_column(column); this.treeview.append_column(column);
column.pack_start(renderer, null); column.pack_start(renderer, null);
column.add_attribute(renderer, "text", 1);
column.set_cell_data_func(renderer, function() { column.set_cell_data_func(renderer, function() {
arguments[1].markup = arguments[2].get_value(arguments[3], 1); arguments[1].markup = arguments[2].get_value(arguments[3], 1);

Loading…
Cancel
Save