diff options
author | Matteo Pasotti <matteo.pasotti@gmail.com> | 2013-11-22 23:50:45 +0100 |
---|---|---|
committer | Matteo Pasotti <matteo.pasotti@gmail.com> | 2013-11-22 23:50:45 +0100 |
commit | 8e9d5372159a89089f4b3029eba9f1c1dd9b1355 (patch) | |
tree | 224263810bd9ab527a599f132c1e6d1aa4cb697a | |
parent | 5da40e88c8abd7a5f02ed445853890c0782fe271 (diff) | |
download | manatools-8e9d5372159a89089f4b3029eba9f1c1dd9b1355.tar manatools-8e9d5372159a89089f4b3029eba9f1c1dd9b1355.tar.gz manatools-8e9d5372159a89089f4b3029eba9f1c1dd9b1355.tar.bz2 manatools-8e9d5372159a89089f4b3029eba9f1c1dd9b1355.tar.xz manatools-8e9d5372159a89089f4b3029eba9f1c1dd9b1355.zip |
moved from standard YTable to the improved YCBTable provided by the libyui-mga plugin
-rwxr-xr-x | modules/rpmdragora/rpmdragora | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/rpmdragora/rpmdragora b/modules/rpmdragora/rpmdragora index 26059669..5494f89a 100755 --- a/modules/rpmdragora/rpmdragora +++ b/modules/rpmdragora/rpmdragora @@ -56,6 +56,7 @@ my $wm_icon = "/usr/share/mcc/themes/default/installremoverpm.png"; # Declarations my $my_win; my $factory; +my $mgaFactory; my $optFactory; our $w; @@ -445,6 +446,9 @@ sub run_treeview_dialog { N("Arch."), text => $pkg_columns{arch}, }), + 'mark' => { + title => N("ToInst"), + } ); foreach my $col (@columns{@columns}) { #OLD $detail_list->append_column( @@ -480,7 +484,9 @@ sub run_treeview_dialog { #$pixcolumn->set_sort_column_id($pkg_columns{state}); $detail_list_header->addColumn(N("Status")); - $detail_list = $factory->createTable($hbox_middle,$detail_list_header,1); + print $yui::YTableMode::YTableCheckBoxOnLastColumn; + + $detail_list = $mgaFactory->createTable($hbox_middle,$detail_list_header,$yui::YTableMode::YTableCheckBoxOnLastColumn); $detail_list->setWeight(0,50); $detail_list->setNotify(1); #OLD compute_main_window_size($w); @@ -1096,6 +1102,8 @@ yui::YUI::app()->setApplicationTitle(N("Software Management")); yui::YUI::app()->setApplicationIcon($wm_icon); $factory = yui::YUI::widgetFactory; +yui::YUILoader::loadExternalWidgets("mga"); +$mgaFactory = yui::YMGAWidgetFactory::getYMGAWidgetFactory(yui::YExternalWidgets::externalWidgetFactory()); $optFactory = yui::YUI::optionalWidgetFactory; ### MAIN DIALOG ### |