Mercurial > pidgin.yaz
changeset 171:789c792ed14b
[gaim-migrate @ 181]
Let people know about --enable-plugins, made it so the Lag-O-Meter was doing
its thing only when it was on, and something else. Don't ask me what, I don't
remember.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 25 Apr 2000 04:29:04 +0000 |
parents | e67c56a07f52 |
children | 450d62d40185 |
files | README.plugins src/prefs.c src/server.c |
diffstat | 3 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/README.plugins Mon Apr 24 22:02:55 2000 +0000 +++ b/README.plugins Tue Apr 25 04:29:04 2000 +0000 @@ -5,6 +5,11 @@ go on. We'll continue developing them in our free time but we ask you to do the same. If you have any suggestions for them, let us know. +To make it so that gaim can use plugins, instead of plain ol' ./configure, +give it the option --enable-plugins. Then all kinds of good things will be +added, like buttons to let you actually load the plugins and things like +that. + Currently, they are not compiled when you perform a make and make install. If you wish to make use of the gaim plugins, enter the directory where you untarred gaim/plugins and type: 'make'. Copy the resulting .so files to
--- a/src/prefs.c Mon Apr 24 22:02:55 2000 +0000 +++ b/src/prefs.c Tue Apr 25 04:29:04 2000 +0000 @@ -50,6 +50,7 @@ void list_clicked( GtkWidget *widget, struct away_message *a); void list_unclicked( GtkWidget *widget, struct away_message *a); +void show_debug(GtkObject *); void remove_away_message(GtkWidget *widget, void *dummy) { @@ -153,9 +154,12 @@ static gint debug_delete(GtkWidget *w, GdkEvent *event, void *dummy) { - if(debugbutton && (general_options & OPT_GEN_DEBUG)) + if (debugbutton) + gtk_button_clicked(GTK_BUTTON(debugbutton)); + if (general_options & OPT_GEN_DEBUG) { - gtk_button_clicked(GTK_BUTTON(debugbutton)); + general_options = general_options ^ (int)OPT_GEN_DEBUG; + save_prefs(); } g_free(dw); dw=NULL; @@ -411,7 +415,7 @@ gtk_widget_show(idleframe); -// gtk_signal_connect_object( GTK_OBJECT(debugbutton), "clicked", GTK_SIGNAL_FUNC(show_debug), NULL); + gtk_signal_connect_object( GTK_OBJECT(debugbutton), "clicked", GTK_SIGNAL_FUNC(show_debug), NULL); /* Connection */ @@ -1053,6 +1057,7 @@ build_debug(); gtk_widget_show(dw->window); } else { + if (!dw) return; gtk_widget_destroy(dw->window); dw->window = NULL; }
--- a/src/server.c Mon Apr 24 22:02:55 2000 +0000 +++ b/src/server.c Tue Apr 25 04:29:04 2000 +0000 @@ -82,7 +82,7 @@ time(&t); gettimeofday(&lag_tv, NULL); - if (!(general_options & OPT_GEN_SHOW_LAGMETER)) + if (general_options & OPT_GEN_SHOW_LAGMETER) serv_send_im(current_user->username, LAGOMETER_STR, 0); if (report_idle != IDLE_GAIM) @@ -488,9 +488,7 @@ nname = g_strdup(normalize(name)); - if (!strcasecmp(normalize(name), nname)) { - if (!(general_options & OPT_GEN_SHOW_LAGMETER)) - { + if (!strcasecmp(normalize(current_user->username), nname)) { if (!strcmp(message, LAGOMETER_STR)) { struct timeval tv; int ms; @@ -506,7 +504,6 @@ return; } } - } g_free(nname); cnv = find_conversation(name);