mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Don't draw bevels around active, RELIEF_NONE buttons that aren't
Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around active, RELIEF_NONE buttons that aren't depressed. This improves the appearance of buttons in notebook tabs. (#109213, reported by Benjamin Otte, patch by Rodney Dawes)
This commit is contained in:
parent
6fed66fc9b
commit
e4d55e75e0
@ -1,3 +1,10 @@
|
||||
Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
|
||||
active, RELIEF_NONE buttons that aren't depressed. This improves
|
||||
the appearance of buttons in notebook tabs. (#109213, reported
|
||||
by Benjamin Otte, patch by Rodney Dawes)
|
||||
|
||||
Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
|
||||
active, RELIEF_NONE buttons that aren't depressed. This improves
|
||||
the appearance of buttons in notebook tabs. (#109213, reported
|
||||
by Benjamin Otte, patch by Rodney Dawes)
|
||||
|
||||
Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
|
||||
active, RELIEF_NONE buttons that aren't depressed. This improves
|
||||
the appearance of buttons in notebook tabs. (#109213, reported
|
||||
by Benjamin Otte, patch by Rodney Dawes)
|
||||
|
||||
Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
|
||||
active, RELIEF_NONE buttons that aren't depressed. This improves
|
||||
the appearance of buttons in notebook tabs. (#109213, reported
|
||||
by Benjamin Otte, patch by Rodney Dawes)
|
||||
|
||||
Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
|
||||
active, RELIEF_NONE buttons that aren't depressed. This improves
|
||||
the appearance of buttons in notebook tabs. (#109213, reported
|
||||
by Benjamin Otte, patch by Rodney Dawes)
|
||||
|
||||
Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
|
||||
|
@ -997,9 +997,8 @@ _gtk_button_paint (GtkButton *button,
|
||||
height -= 2 * (focus_width + focus_pad);
|
||||
}
|
||||
|
||||
if ((button->relief != GTK_RELIEF_NONE) ||
|
||||
((GTK_WIDGET_STATE(widget) != GTK_STATE_NORMAL) &&
|
||||
(GTK_WIDGET_STATE(widget) != GTK_STATE_INSENSITIVE)))
|
||||
if (button->relief != GTK_RELIEF_NONE || button->depressed ||
|
||||
GTK_WIDGET_STATE(widget) == GTK_STATE_PRELIGHT)
|
||||
gtk_paint_box (widget->style, widget->window,
|
||||
state_type,
|
||||
shadow_type, area, widget, "button",
|
||||
|
Loading…
Reference in New Issue
Block a user