mirror of https://github.com/GNOME/gimp.git
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:
parent
b277454760
commit
b793146bde
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue