- CopyrightLabel->modify_font(fd);
-
- // Create the Version information label
- Gtk::Label *VersionLabel = manage(new class Gtk::Label(_("Version")));
- VersionLabel->set_size_request(image_w,80);
- VersionLabel->set_flags(Gtk::CAN_FOCUS);
- VersionLabel->set_alignment(0.5,0.5);
- VersionLabel->set_padding(0,0);
- VersionLabel->set_justify(Gtk::JUSTIFY_CENTER);
- VersionLabel->set_line_wrap(false);
- VersionLabel->modify_fg(Gtk::STATE_NORMAL,Gdk::Color("black"));
-
- // Set the version label to contain the correct information
- string ver;
- ver+="Version "VERSION" ("__DATE__ /* " "__TIME__ */ ")\n";
- ver+="Using Synfig ";
- ver+=synfig::get_version();
- #ifdef __GNUC__
- ver+=strprintf(" and GNU G++ %d.%d.%d",__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__);
- #endif
-
- ver+=strprintf("\nGtk+ %d.%d.%d",gtk_major_version,gtk_minor_version,gtk_micro_version);
-
- #ifdef _DEBUG
- ver+="\nDEBUG BUILD";
- #endif
- 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);