[gtk+] demos: Do not use deprecated API
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] demos: Do not use deprecated API
- Date: Wed, 8 Sep 2010 15:46:41 +0000 (UTC)
commit eb81216e327521ae37028b00ff4abca897c43db7
Author: Javier Jardón <jjardon gnome org>
Date: Wed Sep 8 17:45:51 2010 +0200
demos: Do not use deprecated API
demos/testgtk/main.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/demos/testgtk/main.c b/demos/testgtk/main.c
index 69c872a..bf43ca3 100644
--- a/demos/testgtk/main.c
+++ b/demos/testgtk/main.c
@@ -369,16 +369,16 @@ main (int argc, char **argv)
gtk_label_new ("Source"));
tag = gtk_text_buffer_create_tag (info_buffer, "title");
- gtk_object_set (GTK_OBJECT (tag),
- "font", "Sans 18",
- NULL);
+ g_object_set (tag,
+ "font", "Sans 18",
+ NULL);
tag = gtk_text_buffer_create_tag (info_buffer, "source");
- gtk_object_set (GTK_OBJECT (tag),
- "font", "Courier 10",
- "pixels_above_lines", 0,
- "pixels_below_lines", 0,
- NULL);
+ g_object_set (tag,
+ "font", "Courier 10",
+ "pixels_above_lines", 0,
+ "pixels_below_lines", 0,
+ NULL);
gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
gtk_widget_show_all (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]