Mercurial > pidgin.yaz
changeset 1779:0da2a831c0ae
[gaim-migrate @ 1789]
yay. iconaway works like i remember it working. now i'll use it again.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 30 Apr 2001 11:54:59 +0000 |
parents | 9bc21732ba79 |
children | d7cbedd1d651 |
files | plugins/iconaway.c src/away.c |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/iconaway.c Mon Apr 30 11:45:49 2001 +0000 +++ b/plugins/iconaway.c Mon Apr 30 11:54:59 2001 +0000 @@ -8,14 +8,14 @@ extern GtkWidget *imaway; extern GtkWidget *blist; +extern GtkWidget *all_chats; +extern GtkWidget *all_convos; #ifdef USE_APPLET extern void applet_destroy_buddy(); #endif void iconify_windows(struct gaim_connection *gc, char *state, char *message, void *data) { - if (!gc->away) - return; if (!imaway) return; XIconifyWindow(GDK_DISPLAY(), @@ -28,6 +28,14 @@ GDK_WINDOW_XWINDOW(blist->window), ((_XPrivDisplay)GDK_DISPLAY())->default_screen); #endif + if (all_convos) + XIconifyWindow(GDK_DISPLAY(), + GDK_WINDOW_XWINDOW(all_convos->window), + ((_XPrivDisplay)GDK_DISPLAY())->default_screen); + if (all_chats) + XIconifyWindow(GDK_DISPLAY(), + GDK_WINDOW_XWINDOW(all_chats->window), + ((_XPrivDisplay)GDK_DISPLAY())->default_screen); } char *gaim_plugin_init(GModule *h) {
--- a/src/away.c Mon Apr 30 11:45:49 2001 +0000 +++ b/src/away.c Mon Apr 30 11:54:59 2001 +0000 @@ -232,11 +232,11 @@ g_free(qar); } + gtk_widget_show(imaway); buf2 = g_malloc(strlen(awaymessage->message) * 4 + 1); strncpy_withhtml(buf2, awaymessage->message, strlen(awaymessage->message) * 4 + 1); serv_set_away_all(buf2); g_free(buf2); - gtk_widget_show(imaway); } void rem_away_mess(GtkWidget *w, struct away_message *a)