( cvs diff -u -r 1.30.2.38 -r 1.30.2.39 src/prefs_toolbar.c; ) > 3.0.2cvs23.patchset
( cvs diff -u -r 1.30.2.39 -r 1.30.2.40 src/prefs_toolbar.c; cvs diff -u -r 1.43.2.86 -r 1.43.2.87 src/toolbar.c; cvs diff -u -r 1.19.2.23 -r 1.19.2.24 src/toolbar.h; ) > 3.0.2cvs24.patchset
( cvs diff -u -r 1.43.2.87 -r 1.43.2.88 src/toolbar.c; ) > 3.0.2cvs25.patchset
+( cvs diff -u -r 1.30.2.40 -r 1.30.2.41 src/prefs_toolbar.c; ) > 3.0.2cvs26.patchset
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);