newstyle->bg[GTK_STATE_PRELIGHT] = gdk_color;
newstyle->bg[GTK_STATE_ACTIVE] = gdk_color;
gtk_widget_set_style(widget, newstyle);
+ gtk_style_unref(newstyle);
}
/*!
style->fg[GTK_STATE_ACTIVE] = uri_color[1];
style->fg[GTK_STATE_PRELIGHT] = uri_color[0];
gtk_widget_set_style(btn_label, style);
+ gtk_style_unref(style);
#if !GTK_CHECK_VERSION(3, 0, 0)
} else
g_warning("color allocation failed");
CLAWS_SET_TIP(color_buttons.custom_color[c],
tooltip_btn_text);
+ g_free(tooltip_btn_text);
entry_custom_colorlabel[c] = gtk_entry_new();
gtk_widget_show (entry_custom_colorlabel[c]);
FALSE, FALSE, 0);
CLAWS_SET_TIP(entry_custom_colorlabel[c],
tooltip_entry_text);
+ g_free(tooltip_entry_text);
}
for (c = (COLORLABELS>>1)+(COLORLABELS&1); c < COLORLABELS; c++) {
FALSE, FALSE, 0);
CLAWS_SET_TIP(color_buttons.custom_color[c],
tooltip_btn_text);
+ g_free(tooltip_btn_text);
entry_custom_colorlabel[c] = gtk_entry_new();
gtk_widget_show (entry_custom_colorlabel[c]);
FALSE, FALSE, 0);
CLAWS_SET_TIP(entry_custom_colorlabel[c],
tooltip_entry_text);
+
+ g_free(tooltip_entry_text);
}
- g_free(tooltip_btn_text);
- g_free(tooltip_entry_text);
hbox_reset_custom_colors = gtk_hbox_new(FALSE, VBOX_BORDER);
gtk_widget_show (hbox_reset_custom_colors);
newstyle->bg[GTK_STATE_ACTIVE] = color;
gtk_widget_set_style(GTK_WIDGET(widget), newstyle);
+ gtk_style_unref(newstyle);
}
static void prefs_msg_colors_save(PrefsPage *_page)