mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Stephen Evanchik's fix to remove some deprecated functions.
* src/gnome-utils/gnc-gnome-utils.c: gnome_pixmap_new_from_file -> gtk_image_new_from_file * src/business/business-gnome/dialog-date-close.c: gnome_pixmap_new_from_file -> gtk_image_new_from_file gnome_unconditional_pixmap_file -> gnome_program_locate_file * src/business/business-gnome/dialog-invoice.c: gnome_unconditional_pixmap_file -> gnome_program_locate_file gnome_pixmap_load_file -> gtk_image_new_from_file git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@10350 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
||||
2004-12-04 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
Fix some deprecated functions:
|
||||
* src/gnome-utils/gnc-gnome-utils.c:
|
||||
gnome_pixmap_new_from_file -> gtk_image_new_from_file
|
||||
* src/business/business-gnome/dialog-date-close.c:
|
||||
gnome_pixmap_new_from_file -> gtk_image_new_from_file
|
||||
gnome_unconditional_pixmap_file -> gnome_program_locate_file
|
||||
* src/business/business-gnome/dialog-invoice.c:
|
||||
gnome_unconditional_pixmap_file -> gnome_program_locate_file
|
||||
gnome_pixmap_load_file -> gtk_image_new_from_file
|
||||
|
||||
2004-11-30 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/gnome-utils/Makefile.am:
|
||||
|
||||
@@ -115,9 +115,11 @@ build_date_close_window (GtkWidget *hbox, const char *message)
|
||||
/* Make noises, basically */
|
||||
gnome_triggers_vdo(message, GNOME_MESSAGE_BOX_QUESTION, NULL);
|
||||
|
||||
s = gnome_unconditional_pixmap_file("gnome-question.png");
|
||||
s = gnome_program_locate_file (NULL,
|
||||
GNOME_FILE_DOMAIN_PIXMAP,
|
||||
"gnome-question.png", TRUE, NULL);
|
||||
if (s) {
|
||||
pixmap = gnome_pixmap_new_from_file(s);
|
||||
pixmap = gtk_image_new_from_file(s);
|
||||
g_free(s);
|
||||
}
|
||||
|
||||
|
||||
@@ -255,9 +255,11 @@ iw_ask_unpost (InvoiceWindow *iw)
|
||||
|
||||
iw->reset_tax_tables = FALSE;
|
||||
|
||||
s = gnome_unconditional_pixmap_file("gnome-question.png");
|
||||
s = gnome_program_locate_file (NULL,
|
||||
GNOME_FILE_DOMAIN_PIXMAP,
|
||||
"gnome-question.png", TRUE, NULL);
|
||||
if (s) {
|
||||
gnome_pixmap_load_file(GNOME_PIXMAP(pixmap), s);
|
||||
pixmap = gtk_image_new_from_file(s);
|
||||
g_free(s);
|
||||
}
|
||||
|
||||
|
||||
@@ -202,10 +202,10 @@ gnc_gnome_help (const char *file_name, const char *anchor)
|
||||
|
||||
/********************************************************************\
|
||||
* gnc_gnome_get_pixmap *
|
||||
* returns a GnomePixmap widget given a pixmap filename *
|
||||
* returns a GtkWidget given a pixmap filename *
|
||||
* *
|
||||
* Args: none *
|
||||
* Returns: GnomePixmap widget or NULL if there was a problem *
|
||||
* Returns: GtkWidget or NULL if there was a problem *
|
||||
\*******************************************************************/
|
||||
GtkWidget *
|
||||
gnc_gnome_get_pixmap (const char *name)
|
||||
@@ -220,7 +220,8 @@ gnc_gnome_get_pixmap (const char *name)
|
||||
return NULL;
|
||||
|
||||
DEBUG ("Loading pixmap file %s", fullname);
|
||||
pixmap = gnome_pixmap_new_from_file (fullname);
|
||||
|
||||
pixmap = gtk_image_new_from_file (fullname);
|
||||
if (pixmap == NULL) {
|
||||
PERR ("Could not load pixmap");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user