Changeset 3359 for trunk/jons-gtk2-gui
- Timestamp:
- 03/13/03 08:57:55 (6 years ago)
- Files:
-
- 1 modified
-
trunk/jons-gtk2-gui/src/user_info_window.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jons-gtk2-gui/src/user_info_window.cpp
r3348 r3359 96 96 97 97 void 98 list_info_user_uin(GtkWidget *window, unsigned long uin);99 100 void101 98 list_info_user(GtkWidget *window, ICQUser *user) 102 99 { 103 if (user != NULL) 104 list_info_user_uin(window, user->Uin()); 105 else 106 list_info_user_uin(window, 0); 107 } 108 109 void 110 list_info_user_uin(GtkWidget *window, unsigned long uin) 111 { 112 struct info_user *iu = iu_find(uin); 100 gboolean is_o; 101 if (user == 0) { 102 user = gUserManager.FetchOwner(LOCK_R); 103 is_o = TRUE; 104 } 105 else 106 is_o = FALSE; 107 108 struct info_user *iu = iu_find(user->Uin()); 113 109 114 110 if (iu != NULL) { … … 117 113 } 118 114 119 gboolean is_o; 120 121 ICQUser *user; 122 // Check to see if it's for the owner 123 if (uin == 0) { 124 user = gUserManager.FetchOwner(LOCK_R); 125 is_o = TRUE; 126 } 127 else { 128 user = gUserManager.FetchUser(uin, LOCK_R); 129 is_o = FALSE; 130 } 131 132 if (user == NULL) 133 return; 134 135 iu = iu_new(uin); 115 iu = iu_new(user->Uin()); 136 116 /* Take care of the e_tag_data stuff */ 137 117 iu->etag = g_new0(struct e_tag_data, 1); 138 118 139 119 iu->uin = user->Uin(); 140 141 120 142 121 GtkWidget *label; … … 684 663 685 664 gtk_widget_show_all(iu->window); 686 gUserManager.DropUser(user); 665 if (is_o) 666 gUserManager.DropUser(user); 687 667 } 688 668
