Add filechooser.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 16 Apr 2007 03:24:02 +0000 (03:24 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 16 Apr 2007 03:24:02 +0000 (03:24 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@944 959494ce-11ee-0310-bf91-de5d638817bd

common/makegdesc

index 9ca169c..4fd4f46 100755 (executable)
@@ -293,6 +293,8 @@ sub printwidgets
            if($widget->{"grip"} eq "n") {
                print "${p}gtk_statusbar_set_has_resize_grip(GTK_STATUSBAR(stack[$sl]), FALSE);\n";
            }
+       } elsif($widget->{"type"} eq "filechooser") {
+           print "${p}stack[$sl] = gtk_file_chooser_widget_new(GTK_FILE_CHOOSER_ACTION_" . (defined($widget->{"action"})?$widget->{"action"}:"OPEN") . ");\n";
        } else {
            print STDERR "Unknown widget: " . $widget->{"type"} ."\n";
        }