summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-03-05 16:35:37 +0100
committerAlexander Larsson <alexl@redhat.com>2012-03-05 16:39:36 +0100
commitcbe46bb713d1ac5de5cd835142eacf033febb2fb (patch)
treef8389d43e98b70c8b62897d02a96b3331a692079
parent7d4fad24db31155e01518fad9ec9e382a8d2fbff (diff)
downloadgnome-contacts-cbe46bb713d1ac5de5cd835142eacf033febb2fb.tar.gz
Fix up deprecated vala method usage3.3.91
-rw-r--r--src/contacts-avatar-dialog.vala2
-rw-r--r--src/contacts-cell-renderer-shape.vala16
-rw-r--r--src/contacts-contact-pane.vala12
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);