[dia] Transparency also for UML-Class and Database-Table
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Transparency also for UML-Class and Database-Table
- Date: Sun, 26 Jun 2011 10:48:16 +0000 (UTC)
commit ef3a3483b49e8b35c0dacc98e9a230767642bea7
Author: Hans Breuer <hans breuer org>
Date: Fri Jun 24 12:04:01 2011 +0200
Transparency also for UML-Class and Database-Table
The respective widgets in specialized dialogs were missing
the call to dia_color_selector_set_use_alpha().
lib/libdia.def | 1 +
objects/Database/table_dialog.c | 3 +++
objects/UML/class_dialog.c | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/libdia.def b/lib/libdia.def
index 1970471..1c39315 100644
--- a/lib/libdia.def
+++ b/lib/libdia.def
@@ -198,6 +198,7 @@ EXPORTS
; dia_color_selector_get_type
dia_color_selector_new
dia_color_selector_set_color
+ dia_color_selector_set_use_alpha
dia_config_filename
dia_dynamic_menu_get_type
diff --git a/objects/Database/table_dialog.c b/objects/Database/table_dialog.c
index d598d9f..7d71b5e 100644
--- a/objects/Database/table_dialog.c
+++ b/objects/Database/table_dialog.c
@@ -1072,6 +1072,7 @@ create_style_page (GtkNotebook * notebook, Table * table)
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (gtk_table), label, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 2);
text_color = dia_color_selector_new();
+ dia_color_selector_set_use_alpha (text_color, TRUE);
dia_color_selector_set_color(text_color, &table->text_color);
prop_dialog->text_color = (DiaColorSelector *)text_color;
gtk_table_attach (GTK_TABLE (gtk_table), text_color, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 3, 2);
@@ -1080,6 +1081,7 @@ create_style_page (GtkNotebook * notebook, Table * table)
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (gtk_table), label, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 2);
line_color = dia_color_selector_new();
+ dia_color_selector_set_use_alpha (line_color, TRUE);
dia_color_selector_set_color(line_color, &table->line_color);
prop_dialog->line_color = (DiaColorSelector *)line_color;
gtk_table_attach (GTK_TABLE (gtk_table), line_color, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 3, 2);
@@ -1088,6 +1090,7 @@ create_style_page (GtkNotebook * notebook, Table * table)
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (gtk_table), label, 0, 1, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 2);
fill_color = dia_color_selector_new();
+ dia_color_selector_set_use_alpha (fill_color, TRUE);
dia_color_selector_set_color(fill_color, &table->fill_color);
prop_dialog->fill_color = (DiaColorSelector *)fill_color;
gtk_table_attach (GTK_TABLE (gtk_table), fill_color, 1, 2, 2, 3, GTK_EXPAND | GTK_FILL, 0, 3, 2);
diff --git a/objects/UML/class_dialog.c b/objects/UML/class_dialog.c
index 0046918..dbdb361 100644
--- a/objects/UML/class_dialog.c
+++ b/objects/UML/class_dialog.c
@@ -595,6 +595,7 @@ style_create_page(GtkNotebook *notebook, UMLClass *umlclass)
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 2);
text_color = dia_color_selector_new();
+ dia_color_selector_set_use_alpha (text_color, TRUE);
dia_color_selector_set_color(text_color, ¨class->text_color);
prop_dialog->text_color = (DiaColorSelector *)text_color;
gtk_table_attach (GTK_TABLE (table), text_color, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 3, 2);
@@ -603,6 +604,7 @@ style_create_page(GtkNotebook *notebook, UMLClass *umlclass)
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 2);
line_color = dia_color_selector_new();
+ dia_color_selector_set_use_alpha (line_color, TRUE);
dia_color_selector_set_color(line_color, ¨class->line_color);
prop_dialog->line_color = (DiaColorSelector *)line_color;
gtk_table_attach (GTK_TABLE (table), line_color, 1, 2, 2, 3, GTK_EXPAND | GTK_FILL, 0, 3, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]