Thu, 19 Dec 2019 05:00:44 -0500
Convert PidginRoomlistDialog to Glade.
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* pidgin |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
38816
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
21 | |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
22 | /** |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
23 | * SECTION:gtkstyle |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
24 | * @section_id: pidgin-gtkstyle |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
25 | * @short_description: <filename>gtkstyle.h</filename> |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
26 | * @title: Style API |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
27 | */ |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
28 | |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | #ifndef _PIDGINSTYLE_H_ |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #define _PIDGINSTYLE_H_ |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | #include <gtk/gtk.h> |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | G_BEGIN_DECLS |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | /** |
|
38816
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
37 | * pidgin_style_is_dark: |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
38 | * @style: The GtkStyle in use, or NULL to use a cached version. |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | * |
|
38816
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
40 | * Returns whether or not dark mode is enabled. |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | * |
|
38816
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
42 | * Returns: TRUE if dark mode is enabled and foreground colours should be invertred |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | */ |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | gboolean pidgin_style_is_dark(GtkStyle *style); |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | /** |
|
38816
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
48 | * pidgin_style_adjust_contrast: |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
49 | * @style: The GtkStyle in use. |
|
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
50 | * @color: Color to be lightened. Transformed color will be written here. |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * |
|
38816
9fd4f68ed211
Clean up gobject-introspection for gtkstyle.h
Gary Kramlich <grim@reaperworld.com>
parents:
38699
diff
changeset
|
52 | * Lighten a color if dark mode is enabled. |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | */ |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | |
|
39277
68c17ba18f33
pidgin: Fix GdkColor vs GdkRGBA -Wincompatible-pointer-types warnings
Mike Ruprecht <cmaiku@gmail.com>
parents:
38816
diff
changeset
|
55 | void pidgin_style_adjust_contrast(GtkStyle *style, GdkRGBA *color); |
|
38699
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | G_END_DECLS |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | |
|
e7b5011e4728
Namespace the contrast stuff and move it to it's own file/namespace
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | #endif /* _PIDGINSTYLE_H_ */ |