1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

No, I tell a lie: GTK 1 _does_ support icons, at least partially. Ooh.

[originally from svn r7064]
This commit is contained in:
Simon Tatham
2007-01-06 18:27:00 +00:00
parent a8bdd536c8
commit 334ef0824c
6 changed files with 635 additions and 0 deletions

View File

@ -2216,6 +2216,16 @@ int do_config_box(const char *title, Config *cfg, int midsession,
dp.retval = 0;
dp.window = window;
{
/* in gtkwin.c */
extern void set_window_icon(GtkWidget *window,
const char *const *const *icon,
int n_icon);
extern const char *const *const cfg_icon[];
extern const int n_cfg_icon;
set_window_icon(window, cfg_icon, n_cfg_icon);
}
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_widget_show(window);