Commit 5a86cbd1 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Minor fix to handling of misc->[x/y]pad

Tue Jan 12 15:41:20 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklabel.c (gtk_label_expose): Minor fix
	to handling of misc->[x/y]pad
parent bef538cc
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_expose): Minor fix
to handling of misc->[x/y]pad
Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
Add back as wrapper function to restore source/binary
compatibility. grrrr.
Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org>
* reworked the redrawing heuristics somewhat, this fixed a bunch of
......
......@@ -921,12 +921,12 @@ gtk_label_expose (GtkWidget *widget,
gdk_gc_set_clip_rectangle (widget->style->fg_gc[widget->state], &event->area);
x = widget->allocation.x + misc->xpad +
(widget->allocation.width - label->max_width)
(widget->allocation.width - label->max_width - 2 * misc->xpad)
* misc->xalign + 0.5;
y = (widget->allocation.y
+ (widget->allocation.height
- widget->requisition.height) * misc->yalign
- widget->requisition.height - 2 * misc->ypad) * misc->yalign
+ misc->ypad + 0.5);
for (word = label->words; word; word = word->next)
{
......
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