Fix broken `priv != NULL` checks in Pidgin.
[pidgin-git.git] / pidgin / gtkinternal.h
blob75035f28bdab09494edf381d37d6ea8b89e30d32
1 /* pidgin
3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGIN_INTERNAL_H_
23 #define _PIDGIN_INTERNAL_H_
25 * SECTION:gtkinternal
26 * @section_id: pidgin-gtkinternal
27 * @short_description: <filename>gtkinternal.h</filename>
28 * @title: Internal Definitions and Includes
31 G_BEGIN_DECLS
33 static inline void
34 _pidgin_widget_set_accessible_name(GtkWidget *widget, const gchar *name);
36 PurpleImage *
37 _pidgin_e2ee_stock_icon_get(const gchar *stock_name);
39 G_END_DECLS
41 static inline void
42 _pidgin_widget_set_accessible_name(GtkWidget *widget, const gchar *name)
44 atk_object_set_name(gtk_widget_get_accessible(widget), name);
47 #endif /* _PIDGIN_INTERNAL_H_ */