1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Move more functions into the new gtkmisc.c.

Several utility functions I've written over the last few weeks were in
rather random places because I didn't have a central gtkmisc.c to put
them in. Now I've got one, put them there!
This commit is contained in:
Simon Tatham
2015-08-31 15:44:24 +01:00
parent dc11417aee
commit 49ff9f480e
6 changed files with 59 additions and 64 deletions

View File

@ -5,6 +5,11 @@
#ifndef PUTTY_GTKMISC_H
#define PUTTY_GTKMISC_H
int string_width(const char *text);
void get_label_text_dimensions(const char *text, int *width, int *height);
void align_label_left(GtkLabel *label);
GtkWidget *our_dialog_new(void);
void our_dialog_add_to_content_area(GtkWindow *dlg, GtkWidget *w,
gboolean expand, gboolean fill,