[tracker] tracker-needle: Fixed GTK+ 3.0 deprecations.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-needle: Fixed GTK+ 3.0 deprecations.
- Date: Thu, 13 Feb 2014 21:03:04 +0000 (UTC)
commit a47951fb433eee4650104e8806d49b46332a8206
Author: Martyn Russell <martyn lanedo com>
Date: Thu Feb 13 20:52:41 2014 +0000
tracker-needle: Fixed GTK+ 3.0 deprecations.
Remaining cases are from generated C that Vala needs to fix (e.g.
gtk_icon_info_free(), etc).
src/tracker-needle/tracker-stats.vala | 8 ++++----
src/tracker-needle/tracker-view.vala | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-needle/tracker-stats.vala b/src/tracker-needle/tracker-stats.vala
index 53a93ab..ffe930d 100644
--- a/src/tracker-needle/tracker-stats.vala
+++ b/src/tracker-needle/tracker-stats.vala
@@ -138,18 +138,18 @@ public class Tracker.Stats : Dialog {
continue;
}
- var hbox = new HBox (false, 12);
+ var box = new Box (Gtk.Orientation.HORIZONTAL, 12);
var label_key = new Label (key_used);
var label_val = new Label (val);
label_key.set_alignment (0.0f, 0.5f);
label_val.set_alignment (0.0f, 0.5f);
- hbox.pack_start (label_key, true, true, 0);
- hbox.pack_start (label_val, false, true, 0);
+ box.pack_start (label_key, true, true, 0);
+ box.pack_start (label_val, false, true, 0);
sizegroup.add_widget (label_key);
- vbox.pack_start (hbox, true, true, 0);
+ vbox.pack_start (box, true, true, 0);
}
} catch (DBusError e) {
warning ("Could not get Tracker statistics: " + e.message);
diff --git a/src/tracker-needle/tracker-view.vala b/src/tracker-needle/tracker-view.vala
index f399395..f9f304c 100644
--- a/src/tracker-needle/tracker-view.vala
+++ b/src/tracker-needle/tracker-view.vala
@@ -130,7 +130,7 @@ public class Tracker.View : ScrolledWindow {
}
if (display == Display.NO_RESULTS) {
- add_with_viewport (view);
+ add (view);
} else {
add (view);
setup_model ();
@@ -383,7 +383,7 @@ public class Tracker.View : ScrolledWindow {
tree_model.get (iter, 4, out size, -1);
if (size != null) {
- size = GLib.format_size_for_display (int.parse (size));
+ size = GLib.format_size (int.parse (size));
}
cell.set ("text", size);
@@ -432,10 +432,10 @@ public class Tracker.View : ScrolledWindow {
detail = tracker_time_format_from_seconds (detail);
break;
case Tracker.Query.Type.DOCUMENTS:
- detail = ngettext ("%d Page", "%d Pages", detail.to_int()).printf (detail.to_int());
+ detail = ngettext ("%d Page", "%d Pages", int.parse (detail)).printf (int.parse
(detail));
break;
case Tracker.Query.Type.IMAGES:
- detail = GLib.format_size_for_display (int.parse (detail));
+ detail = GLib.format_size (int.parse (detail));
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]