Fri, 22 Nov 2024 01:26:06 -0600
Set the application on all windows
In some DEs (like GNOME), this allows grouping them all together.
It also restores the "construction" style in the title bar (for Adwaita stuff at least).
Testing Done:
Opened all the windows, and Alt-Tab now groups things together. Also checked in the inspector that the property was set on the windows.
Reviewed at https://reviews.imfreedom.org/r/3664/
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Pidgin - Internet Messenger |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <pidgin.h> may be included directly" |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PIDGIN_CHANNEL_JOIN_DIALOG_H |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PIDGIN_CHANNEL_JOIN_DIALOG_H |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <gtk/gtk.h> |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
42465
b7d530551c1b
Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42377
diff
changeset
|
32 | #include "pidginversion.h" |
|
b7d530551c1b
Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42377
diff
changeset
|
33 | |
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | G_BEGIN_DECLS |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | /** |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | * PidginChannelJoinDialog: |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | * A dialog for joining channels. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42466
diff
changeset
|
41 | * Since: 3.0 |
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | */ |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | #define PIDGIN_TYPE_CHANNEL_JOIN_DIALOG (pidgin_channel_join_dialog_get_type()) |
|
42465
b7d530551c1b
Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42377
diff
changeset
|
45 | |
|
b7d530551c1b
Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42377
diff
changeset
|
46 | PIDGIN_AVAILABLE_IN_3_0 |
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | G_DECLARE_FINAL_TYPE(PidginChannelJoinDialog, pidgin_channel_join_dialog, PIDGIN, |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | CHANNEL_JOIN_DIALOG, GtkWindow) |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | /** |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * pidgin_channel_join_dialog_new: |
|
43080
dd2d26e6c6f9
Set the application on all windows
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42620
diff
changeset
|
52 | * @application: (nullable): A #GtkApplication to associate with this dialog. |
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * Creates a new channel join dialog. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * Returns: (transfer full): The widget. |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42466
diff
changeset
|
58 | * Since: 3.0 |
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | */ |
|
42466
ca3374c1cdba
Add visibility to all Pidgin symbols tagged with Since 3.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42465
diff
changeset
|
60 | PIDGIN_AVAILABLE_IN_3_0 |
|
43080
dd2d26e6c6f9
Set the application on all windows
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42620
diff
changeset
|
61 | GtkWidget *pidgin_channel_join_dialog_new(GtkApplication *application); |
|
42377
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | G_END_DECLS |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | |
|
6e3f1f8709b5
Create a new PidginChannelJoinDialog widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | #endif /* PIDGIN_CHANNEL_JOIN_DIALOG_H */ |