Fri, 19 Aug 2022 02:27:18 -0500
Port gtkaccount to GTK4
We should still port to `GtkBuilder`, but this seems small enough to fix now.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/1611/
|
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 | |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
29 | #include <gtk/gtk.h> |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
30 | |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
31 | #include <purple.h> |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
32 | |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
33 | G_BEGIN_DECLS |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
34 | |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | /** |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
36 | * PidginInviteDialog: |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
37 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
38 | * #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
|
39 | * 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
|
40 | * 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
|
41 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
42 | * |[<!-- language="C" --> |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
43 | * static void |
|
39583
d951e625d987
Fix the example code for PidginInviteDialog
Gary Kramlich <grim@reaperworld.com>
parents:
39580
diff
changeset
|
44 | * 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
|
45 | * 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
|
46 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
47 | * 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
|
48 | * g_message( |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
49 | * "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
|
50 | * 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
|
51 | * 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
|
52 | * ); |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
53 | * } |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
54 | * } |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
55 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
56 | * static void |
|
39583
d951e625d987
Fix the example code for PidginInviteDialog
Gary Kramlich <grim@reaperworld.com>
parents:
39580
diff
changeset
|
57 | * 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
|
58 | * 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
|
59 | * g_signal_connect(G_OBJECT(dialog), "response", |
|
39583
d951e625d987
Fix the example code for PidginInviteDialog
Gary Kramlich <grim@reaperworld.com>
parents:
39580
diff
changeset
|
60 | * 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
|
61 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
62 | * } |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
63 | * ]| |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | */ |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | #define PIDGIN_TYPE_INVITE_DIALOG pidgin_invite_dialog_get_type() |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | G_DECLARE_FINAL_TYPE(PidginInviteDialog, pidgin_invite_dialog, PIDGIN, |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | INVITE_DIALOG, GtkDialog) |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
70 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
71 | * 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
|
72 | * @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
|
73 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
74 | * 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
|
75 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
76 | * Returns: (transfer full): The new #PidginInviteDialog instance. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
77 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
78 | * 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
|
79 | */ |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
80 | GtkWidget *pidgin_invite_dialog_new(PurpleChatConversation *conversation); |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
82 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
83 | * 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
|
84 | * @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
|
85 | * @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
|
86 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
87 | * 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
|
88 | * 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
|
89 | * user for an invite message. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
90 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
91 | * 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
|
92 | */ |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | 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
|
94 | |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
95 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
96 | * 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
|
97 | * @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
|
98 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
99 | * 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
|
100 | * 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
|
101 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
102 | * Returns: (transfer none): The contact that was entered. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
103 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
104 | * 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
|
105 | */ |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | const gchar *pidgin_invite_dialog_get_contact(PidginInviteDialog *dialog); |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
108 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
109 | * 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
|
110 | * @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
|
111 | * @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
|
112 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
113 | * 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
|
114 | * prepopulate the message. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
115 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
116 | * 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
|
117 | */ |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | 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
|
119 | |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
120 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
121 | * 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
|
122 | * @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
|
123 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
124 | * 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
|
125 | * 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
|
126 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
127 | * 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
|
128 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
129 | * 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
|
130 | */ |
|
39577
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
131 | 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
|
132 | |
|
39579
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
133 | /** |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
134 | * 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
|
135 | * @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
|
136 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
137 | * 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
|
138 | * |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
139 | * 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
|
140 | * created with. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
141 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39579
diff
changeset
|
142 | * 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
|
143 | */ |
|
34e0b0e7df81
Finish up the invite dialog with contact completion and documentation for all.
Gary Kramlich <grim@reaperworld.com>
parents:
39577
diff
changeset
|
144 | 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
|
145 | |
|
39576
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | G_END_DECLS |
|
9da340b66f6d
Start of the new invite widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | |
|
39577
0dd1d673bbef
Invite dialog fully functional, with dnd removed
Gary Kramlich <grim@reaperworld.com>
parents:
39576
diff
changeset
|
148 | #endif /* PIDGIN_INVITE_DIALOG_H */ |