Fri, 05 Mar 2021 03:31:29 -0600
Create a PidginAvatar widget.
This does everything the existing code does, but trying to integrate right now
is kind of difficult. The plan is to use this in a new PidginInfoPane I have
started, but that change got very large so I just packed it into the end of
the existing info pane.
The only things that are not implement right now, are making menu items
insensitive and that's because we need to figure out a better want to handle
custom avatars for users.
Testing Done:
Ran locally.
Reviewed at https://reviews.imfreedom.org/r/528/
|
40530
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
1 | /* |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
2 | * Pidgin - Internet Messenger |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
4 | * |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
5 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
7 | * source distribution. |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
8 | * |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
12 | * (at your option) any later version. |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
13 | * |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
17 | * GNU General Public License for more details. |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
18 | * |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
40539
2941deda6d8d
Use an https link to gnu.org in the license file headers
Gary Kramlich <grim@reaperworld.com>
parents:
40530
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
40530
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
21 | */ |
|
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
22 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39855
diff
changeset
|
23 | #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39855
diff
changeset
|
24 | # error "only <pidgin.h> may be included directly" |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39855
diff
changeset
|
25 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39855
diff
changeset
|
26 | |
| 38659 | 27 | #ifndef PIDGIN_ABOUT_H |
| 28 | #define PIDGIN_ABOUT_H | |
| 29 | ||
|
39396
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
30 | /** |
|
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
31 | * SECTION:pidginabout |
|
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
32 | * @section_id: pidgin-about |
|
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
33 | * @short_description: <filename>pidginabout.h</filename> |
|
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
34 | * @title: About Dialog |
|
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
35 | */ |
|
7b878704dc62
doc: Add missing section documentation to pidginabout.h
Mike Ruprecht <cmaiku@gmail.com>
parents:
38682
diff
changeset
|
36 | |
| 38659 | 37 | #include <gtk/gtk.h> |
| 38 | ||
| 39 | G_BEGIN_DECLS | |
| 40 | ||
|
39855
7c9c4d700ed2
Get rid of the private struct in PidginAbout box and a few other cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
39533
diff
changeset
|
41 | #define PIDGIN_TYPE_ABOUT_DIALOG (pidgin_about_dialog_get_type()) |
|
39533
4fbf60ed30c4
Use G_DECLARE* in pidginabout.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39396
diff
changeset
|
42 | G_DECLARE_FINAL_TYPE(PidginAboutDialog, pidgin_about_dialog, PIDGIN, |
|
40530
ac5c0a85971e
Cleanup pidginabout.[ch] and add the plugin searchs paths to it
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
43 | ABOUT_DIALOG, GtkDialog) |
|
39533
4fbf60ed30c4
Use G_DECLARE* in pidginabout.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39396
diff
changeset
|
44 | |
| 38659 | 45 | GtkWidget *pidgin_about_dialog_new(void); |
| 46 | ||
| 47 | G_END_DECLS | |
| 48 | ||
| 49 | #endif /* PIDGIN_ABOUT_H */ | |
| 50 |