Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv22320/src
Modified Files:
about.c buddy.c ui.h
Log Message:
The Robot101 commit.
A toc fix (don't use toc) and the possibility to compile iconaway.c on an
applet and use it on the standalone app.
Index: about.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/about.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- about.c 3 Mar 2002 05:44:32 -0000 1.65
+++ about.c 27 Apr 2002 19:41:06 -0000 1.66
@@ -69,6 +69,15 @@
return VERSION;
}
+gboolean is_applet()
+{
+#ifdef USE_APPLET
+ return TRUE;
+#else
+ return FALSE;
+#endif
+}
+
void show_about(GtkWidget *w, void *null)
{
GtkWidget *vbox;
Index: buddy.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/buddy.c,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- buddy.c 20 Apr 2002 08:10:12 -0000 1.306
+++ buddy.c 27 Apr 2002 19:41:06 -0000 1.307
@@ -1986,6 +1986,16 @@
return g;
}
+void hide_buddy_list() {
+ #ifdef USE_APPLET
+ applet_destroy_buddy();
+#else
+ XIconifyWindow(GDK_DISPLAY(),
+ GDK_WINDOW_XWINDOW(blist->window),
+ ((_XPrivDisplay)GDK_DISPLAY())->default_screen);
+#endif
+}
+
static gint log_timeout(struct buddy_show *b)
{
/* this part is really just a bad hack because of a bug I can't find */
Index: ui.h
===================================================================
RCS file: /cvsroot/gaim/gaim/src/ui.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- ui.h 20 Apr 2002 08:10:13 -0000 1.35
+++ ui.h 27 Apr 2002 19:41:07 -0000 1.36
@@ -349,6 +349,7 @@
extern void gaim_separator(GtkWidget *);
extern void redo_buddy_list(); /* you really shouldn't call this function */
extern void set_blist_tab();
+extern void hide_buddy_list();
/* Functions in buddy_chat.c */
extern void join_chat();
|