mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Applied patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org> * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically centers the child in relation to the to indicator height.
This commit is contained in:
parent
916b161027
commit
c6f15f385f
16
ChangeLog
16
ChangeLog
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
|
||||
patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
|
||||
centers the child in relation to the to indicator height.
|
||||
|
||||
Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
|
||||
* gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
|
||||
correct
|
||||
|
||||
Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
|
||||
|
||||
* gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int
|
||||
and changed from g_value_get_enum to g_value_get_int instead.
|
||||
Probadly a better way to fix the problem :-)
|
||||
* gtk/gtkcellrenderertext.c: I reverted back to old "weight"
|
||||
property code using g_param_spec_int and changed from
|
||||
g_value_get_enum to g_value_get_int instead. Probably a better way
|
||||
to fix the problem :-)
|
||||
|
||||
Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
|
||||
|
||||
|
@ -283,14 +283,16 @@ gtk_check_button_size_allocate (GtkWidget *widget,
|
||||
{
|
||||
gint border_width = GTK_CONTAINER (widget)->border_width;
|
||||
|
||||
child_allocation.x = (border_width + indicator_size + indicator_spacing * 3 + 1 +
|
||||
widget->allocation.x);
|
||||
child_allocation.y = border_width + 1 + widget->allocation.y;
|
||||
child_allocation.width = MIN (GTK_BIN (button)->child->requisition.width,
|
||||
allocation->width -
|
||||
((border_width + 1) * 2 + indicator_size + indicator_spacing * 3));
|
||||
child_allocation.height = MIN (GTK_BIN (button)->child->requisition.height,
|
||||
allocation->height - (border_width + 1) * 2);
|
||||
child_allocation.x = (border_width + indicator_size + indicator_spacing * 3 + 1 +
|
||||
widget->allocation.x);
|
||||
child_allocation.y = widget->allocation.y +
|
||||
(allocation->height - child_allocation.height) / 2;
|
||||
|
||||
|
||||
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
|
||||
child_allocation.x = allocation->x + allocation->width
|
||||
|
Loading…
Reference in New Issue
Block a user