Skip to content

Commit 0d4237a

Browse files
committed
drop deprecated allow-bold setting
Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent 129370a commit 0d4237a

File tree

5 files changed

+18
-44
lines changed

5 files changed

+18
-44
lines changed

NEWS

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
NEW in 27 (???)
2+
=============
3+
4+
- Don't use depreated vte allow-bold api
5+
16
NEW in 26 (07/10/2019)
27
=============
38

data/gsettings/org.gnome.Germinal.gschema.xml.in

-8
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@
9090
</description>
9191
</key>
9292

93-
<key name="allow-bold" type="b">
94-
<default>true</default>
95-
<summary>Allow printing in bold</summary>
96-
<description>
97-
By default, we allow it
98-
</description>
99-
</key>
100-
10193
<key name="decorated" type="b">
10294
<default>false</default>
10395
<summary>Display window decoration</summary>

po/fr.po

+13-21
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Germinal\n"
99
"Report-Msgid-Bugs-To: [email protected]\n"
10-
"POT-Creation-Date: 2019-10-07 14:00+0200\n"
10+
"POT-Creation-Date: 2020-03-24 21:03+0100\n"
1111
"PO-Revision-Date: 2011-09-23 16:05+0100\n"
1212
"Last-Translator: Marc-Antoine Perennou <[email protected]>\n"
1313
"Language-Team: French\n"
@@ -17,47 +17,47 @@ msgstr ""
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
1919

20-
#: src/germinal/germinal.c:499
20+
#: src/germinal/germinal.c:487
2121
msgid "Copy url"
2222
msgstr "Copier la cible du lien"
2323

24-
#: src/germinal/germinal.c:500
24+
#: src/germinal/germinal.c:488
2525
msgid "Open url"
2626
msgstr "Suivre le lien"
2727

28-
#: src/germinal/germinal.c:504
28+
#: src/germinal/germinal.c:492
2929
msgid "Copy"
3030
msgstr "Copier"
3131

32-
#: src/germinal/germinal.c:505
32+
#: src/germinal/germinal.c:493
3333
msgid "Copy as HTML"
3434
msgstr "Copier en tant que HTML"
3535

36-
#: src/germinal/germinal.c:506
36+
#: src/germinal/germinal.c:494
3737
msgid "Paste"
3838
msgstr "Coller"
3939

40-
#: src/germinal/germinal.c:510
40+
#: src/germinal/germinal.c:498
4141
msgid "Zoom"
4242
msgstr "Zoomer"
4343

44-
#: src/germinal/germinal.c:511
44+
#: src/germinal/germinal.c:499
4545
msgid "Dezoom"
4646
msgstr "Dézoomzer"
4747

48-
#: src/germinal/germinal.c:512
48+
#: src/germinal/germinal.c:500
4949
msgid "Reset zoom"
5050
msgstr "Restaurer zoom"
5151

52-
#: src/germinal/germinal.c:516
52+
#: src/germinal/germinal.c:504
5353
msgid "Quit"
5454
msgstr "Quitter"
5555

56-
#: src/germinal/germinal.c:610
56+
#: src/germinal/germinal.c:597
5757
msgid "display the version"
5858
msgstr "afficher la version"
5959

60-
#: src/germinal/germinal.c:611
60+
#: src/germinal/germinal.c:598
6161
msgid "the command to launch"
6262
msgstr "la commande à lancer"
6363

@@ -165,17 +165,9 @@ msgid "By default, we disable it"
165165
msgstr "Par défault, on le désactive"
166166

167167
#: data/gsettings/org.gnome.Germinal.gschema.xml.in:95
168-
msgid "Allow printing in bold"
169-
msgstr "Accepter d'afficher du gras"
170-
171-
#: data/gsettings/org.gnome.Germinal.gschema.xml.in:96
172-
msgid "By default, we allow it"
173-
msgstr "Par défault, on l'accepte"
174-
175-
#: data/gsettings/org.gnome.Germinal.gschema.xml.in:103
176168
msgid "Display window decoration"
177169
msgstr "Afficher la décoration de fenêtre"
178170

179-
#: data/gsettings/org.gnome.Germinal.gschema.xml.in:104
171+
#: data/gsettings/org.gnome.Germinal.gschema.xml.in:96
180172
msgid "By default, we hide it"
181173
msgstr "Par défault, on la cache"

src/germinal/germinal-util.h

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ G_BEGIN_DECLS
3535

3636
/* Settings keys */
3737
#define AUDIBLE_BELL_KEY "audible-bell"
38-
#define ALLOW_BOLD_KEY "allow-bold"
3938
#define BACKCOLOR_KEY "backcolor"
4039
#define DECORATED_KEY "decorated"
4140
#define FONT_KEY "font"

src/germinal/germinal.c

-14
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,6 @@ update_bell (GSettings *settings,
320320
vte_terminal_set_audible_bell (term, bell);
321321
}
322322

323-
static void
324-
update_allow_bold (GSettings *settings,
325-
const gchar *key,
326-
gpointer user_data)
327-
{
328-
gboolean allow_bold = g_settings_get_boolean (settings, key);
329-
VteTerminal *term = user_data;
330-
331-
vte_terminal_set_allow_bold (term, allow_bold);
332-
}
333-
334323
static void
335324
update_decorated (GSettings *settings,
336325
const gchar *key,
@@ -461,7 +450,6 @@ germinal_create_window (GApplication *application,
461450
GSettings *settings = g_object_get_data (G_OBJECT (application), "germinal-settings");
462451

463452
update_bell (settings, AUDIBLE_BELL_KEY, terminal);
464-
update_allow_bold (settings, ALLOW_BOLD_KEY, terminal);
465453
update_decorated (settings, DECORATED_KEY, terminal);
466454
update_colors (settings, NULL, terminal);
467455
update_font (settings, FONT_KEY, terminal);
@@ -565,7 +553,6 @@ germinal_windows_foreach (GtkApplication *application,
565553
}
566554

567555
SETTING_UPDATE_FUNC (bell);
568-
SETTING_UPDATE_FUNC (allow_bold);
569556
SETTING_UPDATE_FUNC (colors);
570557
SETTING_UPDATE_FUNC (decorated);
571558
SETTING_UPDATE_FUNC (font);
@@ -617,7 +604,6 @@ main (gint argc,
617604
g_autoptr (GSettings) settings = germinal_settings_new ();
618605

619606
SETTING_SIGNAL (AUDIBLE_BELL, bell);
620-
SETTING_SIGNAL (ALLOW_BOLD, allow_bold);
621607
SETTING_SIGNAL (BACKCOLOR, colors);
622608
SETTING_SIGNAL (FORECOLOR, colors);
623609
SETTING_SIGNAL (PALETTE, colors);

0 commit comments

Comments
 (0)