gtkmisc.h 574 B

1234567891011121314151617181920
  1. /*
  2. * Miscellaneous helper functions for GTK.
  3. */
  4. #ifndef PUTTY_GTKMISC_H
  5. #define PUTTY_GTKMISC_H
  6. int string_width(const char *text);
  7. void get_label_text_dimensions(const char *text, int *width, int *height);
  8. void align_label_left(GtkLabel *label);
  9. GtkWidget *our_dialog_new(void);
  10. void our_dialog_add_to_content_area(GtkWindow *dlg, GtkWidget *w,
  11. bool expand, bool fill, guint padding);
  12. void our_dialog_set_action_area(GtkWindow *dlg, GtkWidget *w);
  13. GtkBox *our_dialog_make_action_hbox(GtkWindow *dlg);
  14. #endif /* PUTTY_GTKMISC_H */