* src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
* src/object-editor-line-page.c: (gl_object_editor_set_line_color):
Preserve "is_default" of fill and line color_combos when creating from
existing objects.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@429
f5e0f49d-192f-0410-a22d-
a8d8700d0965
+2004-07-05 Jim Evins <evins@snaught.com>
+
+ * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
+ * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
+ Preserve "is_default" of fill and line color_combos when creating from
+ existing objects.
+
2004-07-02 Jim Evins <evins@snaught.com>
* data/glabels.1:
gl_object_editor_changed_cb,
editor);
- gdk_color = gl_color_to_gdk_color (color);
- color_combo_set_color (COLOR_COMBO(editor->priv->fill_color_combo), gdk_color);
- g_free (gdk_color);
+ if ( color == GL_COLOR_NONE ) {
+
+ color_combo_set_color_to_default (COLOR_COMBO(editor->priv->fill_color_combo));
+
+ } else {
+
+ gdk_color = gl_color_to_gdk_color (color);
+ color_combo_set_color (COLOR_COMBO(editor->priv->fill_color_combo),
+ gdk_color);
+ g_free (gdk_color);
+
+ }
g_signal_handlers_unblock_by_func (G_OBJECT(editor->priv->fill_color_combo),
gl_object_editor_changed_cb,
gl_object_editor_changed_cb,
editor);
- gdk_color = gl_color_to_gdk_color (color);
- color_combo_set_color (COLOR_COMBO(editor->priv->line_color_combo), gdk_color);
- g_free (gdk_color);
+ if ( color == GL_COLOR_NONE ) {
+
+ color_combo_set_color_to_default (COLOR_COMBO(editor->priv->line_color_combo));
+
+ } else {
+
+ gdk_color = gl_color_to_gdk_color (color);
+ color_combo_set_color (COLOR_COMBO(editor->priv->line_color_combo),
+ gdk_color);
+ g_free (gdk_color);
+
+ }
g_signal_handlers_unblock_by_func (G_OBJECT(editor->priv->line_color_combo),
gl_object_editor_changed_cb,