Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 4745:01cae9259e2f
[gaim-migrate @ 5060]
fixes a bug where if all your accounts got logged off, thus making the
buddy list disappear, you could never get it back. That makes for a bad
time when your internet connection goes out (like mine did last night)
also makes some of the prpl tooltips spiffier, and re-does some of the
handling of away messages in jabber, thus making it cooler.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 13 Mar 2003 17:52:21 +0000 |
parents | beffb3109ddb |
children | 85637881b342 |
comparison
equal
deleted
inserted
replaced
4744:a0746ffce599 | 4745:01cae9259e2f |
---|---|
300 /* A link was clicked--we emit the "url_clicked" signal | 300 /* A link was clicked--we emit the "url_clicked" signal |
301 * with the URL as the argument */ | 301 * with the URL as the argument */ |
302 g_signal_emit(arg1, signals[URL_CLICKED], 0, url); | 302 g_signal_emit(arg1, signals[URL_CLICKED], 0, url); |
303 return FALSE; | 303 return FALSE; |
304 } else if(event_button->button == 3) { | 304 } else if(event_button->button == 3) { |
305 GtkWidget *img, *item, *label, *menu; | 305 GtkWidget *img, *item, *menu; |
306 struct url_data *tempdata = g_new(struct url_data, 1); | 306 struct url_data *tempdata = g_new(struct url_data, 1); |
307 tempdata->object = g_object_ref(arg1); | 307 tempdata->object = g_object_ref(arg1); |
308 tempdata->url = g_strdup(url); | 308 tempdata->url = g_strdup(url); |
309 | 309 |
310 menu = gtk_menu_new(); | 310 menu = gtk_menu_new(); |
311 gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, | 311 gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, |
312 event_button->button, event_button->time); | 312 event_button->button, event_button->time); |
313 | 313 |
314 /* buttons and such */ | 314 /* buttons and such */ |
315 img = gtk_image_new_from_stock(GTK_STOCK_COPY, GTK_ICON_SIZE_MENU); | 315 img = gtk_image_new_from_stock(GTK_STOCK_COPY, GTK_ICON_SIZE_MENU); |
316 item = gtk_image_menu_item_new_with_mnemonic(_("_Copy Link Location")); | 316 item = gtk_image_menu_item_new_with_mnemonic(_("_Copy Link Location")); |
317 gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img); | 317 gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img); |
318 g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(url_copy), | 318 g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(url_copy), |
324 gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img); | 324 gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img); |
325 g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(url_open), | 325 g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(url_open), |
326 tempdata); | 326 tempdata); |
327 gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); | 327 gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); |
328 gtk_widget_show_all(menu); | 328 gtk_widget_show_all(menu); |
329 | 329 |
330 return TRUE; | 330 return TRUE; |
331 } | 331 } |
332 } | 332 } |
333 if(event->type == GDK_BUTTON_PRESS && event_button->button == 3) | 333 if(event->type == GDK_BUTTON_PRESS && event_button->button == 3) |
334 return TRUE; /* Clicking the right mouse button on a link shouldn't | 334 return TRUE; /* Clicking the right mouse button on a link shouldn't |