[telegnome] Remove unnecessary uses of gdk_rgb_*
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] Remove unnecessary uses of gdk_rgb_*
- Date: Tue, 2 Feb 2016 11:35:50 +0000 (UTC)
commit 7f668435323eb73e2d98c91923c34fdc82a90408
Author: Colin Watson <cjwatson debian org>
Date: Tue Feb 2 11:34:51 2016 +0000
Remove unnecessary uses of gdk_rgb_*
* src/pixpack.c (tg_pixpack_new): Don't call gdk_rgb_set_verbose or
gdk_rgb_init; they're deprecated and are not very useful.
src/pixpack.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/pixpack.c b/src/pixpack.c
index 26bab93..8c3dbcc 100644
--- a/src/pixpack.c
+++ b/src/pixpack.c
@@ -109,10 +109,7 @@ tg_pixpack_init(TgPixPack *pixpack)
GtkWidget*
tg_pixpack_new(void)
{
- TgPixPack *pixpack = g_object_new(TG_TYPE_PIXPACK, NULL);
- gdk_rgb_set_verbose(TRUE);
- gdk_rgb_init();
- return GTK_WIDGET(pixpack);
+ return GTK_WIDGET(g_object_new(TG_TYPE_PIXPACK, NULL));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]