[telegnome] * src/gui.c (new_gui), src/prefs.c (tele_view_update_page): Convert
- From: Colin Watson <cjwatson src gnome org>
- To: svn-commits-list gnome org
- Subject: [telegnome] * src/gui.c (new_gui), src/prefs.c (tele_view_update_page): Convert
- Date: Tue, 28 Apr 2009 16:36:06 -0400 (EDT)
commit b56bb820a116ba69fc6e30e08404c869adfc5fde
Author: Colin Watson <cjwatson debian org>
Date: Tue Apr 28 21:25:11 2009 +0100
* src/gui.c (new_gui), src/prefs.c (tele_view_update_page): Convert
from gnome_pixmap_file to gnome_program_locate_file.
---
ChangeLog | 5 +++++
src/gui.c | 6 ++++--
src/view.c | 5 ++++-
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index beabf98..b5728e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-04-28 Colin Watson <cjwatson debian org>
+ * src/gui.c (new_gui), src/prefs.c (tele_view_update_page): Convert
+ from gnome_pixmap_file to gnome_program_locate_file.
+
+2009-04-28 Colin Watson <cjwatson debian org>
+
Clean up most uses of deprecated GNOME APIs. There are still a few
difficult ones left.
diff --git a/src/gui.c b/src/gui.c
index 5bc9d18..dbe994b 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -134,8 +134,10 @@ new_gui (gchar* startpage)
load up the last page we were visiting. Otherwise,
start with a logo */
update_entry(0,0);
- pixbuf = gdk_pixbuf_new_from_file(gnome_pixmap_file(TG_LOGO_PIXMAP),
- &error);
+ pixbuf = gdk_pixbuf_new_from_file(
+ gnome_program_locate_file(NULL, GNOME_FILE_DOMAIN_PIXMAP,
+ TG_LOGO_PIXMAP, TRUE, NULL),
+ &error);
tele_view_update_pixmap(currentview, pixbuf);
g_object_unref(pixbuf);
diff --git a/src/view.c b/src/view.c
index b49328a..e44224d 100644
--- a/src/view.c
+++ b/src/view.c
@@ -117,7 +117,10 @@ tele_view_update_page(TeleView *view, int *major_nr, int *minor_nr)
*minor_nr= old_subpage;
update_entry(*major_nr, *minor_nr);
pixbuf = gdk_pixbuf_new_from_file(
- gnome_pixmap_file(TG_NOTFOUND_PIXMAP), &error);
+ gnome_program_locate_file(
+ NULL, GNOME_FILE_DOMAIN_PIXMAP,
+ TG_NOTFOUND_PIXMAP, TRUE, NULL),
+ &error);
tele_view_update_pixmap(view, pixbuf);
g_object_unref(pixbuf);
return -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]