[balsa/gtk4: 217/312] balsa-icons: Fix the build
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 217/312] balsa-icons: Fix the build
- Date: Tue, 5 Oct 2021 20:01:17 +0000 (UTC)
commit bc863f16fde0e9ac20299e1a7acb90263c41f9a7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Oct 18 13:27:58 2020 -0400
balsa-icons: Fix the build
src/balsa-icons.c | 6 +++---
src/balsa-icons.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/balsa-icons.c b/src/balsa-icons.c
index 3b22fcf70..9acce7d60 100644
--- a/src/balsa-icons.c
+++ b/src/balsa-icons.c
@@ -93,7 +93,7 @@ load_balsa_pixmap(GtkIconTheme *icon_theme, const balsa_pixmap_t *bpixmap)
}
void
-balsa_register_pixmaps(BalsaWindow *window)
+balsa_register_pixmaps(GtkWidget *window)
{
const balsa_pixmap_t balsa_icons[] = {
/* icons for buttons and menus (24x24 and 16x16) */
@@ -165,11 +165,11 @@ balsa_register_pixmaps(BalsaWindow *window)
unsigned i;
GtkIconTheme *icon_theme =
- gtk_icon_theme_get_for_display(gtk_widget_get_display(GTK_WIDGET(window)));
+ gtk_icon_theme_get_for_display(gtk_widget_get_display(window));
balsa_icon_table =
g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
- gtk_icon_theme_append_search_path(icon_theme, BALSA_DATA_PREFIX);
+ gtk_icon_theme_add_search_path(icon_theme, BALSA_DATA_PREFIX);
for (i = 0; i < G_N_ELEMENTS(balsa_icons); i++)
load_balsa_pixmap(icon_theme, balsa_icons + i);
diff --git a/src/balsa-icons.h b/src/balsa-icons.h
index 69348d8a5..0ec08bd49 100644
--- a/src/balsa-icons.h
+++ b/src/balsa-icons.h
@@ -91,7 +91,7 @@
#define BALSA_PIXMAP_DROP_DOWN "balsa_drop_down"
-void balsa_register_pixmaps(void);
+void balsa_register_pixmaps(GtkWidget *widget);
void balsa_unregister_pixmaps(void);
void balsa_register_icon_names(void);
const gchar * balsa_icon_id(const gchar * name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]