2 * Miscellaneous helper functions for GTK.
5 #ifndef PUTTY_GTKMISC_H
6 #define PUTTY_GTKMISC_H
8 int string_width(const char *text);
9 void get_label_text_dimensions(const char *text, int *width, int *height);
11 void align_label_left(GtkLabel *label);
13 GtkWidget *our_dialog_new(void);
14 void our_dialog_add_to_content_area(GtkWindow *dlg, GtkWidget *w,
15 gboolean expand, gboolean fill,
17 void our_dialog_set_action_area(GtkWindow *dlg, GtkWidget *w);
18 GtkBox *our_dialog_make_action_hbox(GtkWindow *dlg);
20 #endif /* PUTTY_GTKMISC_H */