Avoid centering the label that is reparented from the menuitem. (#136614,
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering the label that is reparented from the menuitem. (#136614, Dennis Cranston)
This commit is contained in:

committed by
Matthias Clasen

parent
efbefd0731
commit
158158ea04
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
|
||||||
|
the label that is reparented from the menuitem. (#136614, Dennis
|
||||||
|
Cranston)
|
||||||
|
|
||||||
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
|
||||||
|
the label that is reparented from the menuitem. (#136614, Dennis
|
||||||
|
Cranston)
|
||||||
|
|
||||||
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
|
||||||
|
the label that is reparented from the menuitem. (#136614, Dennis
|
||||||
|
Cranston)
|
||||||
|
|
||||||
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
|
||||||
|
the label that is reparented from the menuitem. (#136614, Dennis
|
||||||
|
Cranston)
|
||||||
|
|
||||||
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
|
||||||
|
the label that is reparented from the menuitem. (#136614, Dennis
|
||||||
|
Cranston)
|
||||||
|
|
||||||
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
* gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* GTK - The GIMP Toolkit
|
/* GTK - The GIMP Toolkit
|
||||||
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Jsh MacDonald
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -225,6 +225,12 @@ gtk_option_menu_init (GtkOptionMenu *option_menu)
|
|||||||
option_menu->menu_item = NULL;
|
option_menu->menu_item = NULL;
|
||||||
option_menu->width = 0;
|
option_menu->width = 0;
|
||||||
option_menu->height = 0;
|
option_menu->height = 0;
|
||||||
|
/*
|
||||||
|
* Avoid centering the label that is reparented from the menuitem.
|
||||||
|
* Since gobject doesn't support overriding default values of
|
||||||
|
* properties in a convenient way yet, we simply set the value here.
|
||||||
|
*/
|
||||||
|
gtk_button_set_alignment (GTK_BUTTON (option_menu), 0.0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
|
Reference in New Issue
Block a user