diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-02-13 07:25:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-02-13 07:25:02 +0000 |
commit | 3d2901cbc908e1275f023b336b6e58b9f54753f2 (patch) | |
tree | 20d1dbf0067aae19c7195b7b2785e04fb009b835 /clock.pl | |
parent | 11bdda2c5988c85ee52be91d5a0b99d1c965532f (diff) | |
download | control-center-3d2901cbc908e1275f023b336b6e58b9f54753f2.tar control-center-3d2901cbc908e1275f023b336b6e58b9f54753f2.tar.gz control-center-3d2901cbc908e1275f023b336b6e58b9f54753f2.tar.bz2 control-center-3d2901cbc908e1275f023b336b6e58b9f54753f2.tar.xz control-center-3d2901cbc908e1275f023b336b6e58b9f54753f2.zip |
smoother gui behavior: keep constant size for clock on resizing
Diffstat (limited to 'clock.pl')
-rwxr-xr-x | clock.pl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -64,7 +64,9 @@ $my_win->{window}->add(gtkpack_(Gtk2::VBox->new(0,0), 0, $button_time, ), 1, gtkpack_(Gtk2::VBox->new(0,0), - 1, $drawing_area, + 0, gtkpack_(Gtk2::HBox->new(0,0), + 0, $drawing_area + ), 0, gtkpack_(Gtk2::HBox->new(1,0), 0, Gtk2::HBox->new(1,0), 0, my $spinner_h = Gtk2::SpinButton->new($adj_h, 0, 0), @@ -100,7 +102,7 @@ $my_win->{window}->add(gtkpack_(Gtk2::VBox->new(0,0), ); my $pressed; -$drawing_area->size(300,300); +$drawing_area->set_size_request(300,300); $drawing_area->set_events([ 'button_press_mask', 'button_release_mask', "pointer_motion_mask" ]); $drawing_area->signal_connect(expose_event => \&expose_event); $drawing_area->signal_connect(realize => \&configure_event); |