X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=gtkconsole%2Fgtkconsole;h=d371f0c48d4478b034eb451f7c7a2d6b1414b7ae;hb=8320b88d08622ad45f3b68c551bdb53762060f79;hp=e4a2b2476bc0d2ff94b570f6867c9f2bf6391c22;hpb=79e5e96cbacbdc4433349e8d789be69ec95cdd94;p=spider.git diff --git a/gtkconsole/gtkconsole b/gtkconsole/gtkconsole index e4a2b247..d371f0c4 100755 --- a/gtkconsole/gtkconsole +++ b/gtkconsole/gtkconsole @@ -53,6 +53,9 @@ our $wwvwin; # wwv window handle our $wcywin; # wcy window handle our $chatwin; # chat window handle +# wants +our ($wantann, $wantdx, $wantwwv, $wantwcy, $wantchat) = (1, 1, 1, 1, 1); + require "$root/local/DXVars.pm" if -e "$root/local/DXVars.pm"; our ($version, $subversion, $build); @@ -428,6 +431,12 @@ sub def_menu_callback } +sub set_win +{ + my $var = shift; + $$var = shift; +} + sub gtk_create_main_screen { $main = new Gtk2::Window('toplevel'); @@ -453,6 +462,31 @@ sub gtk_create_main_screen } ], }, + _Screens => { + item_type =>'', + children => [ + _Dx => { + item_type => '', + callback => sub { set_win(\$wantdx, $@)}, + }, + _Announce => { + item_type => '', + callback => sub { set_win(\$wantann, $@)}, + }, + _Chat => { + item_type => '', + callback => sub { set_win(\$wantchat, $@)}, + }, + _WWV => { + item_type => '', + callback => sub { set_win(\$wantwwv, $@)}, + }, + _WCY => { + item_type => '', + callback => sub { set_win(\$wantwcy, $@)}, + }, + ], + }, _Help => { item_type => '',