]> git.zerfleddert.de Git - snom-frontend/commitdiff
use ComboBox->new_text instead of ->new, much easier to use.
authormichael <michael>
Mon, 22 May 2006 11:06:48 +0000 (11:06 +0000)
committermichael <michael>
Mon, 22 May 2006 11:06:48 +0000 (11:06 +0000)
snom.pl

diff --git a/snom.pl b/snom.pl
index 9cbbbba9663a338bc529fa1153bb1e750ec666d8..03abbb727ceb5eea9059bcb6202e8fbc19f54a1a 100755 (executable)
--- a/snom.pl
+++ b/snom.pl
@@ -1,5 +1,5 @@
 #!/bin/sh
-#$Id: snom.pl,v 1.25 2006-05-21 23:13:35 michael Exp $
+#$Id: snom.pl,v 1.26 2006-05-22 11:06:48 michael Exp $
 
 # http://developer.gnome.org/doc/API/2.2/gtk/gtk-migrating-GtkComboBox.html
 
@@ -134,9 +134,11 @@ $display->signal_connect(enter_notify_event => \&DisplayMouseOver, TRUE);
 $display->signal_connect(leave_notify_event => \&DisplayMouseOver, FALSE);
 $display->show();
 
-my $host = Gtk2::ComboBox->new();
-# my $combobox = Gtk2::Ex::ComboBox->new($host);
-# $combobox->set_list(\@sections);
+my $host = Gtk2::ComboBox->new_text();
+foreach my $phone (@sections) {
+       $host->append_text($phone);
+}
+$host->set_active(0);
 $host->show();
 
 my $dispbox = Gtk2::VBox->new(0, 5);
Impressum, Datenschutz