Changeset 2139 for trunk/jons-gtk-gui
- Timestamp:
- 07/13/00 13:10:28 (8 years ago)
- Location:
- trunk/jons-gtk-gui/src
- Files:
-
- 3 modified
-
contact_list.cpp (modified) (4 diffs)
-
licq_gtk.h (modified) (1 diff)
-
more_window.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jons-gtk-gui/src/contact_list.cpp
r2130 r2139 27 27 #include <gtk/gtk.h> 28 28 #include <sys/time.h> 29 #include <list.h> 29 30 30 31 GdkColor *red, *blue, *online_color, *offline_color, *away_color; … … 32 33 *invisible, *message_icon, *file_icon, *chat_icon, *url_icon, 33 34 *secure_icon, *birthday_icon, *securebday_icon; 35 36 list<unsigned long> AutoSecureList; 34 37 35 38 GtkWidget *contact_list_new(gint height, gint width) … … 228 231 } // else 229 232 233 // See if they are not offline and want to be auto secured 234 if(pUser->AutoSecure()) 235 { 236 // Ok, now *can* they be auto secured? 237 if((pUser->SecureChannelSupport() == SECURE_CHANNEL_SUPPORTED) && !pUser->Secure()) 238 AutoSecureList.push_back(pUser->Uin()); 239 //icq_daemon->icqOpenSecureChannel(_uin); 240 } 241 230 242 if(pUser->Secure() && (pUser->Birthday() == 0)) 231 243 { … … 259 271 } 260 272 FOR_EACH_USER_END 273 274 // Now do the auto secure stuff 275 list<unsigned long>::iterator it; 276 for(it = AutoSecureList.begin(); it != AutoSecureList.end(); it++) 277 { 278 icq_daemon->icqOpenSecureChannel(*it); 279 } 280 281 AutoSecureList.clear(); 261 282 262 283 gtk_clist_set_compare_func(GTK_CLIST(contact_list), NULL); -
trunk/jons-gtk-gui/src/licq_gtk.h
r2130 r2139 157 157 GtkWidget *autochat; 158 158 GtkWidget *autofile; 159 GtkWidget *autosecure; 159 160 GtkWidget *realip; 160 161 GtkWidget *visible; -
trunk/jons-gtk-gui/src/more_window.cpp
r2095 r2139 71 71 mw->user->OnlineNotify()); 72 72 73 // Auto accept chat and file 73 // Auto accept chat and file and auto secure 74 74 mw->autochat = gtk_check_button_new_with_label("Auto Accept Chat"); 75 75 mw->autofile = gtk_check_button_new_with_label("Auto Accept File"); 76 mw->autosecure = gtk_check_button_new_with_label("Auto Request Secure"); 76 77 77 78 // Set the state of the auto accept buttons … … 80 81 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mw->autofile), 81 82 mw->user->AutoFileAccept()); 83 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mw->autosecure), 84 mw->user->AutoSecure()); 82 85 83 86 mw->realip = gtk_check_button_new_with_label("Use Real IP (LAN)"); … … 98 101 gtk_box_pack_start(GTK_BOX(general_box), mw->autochat, FALSE, FALSE, 5); 99 102 gtk_box_pack_start(GTK_BOX(general_box), mw->autofile, FALSE, FALSE, 5); 103 gtk_box_pack_start(GTK_BOX(general_box), mw->autosecure, FALSE, FALSE, 5); 100 104 gtk_box_pack_start(GTK_BOX(general_box), mw->realip, FALSE, FALSE, 5); 101 105 gtk_box_pack_start(GTK_BOX(general_box), mw->ignore, FALSE, FALSE, 5); … … 281 285 gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(mw->autofile))); 282 286 287 mw->user->SetAutoSecure( 288 gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(mw->autosecure))); 283 289 mw->user->SetSendRealIp( 284 290 gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(mw->realip)));
