[Xfce4-commits] [apps/xfburn] 04/42: Remove last bit of XFBUN_STOCK_* usages
noreply at xfce.org
noreply at xfce.org
Tue Oct 15 02:21:47 CEST 2019
This is an automated email from the git hooks/post-receive script.
k a t a n a s t e e l p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfburn.
commit 8fe29b9a179df83618c50fd8e6eb1c5a0d12ae87
Author: Romain B <skunnyk at alteroot.org>
Date: Sun Nov 19 23:21:26 2017 +0100
Remove last bit of XFBUN_STOCK_* usages
- Next step is to remove unused struct / stock files
---
xfburn/xfburn-blank-dialog.c | 5 ++++-
xfburn/xfburn-burn-data-composition-base-dialog.c | 5 ++++-
xfburn/xfburn-burn-image-dialog.c | 4 +++-
xfburn/xfburn-copy-cd-dialog.c | 4 +++-
xfburn/xfburn-copy-dvd-dialog.c | 4 +++-
5 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/xfburn/xfburn-blank-dialog.c b/xfburn/xfburn-blank-dialog.c
index 64a95d1..bfa6456 100644
--- a/xfburn/xfburn-blank-dialog.c
+++ b/xfburn/xfburn-blank-dialog.c
@@ -190,6 +190,7 @@ xfburn_blank_dialog_init (XfburnBlankDialog * obj)
GtkWidget *frame;
GtkWidget *vbox;
GtkWidget *button;
+ gint x,y;
GtkListStore *store = NULL;
GtkCellRenderer *cell;
@@ -197,7 +198,9 @@ xfburn_blank_dialog_init (XfburnBlankDialog * obj)
gtk_window_set_title (GTK_WINDOW (obj), _("Blank Disc"));
gtk_window_set_destroy_with_parent (GTK_WINDOW (obj), TRUE);
- icon = gtk_widget_render_icon (GTK_WIDGET (obj), XFBURN_STOCK_BLANK_CDRW, GTK_ICON_SIZE_DIALOG, NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "stock_xfburn-blank-cdrw", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
+
gtk_window_set_icon (GTK_WINDOW (obj), icon);
g_object_unref (icon);
diff --git a/xfburn/xfburn-burn-data-composition-base-dialog.c b/xfburn/xfburn-burn-data-composition-base-dialog.c
index a138177..818d5d2 100644
--- a/xfburn/xfburn-burn-data-composition-base-dialog.c
+++ b/xfburn/xfburn-burn-data-composition-base-dialog.c
@@ -175,6 +175,7 @@ xfburn_burn_data_composition_base_dialog_constructor (GType type, guint n_constr
gchar *default_path;
gchar *tmp_dir;
const char *comp_name;
+ gint x,y;
gobj = G_OBJECT_CLASS (parent_class)->constructor (type, n_construct_properties, construct_properties);
obj = XFBURN_BURN_DATA_COMPOSITION_BASE_DIALOG (gobj);
@@ -183,7 +184,9 @@ xfburn_burn_data_composition_base_dialog_constructor (GType type, guint n_constr
gtk_window_set_title (GTK_WINDOW (obj), _("Burn Composition"));
gtk_window_set_destroy_with_parent (GTK_WINDOW (obj), TRUE);
- icon = gtk_widget_render_icon (GTK_WIDGET (obj), XFBURN_STOCK_BURN_CD, GTK_ICON_SIZE_DIALOG, NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "stock_xfburn", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
+
gtk_window_set_icon (GTK_WINDOW (obj), icon);
g_object_unref (icon);
diff --git a/xfburn/xfburn-burn-image-dialog.c b/xfburn/xfburn-burn-image-dialog.c
index 6ebf9b3..76cc26b 100644
--- a/xfburn/xfburn-burn-image-dialog.c
+++ b/xfburn/xfburn-burn-image-dialog.c
@@ -158,11 +158,13 @@ xfburn_burn_image_dialog_init (XfburnBurnImageDialog * obj)
GtkWidget *frame;
GtkWidget *vbox;
GtkWidget *button;
+ gint x,y;
XfburnDevice *device;
gtk_window_set_title (GTK_WINDOW (obj), _("Burn image"));
gtk_window_set_destroy_with_parent (GTK_WINDOW (obj), TRUE);
- icon = gtk_widget_render_icon (GTK_WIDGET (obj), XFBURN_STOCK_BURN_CD, GTK_ICON_SIZE_DIALOG, NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "stock_xfburn", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
gtk_window_set_icon (GTK_WINDOW (obj), icon);
g_object_unref (icon);
diff --git a/xfburn/xfburn-copy-cd-dialog.c b/xfburn/xfburn-copy-cd-dialog.c
index 934d856..d99b7ad 100644
--- a/xfburn/xfburn-copy-cd-dialog.c
+++ b/xfburn/xfburn-copy-cd-dialog.c
@@ -109,10 +109,12 @@ xfburn_copy_cd_dialog_init (XfburnCopyCdDialog * obj)
GtkWidget *align;
GtkWidget *button;
gchar *default_path, *tmp_dir;
+ gint x,y;
gtk_window_set_title (GTK_WINDOW (obj), _("Copy data CD"));
gtk_window_set_destroy_with_parent (GTK_WINDOW (obj), TRUE);
- icon = gtk_widget_render_icon (GTK_WIDGET (obj), XFBURN_STOCK_DATA_COPY, GTK_ICON_SIZE_DIALOG, NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "stock_xfburn-data-copy", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
gtk_window_set_icon (GTK_WINDOW (obj), icon);
g_object_unref (icon);
diff --git a/xfburn/xfburn-copy-dvd-dialog.c b/xfburn/xfburn-copy-dvd-dialog.c
index 94c6e8c..d965a77 100644
--- a/xfburn/xfburn-copy-dvd-dialog.c
+++ b/xfburn/xfburn-copy-dvd-dialog.c
@@ -109,10 +109,12 @@ xfburn_copy_dvd_dialog_init (XfburnCopyDvdDialog * obj)
GtkWidget *align;
GtkWidget *button;
gchar *default_path, *tmp_dir;
+ gint x,y;
gtk_window_set_title (GTK_WINDOW (obj), _("Copy data DVD"));
gtk_window_set_destroy_with_parent (GTK_WINDOW (obj), TRUE);
- icon = gtk_widget_render_icon (GTK_WIDGET (obj), XFBURN_STOCK_DATA_COPY, GTK_ICON_SIZE_DIALOG, NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "stock_xfburn-data-copy", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
gtk_window_set_icon (GTK_WINDOW (obj), icon);
g_object_unref (icon);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list