resolved resizing issues
This commit is contained in:
parent
7a9b34e4e8
commit
8147b76d13
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.1 $
|
||||
Version : $Revision: 1.2 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/src/Button.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -134,6 +134,7 @@ Button :: on_size_request(Gtk::Requisition* requisition) throw ()
|
|||
void
|
||||
Button :: on_size_allocate(Gtk::Allocation& allocation) throw ()
|
||||
{
|
||||
allocation.set_height(passiveImageCenter->get_height());
|
||||
set_allocation(allocation);
|
||||
|
||||
if (gdkWindow) {
|
||||
|
@ -155,6 +156,8 @@ Button :: on_size_allocate(Gtk::Allocation& allocation) throw ()
|
|||
labelAlloc.set_height(passiveImageCenter->get_height());
|
||||
|
||||
label->size_allocate(labelAlloc);
|
||||
|
||||
Gtk::Button::on_size_allocate(allocation);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.1 $
|
||||
Version : $Revision: 1.2 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/src/ImageButton.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -107,6 +107,8 @@ ImageButton :: on_size_request(Gtk::Requisition* requisition) throw ()
|
|||
void
|
||||
ImageButton :: on_size_allocate(Gtk::Allocation& allocation) throw ()
|
||||
{
|
||||
allocation.set_width(passiveImage->get_width());
|
||||
allocation.set_height(passiveImage->get_height());
|
||||
set_allocation(allocation);
|
||||
|
||||
if (gdkWindow) {
|
||||
|
@ -115,6 +117,8 @@ ImageButton :: on_size_allocate(Gtk::Allocation& allocation) throw ()
|
|||
allocation.get_width(),
|
||||
allocation.get_height() );
|
||||
}
|
||||
|
||||
Gtk::Button::on_size_allocate(allocation);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue