Mercurial > pidgin
comparison src/server.c @ 6465:fb64cc87bc96
[gaim-migrate @ 6974]
open_url() is gone forever! WOOHOO! Now we have gaim_notify_uri(). Oh, and
whitespace changes in some files, because they just really bugged me.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Thu, 14 Aug 2003 03:55:13 +0000 |
| parents | ccfdf9f2cdd1 |
| children | 338147ea6896 |
comparison
equal
deleted
inserted
replaced
| 6464:059649ed25ed | 6465:fb64cc87bc96 |
|---|---|
| 1429 g_free(u); | 1429 g_free(u); |
| 1430 } | 1430 } |
| 1431 gtk_widget_destroy(window); | 1431 gtk_widget_destroy(window); |
| 1432 } | 1432 } |
| 1433 | 1433 |
| 1434 static void | |
| 1435 url_clicked_cb(GtkWidget *w, const char *uri) | |
| 1436 { | |
| 1437 gaim_notify_uri(NULL, uri); | |
| 1438 } | |
| 1439 | |
| 1434 void serv_got_popup(const char *msg, const char *u, int wid, int hei) | 1440 void serv_got_popup(const char *msg, const char *u, int wid, int hei) |
| 1435 { | 1441 { |
| 1436 GtkWidget *window; | 1442 GtkWidget *window; |
| 1437 GtkWidget *vbox; | 1443 GtkWidget *vbox; |
| 1438 GtkWidget *sw; | 1444 GtkWidget *sw; |
| 1472 G_CALLBACK(des_popup), window); | 1478 G_CALLBACK(des_popup), window); |
| 1473 | 1479 |
| 1474 button = gaim_pixbuf_button_from_stock(_("More Info"), GTK_STOCK_FIND, GAIM_BUTTON_HORIZONTAL); | 1480 button = gaim_pixbuf_button_from_stock(_("More Info"), GTK_STOCK_FIND, GAIM_BUTTON_HORIZONTAL); |
| 1475 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 5); | 1481 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 5); |
| 1476 g_signal_connect(G_OBJECT(button), "clicked", | 1482 g_signal_connect(G_OBJECT(button), "clicked", |
| 1477 G_CALLBACK(open_url), url); | 1483 G_CALLBACK(url_clicked_cb), url); |
| 1478 | 1484 |
| 1479 gtk_widget_show_all(window); | 1485 gtk_widget_show_all(window); |
| 1480 | 1486 |
| 1481 gtk_imhtml_append_text(GTK_IMHTML(text), msg, -1, GTK_IMHTML_NO_NEWLINE); | 1487 gtk_imhtml_append_text(GTK_IMHTML(text), msg, -1, GTK_IMHTML_NO_NEWLINE); |
| 1482 } | 1488 } |
