From: dooglus Date: Fri, 31 Aug 2007 08:51:00 +0000 (+0000) Subject: Allow the spacing of the rows in the Timetrack dialog to be specified using environme... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=840a4fe48c135b87e260311390a5f15ce7ace834;p=synfig.git Allow the spacing of the rows in the Timetrack dialog to be specified using environment variables. I use large fonts, which seems to cause the Timetrack rows not to correspond with the PAram dialog rows unless I specify: export SYNFIG_TIMETRACK_ROW_HEIGHT=21 export SYNFIG_TIMETRACK_HEADER_HEIGHT=30 git-svn-id: http://svn.voria.com/code@567 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/dock_timetrack.cpp b/synfig-studio/trunk/src/gtkmm/dock_timetrack.cpp index f444753..fe73d83 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_timetrack.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_timetrack.cpp @@ -349,7 +349,13 @@ public: if(adjustment.get_page_size()>get_height()) adjustment.set_page_size(get_height()); - cellrenderer_time_track->set_fixed_size(-1,18); + int row_height = 0; + if(getenv("SYNFIG_TIMETRACK_ROW_HEIGHT")) + row_height = atoi(getenv("SYNFIG_TIMETRACK_ROW_HEIGHT")); + if (row_height < 3) + row_height = 18; + + cellrenderer_time_track->set_fixed_size(-1,row_height); } } @@ -394,7 +400,14 @@ Dock_Timetrack::Dock_Timetrack(): { table_=0; widget_timeslider_= new Widget_Timeslider(); - widget_timeslider_->set_size_request(-1,22); + + int header_height = 0; + if(getenv("SYNFIG_TIMETRACK_HEADER_HEIGHT")) + header_height = atoi(getenv("SYNFIG_TIMETRACK_HEADER_HEIGHT")); + if (header_height < 3) + header_height = 22; + + widget_timeslider_->set_size_request(-1,header_height); hscrollbar_=new Gtk::HScrollbar(); vscrollbar_=new Gtk::VScrollbar(); }