[telegnome] Remove leftover use of GtkType
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [telegnome] Remove leftover use of GtkType
- Date: Tue,  2 Feb 2016 11:31:55 +0000 (UTC)
commit 7675834576a7cba1af19dd791dc70953251f105e
Author: Colin Watson <cjwatson debian org>
Date:   Tue Feb 2 11:30:09 2016 +0000
    Remove leftover use of GtkType
    
    * src/pixpack.c (tg_pixpack_new): Use g_object_new rather than
    gtk_type_new.
 src/pixpack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/pixpack.c b/src/pixpack.c
index e9b2cff..26bab93 100644
--- a/src/pixpack.c
+++ b/src/pixpack.c
@@ -109,7 +109,7 @@ tg_pixpack_init(TgPixPack *pixpack)
 GtkWidget*
 tg_pixpack_new(void)
 {
-    TgPixPack *pixpack = gtk_type_new(tg_pixpack_get_type());
+    TgPixPack *pixpack = g_object_new(TG_TYPE_PIXPACK, NULL);
     gdk_rgb_set_verbose(TRUE);
     gdk_rgb_init();
     return GTK_WIDGET(pixpack);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]