After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 141116 - Zoom to extremes possible on Resource Usage (TTable) view.
Zoom to extremes possible on Resource Usage (TTable) view.
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
unspecified
Other All
: Normal minor
: 0.12
Assigned To: planner-maint
planner-maint
Depends on:
Blocks:
 
 
Reported: 2004-04-26 05:12 UTC by Lincoln Phipps
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lincoln Phipps 2004-04-26 05:12:52 UTC
Zoom not bounded in Resource Usage view. A patch for this exists (as part of
another patch set) if anyone wants the code. Needs to have planner-ttable-view.c
changed to have a new function....

static void	   ttable_view_update_zoom_sensitivity (PlannerView *view);

which is...
static void
ttable_view_update_zoom_sensitivity (PlannerView *view)
{
	gboolean in, out;

	planner_ttable_chart_can_zoom (view->priv->chart,
				 &in,
				 &out);

	bonobo_ui_component_freeze (view->ui_component, NULL);
	
	bonobo_ui_component_set_prop (view->ui_component, 
				      "/commands/ZoomIn",
				      "sensitive", in ? "1" : "0", 
				      NULL);

	bonobo_ui_component_set_prop (view->ui_component, 
				      "/commands/ZoomOut",
				      "sensitive", out ? "1" : "0", 
				      NULL);
	
	bonobo_ui_component_thaw (view->ui_component, NULL);
}

and call this at end of...
activate()
ttable_view_zoom_out_cb()
ttable_view_zoom_in_cb()
ttable_view_zoom_to_fit_cb()


Note that planner_ttable_chart_can_zoom() already exists.
Comment 1 Richard Hult 2004-04-27 17:54:49 UTC
Looks good, thanks.
Comment 2 Richard Hult 2004-05-09 23:36:50 UTC
Fixed in CVS.