Mercurial > pidgin.yaz
comparison src/dialogs.c @ 2851:6eb5bf5089f0
[gaim-migrate @ 2864]
runnin' around robbin' banks all wacked out on scooby snacks!
i actually don't like that song except for that one line.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 05 Dec 2001 19:40:06 +0000 |
parents | 51999a36c0b1 |
children | b1e300a85678 |
comparison
equal
deleted
inserted
replaced
2850:cbe6a1e63a72 | 2851:6eb5bf5089f0 |
---|---|
40 | 40 |
41 #include <gtk/gtk.h> | 41 #include <gtk/gtk.h> |
42 #include "gaim.h" | 42 #include "gaim.h" |
43 #include "gtkimhtml.h" | 43 #include "gtkimhtml.h" |
44 #include "prpl.h" | 44 #include "prpl.h" |
45 #ifdef USE_APPLET | |
46 #include "applet.h" | |
47 #endif | |
45 | 48 |
46 #include "pixmaps/gnome_preferences.xpm" | 49 #include "pixmaps/gnome_preferences.xpm" |
47 #include "pixmaps/cancel.xpm" | 50 #include "pixmaps/cancel.xpm" |
48 #include "pixmaps/save.xpm" | 51 #include "pixmaps/save.xpm" |
49 #include "pixmaps/ok.xpm" | 52 #include "pixmaps/ok.xpm" |
2910 guint text_len; | 2913 guint text_len; |
2911 gchar *away_message; | 2914 gchar *away_message; |
2912 | 2915 |
2913 if (!ca->mess) | 2916 if (!ca->mess) |
2914 am = g_new0(struct away_message, 1); | 2917 am = g_new0(struct away_message, 1); |
2915 else | 2918 else { |
2919 #ifdef USE_APPLET | |
2920 char *awayname = g_strdup_printf("away/%s", ca->mess->name); | |
2921 applet_widget_unregister_callback(APPLET_WIDGET(applet), awayname); | |
2922 g_free(awayname); | |
2923 #endif | |
2916 am = ca->mess; | 2924 am = ca->mess; |
2925 } | |
2917 | 2926 |
2918 g_snprintf(am->name, sizeof(am->name), "%s", gtk_entry_get_text(GTK_ENTRY(ca->entry))); | 2927 g_snprintf(am->name, sizeof(am->name), "%s", gtk_entry_get_text(GTK_ENTRY(ca->entry))); |
2919 text_len = gtk_text_get_length(GTK_TEXT(ca->text)); | 2928 text_len = gtk_text_get_length(GTK_TEXT(ca->text)); |
2920 away_message = gtk_editable_get_chars(GTK_EDITABLE(ca->text), 0, text_len); | 2929 away_message = gtk_editable_get_chars(GTK_EDITABLE(ca->text), 0, text_len); |
2921 | 2930 |