Mercurial > pidgin.yaz
comparison src/dialogs.c @ 7879:f9df510460d7
[gaim-migrate @ 8533]
Some lot of small changes, mostly to conversation menus.
-Made the alias menu item in chat convo windows work
-Made the add/remove menu items in chat convo windows work.
The menu item still doesn't toggle after you've added or
removed, but I'll probably do that soon
-Made the invite dialog not modal
-Removed GAIM_STOCK_PRIVACY from stock.[c|h] since we're not using it anymore
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 14 Dec 2003 23:59:14 +0000 |
parents | 340df1652af1 |
children | 2014b91db201 |
comparison
equal
deleted
inserted
replaced
7878:cbfbed263d00 | 7879:f9df510460d7 |
---|---|
178 { | 178 { |
179 if (resp == GTK_RESPONSE_OK) | 179 if (resp == GTK_RESPONSE_OK) |
180 serv_warn(w->gc, w->who, (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w->anon))) ? 1 : 0); | 180 serv_warn(w->gc, w->who, (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w->anon))) ? 1 : 0); |
181 | 181 |
182 destroy_dialog(NULL, w->window); | 182 destroy_dialog(NULL, w->window); |
183 g_free(w->who); | |
183 g_free(w); | 184 g_free(w); |
184 } | 185 } |
185 | 186 |
186 void show_warn_dialog(GaimConnection *gc, char *who) | 187 void show_warn_dialog(GaimConnection *gc, const char *who) |
187 { | 188 { |
188 char *labeltext; | 189 char *labeltext; |
189 GtkWidget *hbox, *vbox; | 190 GtkWidget *hbox, *vbox; |
190 GtkWidget *label; | 191 GtkWidget *label; |
191 GtkWidget *img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG); | 192 GtkWidget *img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG); |
192 GaimConversation *c = gaim_find_conversation_with_account(who, gc->account); | 193 GaimConversation *c = gaim_find_conversation_with_account(who, gc->account); |
193 | 194 |
194 struct warning *w = g_new0(struct warning, 1); | 195 struct warning *w = g_new0(struct warning, 1); |
195 w->who = who; | 196 w->who = g_strdup(who); |
196 w->gc = gc; | 197 w->gc = gc; |
197 | 198 |
198 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); | 199 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); |
199 | 200 |
200 w->window = gtk_dialog_new_with_buttons(_("Warn User"), | 201 w->window = gtk_dialog_new_with_buttons(_("Warn User"), |