Mercurial > pidgin
annotate console/libgnt/gntutils.h @ 15057:f227feab8c78
[gaim-migrate @ 17841]
Ok... let's throw this to the wild.
Support for "So-and-so want's authorization" in the core.
It creates a new mini-dialog in the blist for this with an
Authorize and Deny button, which do as you might imagine.
Clicking Authorize will also spawn an "Add buddy" dialog
if that person isn't already a buddy. I'm not sure I like
this, since I never add buddies that I authorize, but it
seems the best option.
I considered a checkbox in the dialog (but it only applies
when you hit "Authorize," which could be weird), and a
third "Authorize and Add" button (but that was too big for
the blist).
I'll come back to the UI later, I'm sure. I'd like to see
that the prpl changes all work. Yahoo, especially, looked
confusing, and had the most changes.
I'm mostly happy with this.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 29 Nov 2006 01:13:21 +0000 |
parents | 8a0cfee11af8 |
children | 68385f5bbd61 |
rev | line source |
---|---|
14059
2d1b41e3cf0d
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
1 #include <glib.h> |
2d1b41e3cf0d
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
2 |
2d1b41e3cf0d
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
3 #include "gnt.h" |
2d1b41e3cf0d
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
4 #include "gntwidget.h" |
2d1b41e3cf0d
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
5 |
2d1b41e3cf0d
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
6 void gnt_util_get_text_bound(const char *text, int *width, int *height); |
14311
fda9dc44807d
[gaim-migrate @ 17001]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14059
diff
changeset
|
7 |
14397
70f52ff1caec
[gaim-migrate @ 17105]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14311
diff
changeset
|
8 /* excluding *end */ |
14311
fda9dc44807d
[gaim-migrate @ 17001]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14059
diff
changeset
|
9 int gnt_util_onscreen_width(const char *start, const char *end); |
fda9dc44807d
[gaim-migrate @ 17001]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14059
diff
changeset
|
10 |
14420
c4a32405af68
[gaim-migrate @ 17128]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14397
diff
changeset
|
11 const char *gnt_util_onscreen_width_to_pointer(const char *str, int len, int *w); |
14423
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
12 |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
13 /* Inserts newlines in 'string' where necessary so that its onscreen width is |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
14 * no more than 'maxw'. |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
15 * 'maxw' can be <= 0, in which case the maximum screen width is considered. |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
16 * |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
17 * Returns a newly allocated string. |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
18 */ |
cfd5bcc06a7e
[gaim-migrate @ 17131]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14420
diff
changeset
|
19 char *gnt_util_onscreen_fit_string(const char *string, int maxw); |
14793
8a0cfee11af8
[gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14423
diff
changeset
|
20 |
8a0cfee11af8
[gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14423
diff
changeset
|
21 GHashTable *g_hash_table_duplicate(GHashTable *src, GHashFunc hash, |
8a0cfee11af8
[gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14423
diff
changeset
|
22 GEqualFunc equal, GDestroyNotify key_d, GDestroyNotify value_d); |