src/away.c

changeset 338
21c93bc7ae83
parent 230
5afbb3468f11
child 349
6f7d28b0f98d
equal deleted inserted replaced
337:a8e0c72c6b8a 338:21c93bc7ae83
48 } 48 }
49 49
50 void do_im_back(GtkWidget *w, GtkWidget *x) 50 void do_im_back(GtkWidget *w, GtkWidget *x)
51 { 51 {
52 #ifdef USE_APPLET 52 #ifdef USE_APPLET
53 if(!blist) applet_widget_unregister_callback(APPLET_WIDGET(applet),"buddy");
54 applet_widget_unregister_callback(APPLET_WIDGET(applet),"away"); 53 applet_widget_unregister_callback(APPLET_WIDGET(applet),"away");
55 if(!blist) {
56 applet_widget_register_callback(APPLET_WIDGET(applet),
57 "buddy",
58 _("Buddy List"),
59 (AppletCallbackFunc)createOnlinePopup,
60 NULL);
61 }
62 MRI_user_status = online; 54 MRI_user_status = online;
63 insert_applet_away(); 55 insert_applet_away();
64 #endif /* USE_APPLET */ 56 #endif /* USE_APPLET */
65 if (imaway) { 57 if (imaway) {
66 gtk_widget_destroy(imaway); 58 gtk_widget_destroy(imaway);
98 char buf[BUF_LONG]; 90 char buf[BUF_LONG];
99 GList *cnv = conversations; 91 GList *cnv = conversations;
100 struct conversation *c; 92 struct conversation *c;
101 93
102 #ifdef USE_APPLET 94 #ifdef USE_APPLET
103 if(!blist) applet_widget_unregister_callback(APPLET_WIDGET(applet),"buddy");
104 remove_applet_away(); 95 remove_applet_away();
105 if(!blist) applet_widget_register_callback(APPLET_WIDGET(applet),
106 "buddy",
107 _("Buddy List"),
108 (AppletCallbackFunc)createOnlinePopup,
109 NULL);
110 applet_widget_register_callback(APPLET_WIDGET(applet), 96 applet_widget_register_callback(APPLET_WIDGET(applet),
111 "away", 97 "away",
112 _("Back"), 98 _("Back"),
113 (AppletCallbackFunc) do_im_back, 99 (AppletCallbackFunc) do_im_back,
114 NULL); 100 NULL);

mercurial