diff console/libgnt/gntwm.h @ 14362:665b814f8fd7

[gaim-migrate @ 17068] Fix the wm to give focus to the buddylist after you toggle it on with alt+b. Draw a line on the right of the buddylist. this should also show how to add other window-decorations. Draw a [X] at the corner of the windows, clicking which closes the windows. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 28 Aug 2006 05:39:42 +0000
parents 0387a167f342
children d4a26ada1971
line wrap: on
line diff
--- a/console/libgnt/gntwm.h	Sun Aug 27 23:04:55 2006 +0000
+++ b/console/libgnt/gntwm.h	Mon Aug 28 05:39:42 2006 +0000
@@ -16,6 +16,10 @@
 	/* This is called when a window is being closed */
 	gboolean (*close_window)(GntWidget *win);
 
+	/* Can del_panel the old panel and return a new_panel.
+	 * Otherwise, this should at least do a replace_panel. */
+	PANEL *(*window_resized)(PANEL *pan, GntWidget *win);
+
 	/* This should usually return NULL if the keys were processed by the WM.
 	 * If not, the WM can simply return the original string, which will be
 	 * processed by the default WM. The custom WM can also return a different
@@ -23,8 +27,7 @@
 	 */
 	const char *(*key_pressed)(const char *key);
 
-	/* Not decided yet */
-	gboolean (*mouse_clicked)(void);
+	gboolean (*mouse_clicked)(GntMouseEvent event, int x, int y, GntWidget *widget);
 
 	/* Whatever the WM wants to do when a window is given focus */
 	void (*give_focus)(GntWidget *widget);