Mercurial > pidgin.yaz
comparison gtk/gtknotify.c @ 14224:ab8a105eff62
[gaim-migrate @ 16905]
First step of getting wingaim working again.
libgaim and gtk are compiling.
The protocols aren't compiling yet.
There are a number of things that are compiling, but should be cleaned up.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 20 Aug 2006 16:49:37 +0000 |
parents | 009db0b357b5 |
children | 333989477bcd |
comparison
equal
deleted
inserted
replaced
14223:7c560c01b8f9 | 14224:ab8a105eff62 |
---|---|
36 #include "gtkblist.h" | 36 #include "gtkblist.h" |
37 #include "gtkimhtml.h" | 37 #include "gtkimhtml.h" |
38 #include "gtknotify.h" | 38 #include "gtknotify.h" |
39 #include "gtkutils.h" | 39 #include "gtkutils.h" |
40 | 40 |
41 #ifdef _WIN32 | |
42 # include "gtkwin32dep.h" | |
43 #endif | |
44 | |
41 typedef struct | 45 typedef struct |
42 { | 46 { |
43 GaimConnection *gc; | 47 GaimConnection *gc; |
44 char *url; | 48 char *url; |
45 GtkWidget *label; | 49 GtkWidget *label; |
114 GtkTreeIter iter; | 118 GtkTreeIter iter; |
115 | 119 |
116 if (id == GTK_RESPONSE_YES) | 120 if (id == GTK_RESPONSE_YES) |
117 { | 121 { |
118 GtkTreeSelection *selection; | 122 GtkTreeSelection *selection; |
119 | 123 |
120 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); | 124 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); |
121 | 125 |
122 if (gtk_tree_selection_get_selected(selection, NULL, &iter)) | 126 if (gtk_tree_selection_get_selected(selection, NULL, &iter)) |
123 { | 127 { |
124 gtk_tree_model_get(GTK_TREE_MODEL(dialog->treemodel), &iter, | 128 gtk_tree_model_get(GTK_TREE_MODEL(dialog->treemodel), &iter, |
760 | 764 |
761 gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(treeview), -1, | 765 gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(treeview), -1, |
762 gaim_notify_searchresults_column_get_title(results, i-1), | 766 gaim_notify_searchresults_column_get_title(results, i-1), |
763 renderer, "text", i, NULL); | 767 renderer, "text", i, NULL); |
764 } | 768 } |
765 | 769 |
766 /* Setup the button area */ | 770 /* Setup the button area */ |
767 button_area = gtk_hbutton_box_new(); | 771 button_area = gtk_hbutton_box_new(); |
768 gtk_box_pack_start(GTK_BOX(vbox), button_area, FALSE, FALSE, 0); | 772 gtk_box_pack_start(GTK_BOX(vbox), button_area, FALSE, FALSE, 0); |
769 gtk_button_box_set_layout(GTK_BUTTON_BOX(button_area), GTK_BUTTONBOX_END); | 773 gtk_button_box_set_layout(GTK_BUTTON_BOX(button_area), GTK_BUTTONBOX_END); |
770 gtk_box_set_spacing(GTK_BOX(button_area), GAIM_HIG_BORDER); | 774 gtk_box_set_spacing(GTK_BOX(button_area), GAIM_HIG_BORDER); |
1070 uri_command(command, FALSE); | 1074 uri_command(command, FALSE); |
1071 | 1075 |
1072 g_free(command); | 1076 g_free(command); |
1073 | 1077 |
1074 #else /* !_WIN32 */ | 1078 #else /* !_WIN32 */ |
1075 wgaim_notify_uri(uri); | 1079 gtkwgaim_notify_uri(uri); |
1076 #endif /* !_WIN32 */ | 1080 #endif /* !_WIN32 */ |
1077 | 1081 |
1078 return NULL; | 1082 return NULL; |
1079 } | 1083 } |
1080 | 1084 |