Re: Combox - show one column but two columns in popup
- From: Mike Martin <mike redtux org uk>
- To: gtk-perl-list gnome org
- Subject: Re: Combox - show one column but two columns in popup
- Date: Tue, 20 Jun 2017 14:03:09 +0100
This is how I resolved my issue by connecting to notify::popup-shown signal. It seems really kludgey though (especially having to resize the window)
$widgetsm{tunefile}->signal_connect('notify::popup-shown'=>sub{
if($widgetsm{tunefile}->get('popup-shown') ==1){
($w,$h)= $window->get_size;
$widgetsm{tunefile}->pack_start ($renderer1, 'FALSE');
$widgetsm{tunefile}->add_attribute ($renderer1, text => 1);
}
elsif ($widgetsm{tunefile}->get('popup-shown') ==0){
$widgetsm{tunefile}->clear;
$widgetsm{tunefile}->pack_start ($renderer, 'FALSE');
$widgetsm{tunefile}->add_attribute ($renderer, text => 0);
$window->resize($w,$h);
}
}
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]