Implements #3344 
Added a GtkSpinButton in "Notebook tabs" in Interface preferences. 
This will take as input, number of characters that the user wants to display on 
the tab label.
For now, Maximum value that can be entered: 100000
**Default value**: 99999(as suggested by @elextr to be very big number)
Minimum value that can be entered: 3
The value is stored in the variable **tab_label_len** declared in 
GeanyInterfacePrefs struct. This value will be written in **geany.conf** when 
**save_dialog_prefs** of keyfile.c is executed.
The tab label will get updated dynamically on clicking the Apply/Ok button in 
the Preferences dialog.
![Screenshot from 2023-01-04 
11-34-19](https://user-images.githubusercontent.com/96364226/210493983-dcdc886e-63a0-49b2-b0fd-1a46d3cff13e.png)

You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/3365

-- Commit Summary --

  * preference option for display size

-- File Changes --

    M data/geany.glade (50)
    M src/document.c (2)
    M src/keyfile.c (1)
    M src/prefs.c (3)
    M src/ui_utils.c (2)
    M src/ui_utils.h (2)

-- Patch Links --

https://github.com/geany/geany/pull/3365.patch
https://github.com/geany/geany/pull/3365.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3365
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/[email protected]>

Reply via email to