Skip to content

Commit

Permalink
Rename sci_set_font_fract() to sci_set_font_fractional()
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Aug 9, 2019
1 parent 07c67db commit a5c795f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -4604,7 +4604,7 @@ void editor_set_font(GeanyEditor *editor, const gchar *font)
pango_font_description_free(pfd);

for (style = 0; style <= STYLE_MAX; style++)
sci_set_font_fract(editor->sci, style, font_name, size);
sci_set_font_fractional(editor->sci, style, font_name, size);

g_free(font_name);

Expand Down
4 changes: 2 additions & 2 deletions src/sciwrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ gint sci_find_text(ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf)
* @param style The style.
* @param font The font name.
* @param size The font (fractional) size. */
void sci_set_font_fract(ScintillaObject *sci, gint style, const gchar *font, gdouble size)
void sci_set_font_fractional(ScintillaObject *sci, gint style, const gchar *font, gdouble size)
{
SSM(sci, SCI_STYLESETFONT, (uptr_t) style, (sptr_t) font);

Expand All @@ -960,7 +960,7 @@ void sci_set_font_fract(ScintillaObject *sci, gint style, const gchar *font, gdo
GEANY_API_SYMBOL
void sci_set_font(ScintillaObject *sci, gint style, const gchar *font, gint size)
{
sci_set_font_fract(sci, style, font, size);
sci_set_font_fractional(sci, style, font, size);
}


Expand Down
2 changes: 1 addition & 1 deletion src/sciwrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ gchar sci_get_char_at (ScintillaObject *sci, gint pos);

void sci_scroll_caret (ScintillaObject *sci);
gint sci_find_text (ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf);
void sci_set_font_fract (ScintillaObject *sci, gint style, const gchar *font, gdouble size);
void sci_set_font_fractional (ScintillaObject *sci, gint style, const gchar *font, gdouble size);
void sci_set_font (ScintillaObject *sci, gint style, const gchar *font, gint size);
void sci_goto_line (ScintillaObject *sci, gint line, gboolean unfold);
gint sci_get_style_at (ScintillaObject *sci, gint position);
Expand Down

0 comments on commit a5c795f

Please sign in to comment.