User Tools

Site Tools


client:gdefaults2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
client:gdefaults2 [2018/04/17 20:49]
karl [displaymode] Move the opengl content from gdefaults here
client:gdefaults2 [2018/04/18 05:46]
karl [map_height] Add Range values and where to find the Range and Default values
Line 204: Line 204:
  
 ==== map_height ==== ==== map_height ====
-Range: \\ +Range: ​**11** - **25** ​\\ 
-Default: 25 , until version 1.11.0 ​'15' ​\\+Default: ​**25** , until version 1.11.0 ​"15" ​\\
 Menu Entry: (Old) Client > Configure > Map & Image Options Menu Entry: (Old) Client > Configure > Map & Image Options
  
 +Functions: See //​client/​gtk-v2/​glade/​dialogs.glade//​
 +  * <widget class="​GtkSpinButton"​ id="​config_spinbutton_mapheight">​
 +  * <​property name="​adjustment">​25 11 25 1 0 0</​property>​
 +
 +**Note**: The code in function //​load_defaults()//​ in //​client/​gtk-v2/​src/​config.c//​ still has as frame \\
 +a lower limit of **9** and an upper limit of MAP_MAX_SIZE set. \\
 +MAX_MAP_SIZE is defined in //​client/​common/​client.h//​ as ''#​define MAP_MAX_SIZE 31''​ still in version 1.70.0 of the client. \\
 +The user should be able to use the command line parameter [[optional_parameters#​-mapsize]] to use the full range of "​supported"​ map sizes.
 +
 +<WRAP lo>
 +**Note**: The **old gcfclients2** had an //​client/​gtk-v2/​interface.c//​ file likely made by some GLADE-designer-UI,​ with settings as follows: \\
 +''​gtk_adjustment_new (25, 11, 25, 1, 10, 10);''​ , which according to https://​developer.gnome.org/​gtk2/​stable/​GtkAdjustment.html \\
 +consist of 6 variables (value, lower, upper, step_increment,​ page_increment,​ page_size) . \\
 +The setting of '​10'​ for the “page-size” property seems to limit the upper max value to '​15'​ , since the above gnome.org page says 
 +>The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g. in a GtkSpinButton.
 +Therefore the user would have had the chance to spin from 11 - 15 . \\
 +GTK-2 has changed from version 2.4 to 2.14, and maybe "​fixed"​ the proper handling of "​page_size"​ . \\
 +Between GTK-2 versions 2.4 and 2.13 the code could have worked "​flawlessly"​ .
 +</​WRAP>​
 ==== mapscale ==== ==== mapscale ====
 Range: \\ Range: \\
client/gdefaults2.txt · Last modified: 2018/04/18 05:54 by karl