[gnome-contacts] Fix up deprecated vala method usage
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Fix up deprecated vala method usage
- Date: Mon, 5 Mar 2012 15:40:07 +0000 (UTC)
commit cbe46bb713d1ac5de5cd835142eacf033febb2fb
Author: Alexander Larsson <alexl redhat com>
Date: Mon Mar 5 16:35:37 2012 +0100
Fix up deprecated vala method usage
src/contacts-avatar-dialog.vala | 2 +-
src/contacts-cell-renderer-shape.vala | 16 ++++++++--------
src/contacts-contact-pane.vala | 12 ++++++------
3 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/contacts-avatar-dialog.vala b/src/contacts-avatar-dialog.vala
index a2fd0dd..1bdb7aa 100644
--- a/src/contacts-avatar-dialog.vala
+++ b/src/contacts-avatar-dialog.vala
@@ -150,7 +150,7 @@ public class Contacts.AvatarDialog : Dialog {
var file = File.new_for_uri (uri);
try {
- var file_info = file.query_info (GLib.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
+ var file_info = file.query_info (FileAttribute.STANDARD_CONTENT_TYPE,
FileQueryInfoFlags.NONE, null);
if (file_info != null) {
var mime_type = file_info.get_content_type ();
diff --git a/src/contacts-cell-renderer-shape.vala b/src/contacts-cell-renderer-shape.vala
index f01e559..076c997 100644
--- a/src/contacts-cell-renderer-shape.vala
+++ b/src/contacts-cell-renderer-shape.vala
@@ -272,16 +272,16 @@ public class Contacts.CellRendererShape : Gtk.CellRenderer {
Gdk.cairo_rectangle (cr, cell_area);
cr.clip ();
- Gtk.render_layout (context, cr,
- cell_area.x + name_x_offset,
- cell_area.y + name_y_offset,
- name_layout);
+ context.render_layout (cr,
+ cell_area.x + name_x_offset,
+ cell_area.y + name_y_offset,
+ name_layout);
if (presence_layout != null)
- Gtk.render_layout (context, cr,
- cell_area.x + presence_x_offset,
- cell_area.y + presence_y_offset + renderer_height - 11 - presence_layout.get_baseline () / Pango.SCALE,
- presence_layout);
+ context.render_layout (cr,
+ cell_area.x + presence_x_offset,
+ cell_area.y + presence_y_offset + renderer_height - 11 - presence_layout.get_baseline () / Pango.SCALE,
+ presence_layout);
cr.restore ();
}
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index c76bc96..8a9a46f 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -149,11 +149,11 @@ public class Contacts.FieldRow : Contacts.Row {
}
context.set_state (state);
if (state != 0)
- Gtk.render_background (context, cr,
- 0, 0, allocation.width, allocation.height);
+ context.render_background (cr,
+ 0, 0, allocation.width, allocation.height);
if (this.has_visible_focus ())
- Gtk.render_focus (context, cr, 0, 0, allocation.width, allocation.height);
+ context.render_focus (cr, 0, 0, allocation.width, allocation.height);
context.restore ();
@@ -1747,9 +1747,9 @@ public class Contacts.ContactPane : ScrolledWindow {
grid.get_allocation (out allocation);
var context = grid.get_style_context ();
- Gtk.render_background (context, cr,
- 0, 0,
- allocation.width, allocation.height);
+ context.render_background (cr,
+ 0, 0,
+ allocation.width, allocation.height);
return false;
});
row.pack (grid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]