Wed, 13 May 2009 20:29:03 +0000
Support custom smileys in MUCs (when all participants support BoB and a maximum
of 10 participants are in the chat).
Always announce support for BoB, since disable custom smileys will still turn
off fetching them, and BoB can be used for other purposes further on.
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
1 | #include "gnt.h" |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
2 | #include "gntfilesel.h" |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
3 | |
|
18762
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
4 | static void |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
5 | file_selected(GntFileSel *sel, const char *path, const char *filename) |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
6 | { |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
7 | g_printerr("%s %s\n", path, filename); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
8 | } |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
9 | |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
10 | int main() |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
11 | { |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
12 | freopen(".error", "w", stderr); |
|
18762
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
13 | fprintf(stdout, "\x1b]1;\x07\x1b]2;TEST\x07"); |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
14 | gnt_init(); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
15 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
16 | GntWidget *w = gnt_file_sel_new(); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
17 | gnt_file_sel_set_current_location(GNT_FILE_SEL(w), "/home/"); |
|
15911
942565fe33f0
Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15902
diff
changeset
|
18 | gnt_file_sel_set_dirs_only(GNT_FILE_SEL(w), TRUE); |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15911
diff
changeset
|
19 | gnt_file_sel_set_multi_select(GNT_FILE_SEL(w), TRUE); |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
20 | gnt_widget_show(w); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
21 | |
|
18762
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
22 | g_signal_connect(G_OBJECT(w), "file_selected", G_CALLBACK(file_selected), NULL); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
23 | |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
24 | gnt_main(); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
25 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
26 | gnt_quit(); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
27 | return 0; |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
28 | } |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 |