- VersionLabel->set_text(ver);
-
- /* Scale the text to fit */
- width = 0;
- height = 0;
- size=11;
- l = VersionLabel->get_layout();
- fd = Pango::FontDescription("Sans, 11");
- l->set_font_description(fd);
- l->set_justify(Pango::ALIGN_CENTER);
- fd.set_size(int(size*Pango::SCALE));
- l->set_font_description(fd);
- l->get_pixel_size(width,height);
- while( width >= image_w-6 ){
- size-=0.5;
- fd.set_size((int)(size*Pango::SCALE));
- l->set_font_description(fd);
- l->get_pixel_size(width,height);
- }
- VersionLabel->modify_font(fd);
-
- // Create the image that will be used on the close button
- Gtk::Image *image2 = manage(new class Gtk::Image(Gtk::StockID("gtk-close"), Gtk::IconSize(4)));
- image2->set_alignment(0.5,0.5);
- image2->set_padding(0,0);
-
- // Create the close button, and attach the image to it
- CloseButton = manage(new class Gtk::Button());
- CloseButton->set_size_request(24,24);
- CloseButton->set_flags(Gtk::CAN_FOCUS);
- _tooltips.set_tip(*CloseButton, "Close", "");
- CloseButton->set_relief(Gtk::RELIEF_NONE);
- CloseButton->add(*image2);
-
- // Create the progress bar
- progressbar = manage(new class Gtk::ProgressBar());
- progressbar->set_size_request(image_w,24);
-
- // Create the current task label
- tasklabel = manage(new class Gtk::Label());
- tasklabel->set_size_request(image_w,24);
- tasklabel->set_use_underline(false);
-
- // Create the Gtk::Fixed container and put all of the widgets into it
- Gtk::Fixed *fixed1 = manage(new class Gtk::Fixed());
- fixed1->put(*Logo, 0, 0);
- fixed1->put(*CopyrightLabel, 0, image_h-25);
- fixed1->put(*CloseButton, image_w-24, 0);
- fixed1->put(*VersionLabel, 0, image_h-90);
- fixed1->put(*progressbar, 0, image_h+24);
- fixed1->put(*tasklabel, 0, image_h);
-
- // Set up the parameters for this pop-up window
- set_title("Synfig Studio "VERSION);
- set_modal(false);
- property_window_position().set_value(Gtk::WIN_POS_CENTER);
- set_resizable(false);
- add(*fixed1);
-
- // show everything off
- Logo->show();
- CopyrightLabel->show();
- image2->show();
- CloseButton->show();
- VersionLabel->show();
- fixed1->show();
-
- // Connect relevant signals
- CloseButton->signal_clicked().connect(sigc::mem_fun(*this, &About::close));
-
- cb=new AboutProgress(*this);
-}