Changeset 3359 for trunk/jons-gtk2-gui

Show
Ignore:
Timestamp:
03/13/03 08:57:55 (6 years ago)
Author:
bostjanlah
Message:

Remove the silly helper function

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk2-gui/src/user_info_window.cpp

    r3348 r3359  
    9696 
    9797void 
    98 list_info_user_uin(GtkWidget *window, unsigned long uin); 
    99  
    100 void 
    10198list_info_user(GtkWidget *window, ICQUser *user) 
    10299{ 
    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()); 
    113109 
    114110    if (iu != NULL) { 
     
    117113    } 
    118114 
    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()); 
    136116    /* Take care of the e_tag_data stuff */ 
    137117    iu->etag = g_new0(struct e_tag_data, 1); 
    138118 
    139119  iu->uin = user->Uin(); 
    140  
    141120 
    142121    GtkWidget *label; 
     
    684663 
    685664    gtk_widget_show_all(iu->window); 
    686   gUserManager.DropUser(user); 
     665  if (is_o) 
     666    gUserManager.DropUser(user); 
    687667} 
    688668