GdkPixbuf *pixbuf;
gchar *event, *text;
+ if (prefs_toolbar->item_icon_file == NULL) {
+ alertpanel_error(ERROR_MSG_NO_ICON);
+ return;
+ }
stock_pixbuf_gdk(prefs_toolbar->window,
stock_pixmap_get_icon(prefs_toolbar->item_icon_file),
&pixbuf);
GdkPixbuf *pixbuf;
gchar *icon_event, *set_event, *text;
+ if (prefs_toolbar->item_icon_file == NULL) {
+ alertpanel_error(ERROR_MSG_NO_ICON);
+ return;
+ }
stock_pixbuf_gdk(prefs_toolbar->window,
stock_pixmap_get_icon(prefs_toolbar->item_icon_file),
&pixbuf);
case ITEM_SEPARATOR:
gtk_button_set_label(GTK_BUTTON(prefs_toolbar->icon_button), _("None"));
gtk_button_set_image(GTK_BUTTON(prefs_toolbar->icon_button), NULL);
+ g_free(prefs_toolbar->item_icon_file);
+ prefs_toolbar->item_icon_file = NULL;
gtk_combo_box_set_active(
GTK_COMBO_BOX(prefs_toolbar->item_func_combo), -1);
gtk_combo_box_set_active(
if (g_utf8_collate(toolbar_ret_descr_from_val(A_SEPARATOR), descr) == 0) {
gtk_button_set_label(GTK_BUTTON(prefs_toolbar->icon_button),
_("None"));
+ g_free(prefs_toolbar->item_icon_file);
+ prefs_toolbar->item_icon_file = NULL;
gtk_combo_box_set_active(GTK_COMBO_BOX(prefs_toolbar->item_type_combo),
ITEM_SEPARATOR);
g_free(icon_text);