dia r4276 - in trunk: . app
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r4276 - in trunk: . app
- Date: Sat, 14 Feb 2009 22:42:47 +0000 (UTC)
Author: hans
Date: Sat Feb 14 22:42:47 2009
New Revision: 4276
URL: http://svn.gnome.org/viewvc/dia?rev=4276&view=rev
Log:
2009-02-14 Hans Breuer <hans breuer org>
* app/preferences.[ch] app/display.c : allow to configure the initial
mainpoint magnetism, aka. "Snap to Object", bug #571724
Modified:
trunk/ChangeLog
trunk/app/display.c
trunk/app/preferences.c
trunk/app/preferences.h
Modified: trunk/app/display.c
==============================================================================
--- trunk/app/display.c (original)
+++ trunk/app/display.c Sat Feb 14 22:42:47 2009
@@ -293,7 +293,7 @@
ddisp->show_cx_pts = prefs.show_cx_pts;
ddisp->autoscroll = TRUE;
- ddisp->mainpoint_magnetism = TRUE;
+ ddisp->mainpoint_magnetism = prefs.snap_object;
ddisp->aa_renderer = prefs.view_antialised;
Modified: trunk/app/preferences.c
==============================================================================
--- trunk/app/preferences.c (original)
+++ trunk/app/preferences.c Sat Feb 14 22:42:47 2009
@@ -209,6 +209,7 @@
{ NULL, PREF_NONE, 0, NULL, DIA_TAB, N_("Connection Points:") },
{ "show_cx_pts", PREF_BOOLEAN, PREF_OFFSET(show_cx_pts), &default_true, DIA_TAB, N_("Visible") },
+ { "snap_object", PREF_BOOLEAN, PREF_OFFSET(snap_object), &default_true, DIA_TAB, N_("Snap to object") },
{ NULL, PREF_END_GROUP, 0, NULL, DIA_TAB, NULL },
{ NULL, PREF_NONE, 0, NULL, VIEW_TAB, N_("Page breaks:") },
Modified: trunk/app/preferences.h
==============================================================================
--- trunk/app/preferences.h (original)
+++ trunk/app/preferences.h Sat Feb 14 22:42:47 2009
@@ -49,6 +49,7 @@
NewDiagramData new_diagram;
int show_cx_pts;
+ int snap_object; /* mainpoint_magnetism : the whole object is the connection point */
int view_antialised;
int reset_tools_after_create;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]