X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-studio%2Ftags%2Fstable%2Fsrc%2Fgtkmm%2Fabout.cpp;h=656a87140acb42c4c50c242958dca335cf92df94;hb=a42ee14a3397a3fbb31d14e6eece4236620ae2db;hp=6c487a7a5c00ed483ef2afb7fcc95d5647c094c6;hpb=f6184c2a9c2245aae802c31c8f3300e1b744359c;p=synfig.git diff --git a/synfig-studio/tags/stable/src/gtkmm/about.cpp b/synfig-studio/tags/stable/src/gtkmm/about.cpp index 6c487a7..656a871 100644 --- a/synfig-studio/tags/stable/src/gtkmm/about.cpp +++ b/synfig-studio/tags/stable/src/gtkmm/about.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -158,25 +159,25 @@ public: /* === M E T H O D S ======================================================= */ About::About(): - Gtk::Window(Gtk::WINDOW_POPUP), + Gtk::Window(getenv("SYNFIG_DISABLE_POPUP_WINDOWS") ? Gtk::WINDOW_TOPLEVEL : Gtk::WINDOW_POPUP), can_self_destruct(true) { int image_w=300,image_h=350; std::string imagepath; #ifdef WIN32 - imagepath=App::get_base_path()+ETL_DIRECTORY_SEPERATOR+IMAGE_DIR; + imagepath=App::get_base_path()+ETL_DIRECTORY_SEPARATOR+IMAGE_DIR; #else imagepath=IMAGE_DIR; #endif char* synfig_root=getenv("SYNFIG_ROOT"); if(synfig_root) { imagepath=synfig_root; - imagepath+=ETL_DIRECTORY_SEPERATOR; + imagepath+=ETL_DIRECTORY_SEPARATOR; imagepath+="share/pixmaps"; } - imagepath+=ETL_DIRECTORY_SEPERATOR; + imagepath+=ETL_DIRECTORY_SEPARATOR; // Create the Logo @@ -203,7 +204,7 @@ About::About(): Pango::FontDescription fd = Pango::FontDescription("Sans, 11"); l->set_font_description(fd); l->set_justify(Pango::ALIGN_CENTER); - fd.set_size(size*Pango::SCALE); + fd.set_size(int(size*Pango::SCALE)); l->set_font_description(fd); l->get_pixel_size(width,height); while( width >= image_w-6 ){ @@ -248,7 +249,7 @@ About::About(): fd = Pango::FontDescription("Sans, 11"); l->set_font_description(fd); l->set_justify(Pango::ALIGN_CENTER); - fd.set_size(size*Pango::SCALE); + fd.set_size(int(size*Pango::SCALE)); l->set_font_description(fd); l->get_pixel_size(width,height); while( width >= image_w-6 ){