Commit b1d55510 authored by Sven Neumann's avatar Sven Neumann

Cosmetic stuff...


--Sven
parent e1b01f28
Tue Apr 20 13:09:03 MEST 1999 Sven Neumann <sven@gimp.org>
* modules/colorsel_triangle.c
* app/tips_dialog.c: put the previews into sunken frames
* app/color_select.c: enlarged the hex triplet entry
Tue Apr 20 00:48:18 CEST 1999 Marc Lehmann <pcg@goof.com>
* configure.in: bump minimum perl version from 5.004 to 5.004_4.
......
......@@ -376,7 +376,7 @@ color_select_widget_new (ColorSelectP csp, int r, int g, int b)
csp->hex_entry = gtk_entry_new ();
sprintf(buffer, "#%.2x%.2x%.2x", r, g, b);
gtk_entry_set_text (GTK_ENTRY (csp->hex_entry), buffer);
gtk_widget_set_usize (GTK_WIDGET (csp->hex_entry), 55, 0);
gtk_widget_set_usize (GTK_WIDGET (csp->hex_entry), 75, 0);
gtk_box_pack_end (GTK_BOX (hex_hbox), csp->hex_entry, FALSE, FALSE, 2);
gtk_signal_connect (GTK_OBJECT (csp->hex_entry), "focus_out_event",
(GtkSignalFunc) color_select_hex_entry_leave,
......
......@@ -35,6 +35,7 @@ tips_dialog_create ()
GtkWidget *bbox;
GtkWidget *vbox_bbox2;
GtkWidget *bbox2;
GtkWidget *frame;
GtkWidget *preview;
GtkWidget *button_close;
GtkWidget *button_next;
......@@ -111,8 +112,12 @@ tips_dialog_create ()
0, y, wilber_width);
}
g_free(temp);
gtk_box_pack_end (GTK_BOX (hbox1), preview, FALSE, TRUE, 3);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_box_pack_end (GTK_BOX (hbox1), frame, FALSE, TRUE, 3);
gtk_container_add (GTK_CONTAINER (frame), preview);
gtk_widget_show (preview);
gtk_widget_show (frame);
tips_label = gtk_label_new (tips_text[last_tip]);
gtk_label_set_justify (GTK_LABEL (tips_label), GTK_JUSTIFY_LEFT);
......
......@@ -376,7 +376,7 @@ color_select_widget_new (ColorSelectP csp, int r, int g, int b)
csp->hex_entry = gtk_entry_new ();
sprintf(buffer, "#%.2x%.2x%.2x", r, g, b);
gtk_entry_set_text (GTK_ENTRY (csp->hex_entry), buffer);
gtk_widget_set_usize (GTK_WIDGET (csp->hex_entry), 55, 0);
gtk_widget_set_usize (GTK_WIDGET (csp->hex_entry), 75, 0);
gtk_box_pack_end (GTK_BOX (hex_hbox), csp->hex_entry, FALSE, FALSE, 2);
gtk_signal_connect (GTK_OBJECT (csp->hex_entry), "focus_out_event",
(GtkSignalFunc) color_select_hex_entry_leave,
......
......@@ -35,6 +35,7 @@ tips_dialog_create ()
GtkWidget *bbox;
GtkWidget *vbox_bbox2;
GtkWidget *bbox2;
GtkWidget *frame;
GtkWidget *preview;
GtkWidget *button_close;
GtkWidget *button_next;
......@@ -111,8 +112,12 @@ tips_dialog_create ()
0, y, wilber_width);
}
g_free(temp);
gtk_box_pack_end (GTK_BOX (hbox1), preview, FALSE, TRUE, 3);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_box_pack_end (GTK_BOX (hbox1), frame, FALSE, TRUE, 3);
gtk_container_add (GTK_CONTAINER (frame), preview);
gtk_widget_show (preview);
gtk_widget_show (frame);
tips_label = gtk_label_new (tips_text[last_tip]);
gtk_label_set_justify (GTK_LABEL (tips_label), GTK_JUSTIFY_LEFT);
......
......@@ -35,6 +35,7 @@ tips_dialog_create ()
GtkWidget *bbox;
GtkWidget *vbox_bbox2;
GtkWidget *bbox2;
GtkWidget *frame;
GtkWidget *preview;
GtkWidget *button_close;
GtkWidget *button_next;
......@@ -111,8 +112,12 @@ tips_dialog_create ()
0, y, wilber_width);
}
g_free(temp);
gtk_box_pack_end (GTK_BOX (hbox1), preview, FALSE, TRUE, 3);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_box_pack_end (GTK_BOX (hbox1), frame, FALSE, TRUE, 3);
gtk_container_add (GTK_CONTAINER (frame), preview);
gtk_widget_show (preview);
gtk_widget_show (frame);
tips_label = gtk_label_new (tips_text[last_tip]);
gtk_label_set_justify (GTK_LABEL (tips_label), GTK_JUSTIFY_LEFT);
......
......@@ -376,7 +376,7 @@ color_select_widget_new (ColorSelectP csp, int r, int g, int b)
csp->hex_entry = gtk_entry_new ();
sprintf(buffer, "#%.2x%.2x%.2x", r, g, b);
gtk_entry_set_text (GTK_ENTRY (csp->hex_entry), buffer);
gtk_widget_set_usize (GTK_WIDGET (csp->hex_entry), 55, 0);
gtk_widget_set_usize (GTK_WIDGET (csp->hex_entry), 75, 0);
gtk_box_pack_end (GTK_BOX (hex_hbox), csp->hex_entry, FALSE, FALSE, 2);
gtk_signal_connect (GTK_OBJECT (csp->hex_entry), "focus_out_event",
(GtkSignalFunc) color_select_hex_entry_leave,
......
......@@ -148,7 +148,10 @@ static GtkWidget * colorsel_triangle_new (int r, int g, int b,
void **selector_data)
{
ColorSelectP coldata;
GtkWidget *preview;
GtkWidget *frame;
GtkWidget *hbox;
GtkWidget *vbox;
coldata = g_malloc (sizeof (_ColorSelect));
coldata->values[RED] = r;
......@@ -164,13 +167,21 @@ static GtkWidget * colorsel_triangle_new (int r, int g, int b,
coldata->callback = callback;
coldata->data = callback_data;
/* gtk_rc_parse ("colorselrc"); */
frame = create_color_preview (coldata);
coldata->preview = frame;
preview = create_color_preview (coldata);
coldata->preview = preview;
*selector_data = coldata;
return frame;
vbox = gtk_vbox_new (FALSE, 0);
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, FALSE, 0);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_container_add (GTK_CONTAINER (frame), preview);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, FALSE, 0);
gtk_widget_show_all (hbox);
return vbox;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment