[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changing the X display on the fly
I have thought about adding a gtk2 feature in xchat. It's to change the
display on the fly. A friend of mine need this feature so I tried to
implement it. It's very basic for the moment :
static int cmd_gtk_display (struct session *sess, char *tbuf, char *word[],
char *word_eol[])
{
GdkDisplay* display;
GdkScreen* screen;
display = gdk_display_open(word[2]);
screen = gdk_display_get_default_screen(display);
gtk_window_set_screen (GTK_WINDOW (sess->gui->window), screen);
return TRUE;
}
But I cannot find where to put this function. I think I can't put it in a
script because I need the gui.
Can you help me please ?
thanks.
--
Gauthier Monserand
simkim@free.fr
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/