pidgin/pidginstatusprimitivechooser.c

changeset 41268
4adf517478fc
child 41356
9753153c49fc
equal deleted inserted replaced
41267:330cfcc1404d 41268:4adf517478fc
1 /*
2 * Pidgin - Internet Messenger
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
4 *
5 * Pidgin is the legal property of its developers, whose names are too numerous
6 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * source distribution.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
21 */
22
23 #include <pidgin/pidginstatusprimitivechooser.h>
24
25 struct _PidginStatusPrimitiveChooser {
26 GtkComboBox parent;
27 };
28
29 G_DEFINE_TYPE(PidginStatusPrimitiveChooser, pidgin_status_primitive_chooser,
30 GTK_TYPE_COMBO_BOX)
31
32 /******************************************************************************
33 * GObject Implementation
34 *****************************************************************************/
35
36 static void
37 pidgin_status_primitive_chooser_init(PidginStatusPrimitiveChooser *chooser) {
38 gtk_widget_init_template(GTK_WIDGET(chooser));
39 }
40
41 static void
42 pidgin_status_primitive_chooser_class_init(PidginStatusPrimitiveChooserClass *klass) {
43 GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
44
45 /* Widget template */
46 gtk_widget_class_set_template_from_resource(
47 widget_class, "/im/pidgin/Pidgin3/statusprimitivechooser.ui");
48 }
49
50 /******************************************************************************
51 * Public API
52 *****************************************************************************/
53 GtkWidget *
54 pidgin_status_primitive_chooser_new(void) {
55 return g_object_new(PIDGIN_TYPE_STATUS_PRIMITIVE_CHOOSER, NULL);
56 }

mercurial