Changeset 2130 for trunk/jons-gtk-gui

Show
Ignore:
Timestamp:
07/12/00 12:31:56 (8 years ago)
Author:
emojon
Message:

Added 3 icons.. Secure On, Birthday, and the two put together due to a
limitation of having more than one pixmap in a gtk_clist_set_pixtext(...);

Location:
trunk/jons-gtk-gui/src
Files:
3 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk-gui/src/contact_list.cpp

    r2128 r2130  
    3030GdkColor *red, *blue, *online_color, *offline_color, *away_color; 
    3131struct status_icon *online, *offline, *away, *na, *dnd, *occ, *ffc, 
    32     *invisible, *message_icon, *file_icon, *chat_icon, *url_icon; 
     32    *invisible, *message_icon, *file_icon, *chat_icon, *url_icon, 
     33    *secure_icon, *birthday_icon, *securebday_icon; 
    3334 
    3435GtkWidget *contact_list_new(gint height, gint width) 
     
    6869    /* Don't update the clist window, so we can update all the users */ 
    6970    gtk_clist_freeze(GTK_CLIST(contact_list)); 
    70  
    71 //  do_colors();    /* Make the colors */ 
    72 //  do_pixmaps();   /* Make the pixmap */ 
    7371 
    7472    blah[0] = ""; 
     
    230228        } // else 
    231229 
    232         gtk_clist_set_text(GTK_CLIST(contact_list), num_users, 
     230        if(pUser->Secure() && (pUser->Birthday() == 0)) 
     231        { 
     232            gtk_clist_set_pixtext(GTK_CLIST(contact_list), 
     233                num_users, 2, pUser->GetAlias(), 4, 
     234                securebday_icon->pm, securebday_icon->bm); 
     235        } 
     236        else if(pUser->Secure()) 
     237        { 
     238            gtk_clist_set_pixtext(GTK_CLIST(contact_list), 
     239                num_users, 2, pUser->GetAlias(), 4, 
     240                secure_icon->pm, secure_icon->bm); 
     241        } 
     242        else if(pUser->Birthday() == 0) 
     243        { 
     244            gtk_clist_set_pixtext(GTK_CLIST(contact_list), 
     245                num_users, 2, pUser->GetAlias(), 4, 
     246                birthday_icon->pm, birthday_icon->bm); 
     247        } 
     248        else 
     249        { 
     250            gtk_clist_set_text(GTK_CLIST(contact_list), num_users, 
    233251                      2, pUser->GetAlias()); 
     252        } 
    234253 
    235254        gtk_clist_set_row_data(GTK_CLIST(contact_list),  
  • trunk/jons-gtk-gui/src/extras.cpp

    r2128 r2130  
    3333#include "pixmaps/chat.xpm" 
    3434#include "pixmaps/url.xpm" 
     35#include "pixmaps/secure_on.xpm" 
     36#include "pixmaps/birthday.xpm" 
     37#include "pixmaps/securebday.xpm" 
    3538 
    3639#include "licq_countrycodes.h" 
     
    7376    file_icon = make_pixmap(file_icon, (gchar **)file_xpm); 
    7477    chat_icon = make_pixmap(chat_icon, (gchar **)chat_xpm); 
     78    secure_icon = make_pixmap(secure_icon, (gchar **)secure_on_xpm); 
     79    birthday_icon = make_pixmap(birthday_icon, (gchar **)birthday_xpm); 
     80    securebday_icon = make_pixmap(securebday_icon, (gchar **)securebday_xpm); 
    7581} 
    7682 
  • trunk/jons-gtk-gui/src/licq_gtk.h

    r2128 r2130  
    384384extern GdkColor *red, *blue, *online_color, *offline_color, *away_color; 
    385385extern struct status_icon *online, *away, *na, *dnd, *occ, *offline, *ffc, 
    386     *invisible, *message_icon, *file_icon, *chat_icon, *url_icon; 
     386    *invisible, *message_icon, *file_icon, *chat_icon, *url_icon, 
     387    *secure_icon, *birthday_icon, *securebday_icon; 
    387388 
    388389/* Globals in chat_window.cpp */