1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00
putty-source/unix/gtkmisc.h
Simon Tatham 49ff9f480e 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!
2015-08-31 15:45:43 +01:00

21 lines
618 B
C

/*
* Miscellaneous helper functions for GTK.
*/
#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,
guint padding);
void our_dialog_set_action_area(GtkWindow *dlg, GtkWidget *w);
GtkBox *our_dialog_make_action_hbox(GtkWindow *dlg);
#endif /* PUTTY_GTKMISC_H */