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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user