Remove redundant call to gtk_toggle_button_set_mode()

No need to call that function on an actual GtkToggleButton, because
they never have check indicators anyway.
This commit is contained in:
Michael Natterer 2009-08-21 13:52:29 +02:00
parent b277454760
commit b793146bde
1 changed files with 2 additions and 7 deletions

View File

@ -637,14 +637,9 @@ gimp_editor_add_action_button (GimpEditor *editor,
button_icon_size = gimp_editor_ensure_button_box (editor, &button_relief);
if (GTK_IS_TOGGLE_ACTION (action))
{
button = gtk_toggle_button_new ();
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (button), FALSE);
}
button = gtk_toggle_button_new ();
else
{
button = gimp_button_new ();
}
button = gimp_button_new ();
gtk_button_set_relief (GTK_BUTTON (button), button_relief);