[balsa] Remove unused code
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Remove unused code
- Date: Sat, 27 May 2017 23:03:08 +0000 (UTC)
commit cbcf17f7f6ae3e8f578f75c4c8fd1cd5aed926c3
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat May 27 18:11:13 2017 -0400
Remove unused code
* libinit_balsa/assistant_helper.c: remove balsa_init_get_png,
as it is not used.
* libinit_balsa/assistant_helper.h: do not export it.
ChangeLog | 8 ++++++++
libinit_balsa/assistant_helper.c | 24 ------------------------
libinit_balsa/assistant_helper.h | 2 --
3 files changed, 8 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index be74c89..2ece322 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+ Remove unused code
+
+ * libinit_balsa/assistant_helper.c: remove balsa_init_get_png,
+ as it is not used.
+ * libinit_balsa/assistant_helper.h: do not export it.
+
+2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+
Use Balsa's main window as parent of a dialog
* src/sendmsg-window.c (send_message_handler): use
diff --git a/libinit_balsa/assistant_helper.c b/libinit_balsa/assistant_helper.c
index 41abf1c..281259f 100644
--- a/libinit_balsa/assistant_helper.c
+++ b/libinit_balsa/assistant_helper.c
@@ -47,30 +47,6 @@ static void entry_changed_cb(GtkEntry * entry, EntryData * ed);
/* ************************************************************************** */
-GdkPixbuf *
-balsa_init_get_png(const gchar * fname)
-{
- GdkPixbuf *img;
- GError *err = NULL;
- gchar *fullpath;
-
- g_return_val_if_fail(fname != NULL, NULL);
-
- fullpath = balsa_pixmap_finder(fname);
-
- if (!fullpath)
- return NULL;
-
- img = gdk_pixbuf_new_from_file(fullpath, &err);
- if (err) {
- g_print(_("Error loading %s: %s\n"), fullpath, err->message);
- g_error_free(err);
- }
- g_free(fullpath);
-
- return img;
-}
-
GtkWidget *
balsa_init_add_grid_entry(GtkGrid * grid, guint num, const gchar * ltext,
const gchar * etext, EntryData * ed,
diff --git a/libinit_balsa/assistant_helper.h b/libinit_balsa/assistant_helper.h
index 0e49c1f..3f66db4 100644
--- a/libinit_balsa/assistant_helper.h
+++ b/libinit_balsa/assistant_helper.h
@@ -44,8 +44,6 @@ struct EntryMaster_s {
#define ENTRY_MASTER_P_DONE( ep ) ( ((ep)->setbits & (ep)->donemask) == (ep)->donemask )
#define ENTRY_MASTER_DONE( e ) ( ((e).setbits & (e).donemask) == (e).donemask )
-GdkPixbuf *balsa_init_get_png(const gchar * fname);
-
GtkWidget *balsa_init_add_grid_entry(GtkGrid * grid, guint num,
const gchar * ltext,
const gchar * etext, EntryData * ed,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]