mirror of https://github.com/GNOME/gimp.git
argh... did i commit any of the correct files? apparently not
-adrian
This commit is contained in:
parent
be6d4825df
commit
c911759b79
|
@ -98,6 +98,7 @@ file_new_ok_callback (GtkWidget *widget,
|
|||
switch (vals->fill_type)
|
||||
{
|
||||
case BACKGROUND_FILL:
|
||||
case FOREGROUND_FILL:
|
||||
case WHITE_FILL:
|
||||
type = (vals->type == RGB) ? RGB_GIMAGE : GRAY_GIMAGE;
|
||||
break;
|
||||
|
@ -741,6 +742,19 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Foreground");
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
(GtkSignalFunc) file_new_toggle_callback,
|
||||
&vals->fill_type);
|
||||
if (vals->fill_type == FOREGROUND_FILL)
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
|
||||
|
||||
gtk_widget_show (vals->dlg);
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ file_new_ok_callback (GtkWidget *widget,
|
|||
switch (vals->fill_type)
|
||||
{
|
||||
case BACKGROUND_FILL:
|
||||
case FOREGROUND_FILL:
|
||||
case WHITE_FILL:
|
||||
type = (vals->type == RGB) ? RGB_GIMAGE : GRAY_GIMAGE;
|
||||
break;
|
||||
|
@ -741,6 +742,19 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Foreground");
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
(GtkSignalFunc) file_new_toggle_callback,
|
||||
&vals->fill_type);
|
||||
if (vals->fill_type == FOREGROUND_FILL)
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
|
||||
|
||||
gtk_widget_show (vals->dlg);
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ file_new_ok_callback (GtkWidget *widget,
|
|||
switch (vals->fill_type)
|
||||
{
|
||||
case BACKGROUND_FILL:
|
||||
case FOREGROUND_FILL:
|
||||
case WHITE_FILL:
|
||||
type = (vals->type == RGB) ? RGB_GIMAGE : GRAY_GIMAGE;
|
||||
break;
|
||||
|
@ -741,6 +742,19 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Foreground");
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
(GtkSignalFunc) file_new_toggle_callback,
|
||||
&vals->fill_type);
|
||||
if (vals->fill_type == FOREGROUND_FILL)
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
|
||||
|
||||
gtk_widget_show (vals->dlg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue