1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 20:42:48 -05:00

Avoid deprecated gtk_misc_set_alignment().

As of GTK 3.16 (but not in previous GTK 3 versions), there's a new
gtk_label_set_xalign which does this job.
This commit is contained in:
Simon Tatham
2015-08-31 13:57:34 +01:00
parent 4e243ae9a4
commit 0b5a0c4da1
3 changed files with 21 additions and 6 deletions

View File

@ -151,8 +151,12 @@ void unix_setup_config_box(struct controlbox *b, int midsession, int protocol);
/* gtkcfg.c */
void gtk_setup_config_box(struct controlbox *b, int midsession, void *window);
/* Helper function which happens to be in gtkfont.c at the moment */
/* General GTK helper functions, which could be in any source file and
* it doesn't really matter */
void get_label_text_dimensions(const char *text, int *width, int *height);
#ifdef MAY_REFER_TO_GTK_IN_HEADERS
void align_label_left(GtkLabel *label);
#endif
/*
* In the Unix Unicode layer, DEFAULT_CODEPAGE is a special value