Mercurial > pidgin.yaz
changeset 1689:09017c023fcd
[gaim-migrate @ 1699]
do i really want it like this?
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 07 Apr 2001 07:57:14 +0000 |
parents | 85d8c64e969d |
children | 6f136add1ef3 |
files | src/applet.c src/applet.h |
diffstat | 2 files changed, 6 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/src/applet.c Fri Apr 06 19:10:28 2001 +0000 +++ b/src/applet.c Sat Apr 07 07:57:14 2001 +0000 @@ -43,7 +43,6 @@ GtkWidget *applet; GtkWidget *appletframe; -GtkWidget *status_label; GtkWidget *icon; GdkPixmap *icon_offline_pm=NULL; @@ -109,19 +108,16 @@ gtk_pixmap_set( GTK_PIXMAP(icon), icon_connect_pm, icon_connect_bm ); - gtk_label_set( GTK_LABEL(status_label), _MSG_CONNECT_ ); applet_set_tooltips(_("Attempting to sign on....")); } else if (!connections) { gtk_pixmap_set( GTK_PIXMAP(icon), icon_offline_pm, icon_offline_bm ); - gtk_label_set( GTK_LABEL(status_label), _MSG_OFFLINE_ ); applet_set_tooltips(_("Offilne. Click to bring up login box.")); } else if (!awaymessage) { gtk_pixmap_set( GTK_PIXMAP(icon), icon_online_pm, icon_online_bm ); - gtk_label_set( GTK_LABEL(status_label), _MSG_ONLINE_ ); g_snprintf(buf, sizeof buf, "Online: "); while (c) { strcat(buf, ((struct gaim_connection *)c->data)->username); @@ -133,18 +129,17 @@ gtk_pixmap_set( GTK_PIXMAP(icon), icon_online_pm, icon_online_bm ); - gtk_label_set( GTK_LABEL(status_label), _("Away") ); } return TRUE; } void update_pixmaps() { - load_applet_icon( GAIM_GNOME_OFFLINE_ICON, (sizehint-16), (sizehint-12), + load_applet_icon( GAIM_GNOME_OFFLINE_ICON, (sizehint-1), (sizehint-1), &icon_offline_pm, &icon_offline_bm ); - load_applet_icon( GAIM_GNOME_CONNECT_ICON, (sizehint-16), (sizehint-12), + load_applet_icon( GAIM_GNOME_CONNECT_ICON, (sizehint-1), (sizehint-1), &icon_connect_pm, &icon_connect_bm ); - load_applet_icon( GAIM_GNOME_ONLINE_ICON, (sizehint-16), (sizehint-12), + load_applet_icon( GAIM_GNOME_ONLINE_ICON, (sizehint-1), (sizehint-1), &icon_online_pm, &icon_online_bm ); update_applet(); gtk_widget_set_usize(appletframe, sizehint, sizehint); @@ -319,6 +314,7 @@ GDK_BUTTON_PRESS_MASK); appletframe = gtk_frame_new(NULL); + gtk_frame_set_shadow_type(GTK_FRAME(appletframe), GTK_SHADOW_NONE); #ifdef HAVE_PANEL_PIXEL_SIZE gtk_widget_set_usize(appletframe, 5, 5); #else @@ -345,29 +341,11 @@ gtk_box_pack_start(GTK_BOX(vbox), icon, FALSE, TRUE, 0); - status_label = gtk_label_new(_("Offline")); - update_applet(); - /*set this label's font*/ - label_style = gtk_widget_get_style( status_label ); - - label_font = gdk_font_load( _MSG_FONT_ ); - - - if( label_font != NULL ){ - label_style->font = label_font; - gtk_widget_set_style( status_label, label_style ); - } else { - debug_printf(_("Font does not exist") ); - } - - gtk_box_pack_start(GTK_BOX(vbox), status_label, FALSE, TRUE, 0); - gtk_container_add( GTK_CONTAINER(appletframe), vbox ); applet_widget_add(APPLET_WIDGET(applet), appletframe); - gtk_widget_show( status_label ); gtk_widget_show( vbox ); gtk_widget_show( appletframe );
--- a/src/applet.h Fri Apr 06 19:10:28 2001 +0000 +++ b/src/applet.h Sat Apr 07 07:57:14 2001 +0000 @@ -48,10 +48,12 @@ }; +/* #define _MSG_OFFLINE_ "Offline" #define _MSG_CONNECT_ "Connecting" #define _MSG_ONLINE_ "Online" #define _MSG_FONT_ "-*-helvetica-medium-r-*-*-*-80-*-*-*-*-*-*" +*/ #define GAIM_GNOME_DEVIL_OFFLINE "gaim/gnome/devil-offline.png" #define GAIM_GNOME_DEVIL_CONNECT "gaim/gnome/devil-connect.png"