Mercurial > pidgin.yaz
comparison pidgin/gtkrequest.c @ 21244:a20ef7180680
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
reason that the common UI ones need to be in a different namespace from the
ones used by libpurple.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 14 Oct 2007 20:53:40 +0000 |
parents | b5d51fbb2673 |
children | 6de09629f091 d4f95419be45 |
comparison
equal
deleted
inserted
replaced
21243:6402252be3c8 | 21244:a20ef7180680 |
---|---|
104 PidginBuddyList *blist = NULL; | 104 PidginBuddyList *blist = NULL; |
105 | 105 |
106 if (convo) | 106 if (convo) |
107 return GTK_WINDOW(convo->win->window); | 107 return GTK_WINDOW(convo->win->window); |
108 | 108 |
109 if (strcmp(ui_hint, PURPLE_REQUEST_HINT_BLIST)) { | 109 if (strcmp(ui_hint, PURPLE_REQUEST_UI_HINT_BLIST)) { |
110 GList *ll_toplevels = NULL; | 110 GList *ll_toplevels = NULL; |
111 | 111 |
112 ll_toplevels = gtk_window_list_toplevels(); | 112 ll_toplevels = gtk_window_list_toplevels(); |
113 | 113 |
114 if (!(toplevel = find_toplevel(ll_toplevels, ui_hint))) { | 114 if (!(toplevel = find_toplevel(ll_toplevels, ui_hint))) { |
115 if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_REGISTER)) | 115 if (!strcmp(ui_hint, PURPLE_REQUEST_UI_HINT_REGISTER)) |
116 toplevel = find_toplevel(ll_toplevels, "account"); | 116 toplevel = find_toplevel(ll_toplevels, "account"); |
117 else | 117 else |
118 if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_XFER)) | 118 if (!strcmp(ui_hint, PURPLE_REQUEST_UI_HINT_XFER)) |
119 toplevel = find_toplevel(ll_toplevels, "file transfer"); | 119 toplevel = find_toplevel(ll_toplevels, "file transfer"); |
120 } | 120 } |
121 | 121 |
122 g_list_free(ll_toplevels); | 122 g_list_free(ll_toplevels); |
123 } | 123 } |