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/
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
1 | /* pidgin |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
2 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
3 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
5 | * source distribution. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
6 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
10 | * (at your option) any later version. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
11 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
15 | * GNU General Public License for more details. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
16 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
20 | */ |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
21 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39583
diff
changeset
|
22 | #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:
39583
diff
changeset
|
23 | # 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:
39583
diff
changeset
|
24 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39583
diff
changeset
|
25 | |
|
39577
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
26 | #ifndef PIDGIN_INVITE_DIALOG_H |
|
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
27 | #define PIDGIN_INVITE_DIALOG_H |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | /** |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | * SECTION:pidgininvitedialog |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | * @section_id: pidgin-invite-dialog |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
32 | * @short_description: A dialog widget to invite others to chat |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | * @title: Invite Dialog |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
34 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
35 | * #PidginInviteDialog is a simple #GtkDialog that presents the user with an |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
36 | * interface to invite another user to a conversation. Name completion is |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
37 | * automatically setup as well. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
38 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
39 | * |[<!-- language="C" --> |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
40 | * static void |
|
39583
d951e625d987
Fix the example code for PidginInviteDialog
Gary Kramlich <grim@reaperworld.com>
parents:
39580
diff
changeset
|
41 | * invite_response(GtkWidget *widget, int resp, gpointer data) { |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
42 | * PidginInviteDialog *dialog = PIDGIN_INVITE_DIALOG(widget); |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
43 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
44 | * if(resp == GTK_RESPONSE_ACCEPT) { |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
45 | * g_message( |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
46 | * "user wants to invite %s with message %s", |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
47 | * pidgin_invite_dialog_get_contact(dialog), |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
48 | * pidgin_invite_dialog_get_message(dialog) |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
49 | * ); |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
50 | * } |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
51 | * } |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
52 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
53 | * static void |
|
39583
d951e625d987
Fix the example code for PidginInviteDialog
Gary Kramlich <grim@reaperworld.com>
parents:
39580
diff
changeset
|
54 | * invite_prompt(PurpleChatConversation *conv) { |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
55 | * GtkWidget *dialog = pidgin_invite_dialog_new(conv); |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
56 | * g_signal_connect(G_OBJECT(dialog), "response", |
|
39583
d951e625d987
Fix the example code for PidginInviteDialog
Gary Kramlich <grim@reaperworld.com>
parents:
39580
diff
changeset
|
57 | * G_CALLBACK(invite_response), NULL); |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
58 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
59 | * } |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
60 | * ]| |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | */ |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | #include <gtk/gtk.h> |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
65 | #include <purple.h> |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
66 | |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | G_BEGIN_DECLS |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | #define PIDGIN_TYPE_INVITE_DIALOG pidgin_invite_dialog_get_type() |
|
39577
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
70 | |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | G_DECLARE_FINAL_TYPE(PidginInviteDialog, pidgin_invite_dialog, PIDGIN, |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | INVITE_DIALOG, GtkDialog) |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
74 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
75 | * pidgin_invite_dialog_new: |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
76 | * @conversation: The #PurpleChatConversation instance. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
77 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
78 | * Creates a new #PidginInviteDialog to invite someone to @conversation. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
79 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
80 | * Returns: (transfer full): The new #PidginInviteDialog instance. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
81 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
82 | * Since: 3.0.0 |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
83 | */ |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
84 | GtkWidget *pidgin_invite_dialog_new(PurpleChatConversation *conversation); |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
86 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
87 | * pidgin_invite_dialog_set_contact: |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
88 | * @dialog: The #PidginInviteDialog instance. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
89 | * @contact: The contact to invite. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
90 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
91 | * Sets the contact that should be invited. This function is intended to be |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
92 | * used to prepopulate the dialog in cases where you just need to prompt the |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
93 | * user for an invite message. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
94 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
95 | * Since: 3.0.0 |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
96 | */ |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | void pidgin_invite_dialog_set_contact(PidginInviteDialog *dialog, const gchar *contact); |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
98 | |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
99 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
100 | * pidgin_invite_dialog_get_contact: |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
101 | * @dialog: #PidginInviteDialog instance. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
102 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
103 | * Gets the contact that was entered in @dialog. This string is only valid as |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
104 | * long as @dialog exists. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
105 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
106 | * Returns: (transfer none): The contact that was entered. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
107 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
108 | * Since: 3.0.0 |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
109 | */ |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | const gchar *pidgin_invite_dialog_get_contact(PidginInviteDialog *dialog); |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
112 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
113 | * pidgin_invite_dialog_set_message: |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
114 | * @dialog: The #PidginInviteDialog instance. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
115 | * @message: The message that should be displayed. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
116 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
117 | * Sets the message to be displayed in @dialog. The main use case is to |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
118 | * prepopulate the message. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
119 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
120 | * Since: 3.0.0 |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
121 | */ |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | void pidgin_invite_dialog_set_message(PidginInviteDialog *dialog, const gchar *message); |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
123 | |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
124 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
125 | * pidgin_invite_dialog_get_message: |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
126 | * @dialog: The #PidginInviteDialog instance. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
127 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
128 | * Gets the message that was entered in @dialog. The returned value is only |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
129 | * valid as long as @dialog exists. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
130 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
131 | * Returns: (transfer none): The message that was entered in @dialog. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
132 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
133 | * Since: 3.0.0 |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
134 | */ |
|
39577
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
135 | const gchar *pidgin_invite_dialog_get_message(PidginInviteDialog *dialog); |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
137 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
138 | * pidgin_invite_dialog_get_conversation: |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
139 | * @dialog: The #PidginInviteDialog instance. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
140 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
141 | * Gets the #PurpleChatConversation that @dialog was created for. |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
142 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
143 | * Returns: (transfer none): The #PurpleChatConversation that @dialog was |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
144 | * created with. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
145 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
146 | * Since: 3.0.0 |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
147 | */ |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
148 | PurpleChatConversation *pidgin_invite_dialog_get_conversation(PidginInviteDialog *dialog); |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
149 | |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | G_END_DECLS |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | |
|
39577
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
152 | #endif /* PIDGIN_INVITE_DIALOG_H */ |