pidgin/plugins/disco/meson.build

Tue, 11 Apr 2023 00:17:15 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 11 Apr 2023 00:17:15 -0500
changeset 42202
2273647d24b0
parent 42037
af20db93f2c2
child 42372
ba3a49903905
permissions
-rw-r--r--

Use gtk_widget_set_visible for everything

gtk_widget_show and gtk_widget_hide are deprecated in GTK 4.10. However,
gtk_widget_set_visible has been around forever so we just need to move to that.

I didn't test all of these and there are probably some that can still be
removed, but most of those are in code that is going to get refreshed in the
future so I didn't bother for now.

Testing Done:
I tested the join chat, add chat, and add buddy dialogs, as well as the contact added notification.

Reviewed at https://reviews.imfreedom.org/r/2430/

38471
a7ce1d49ac8c Add Pidgin plugins to meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
1 xmppdisco_SOURCES = [
a7ce1d49ac8c Add Pidgin plugins to meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
2 'gtkdisco.c',
42037
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
3 'xmppdisco.c',
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
4 'xmppdiscoservice.c',
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
5 ]
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
6
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
7 xmppdisco_HEADERS = [
38471
a7ce1d49ac8c Add Pidgin plugins to meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
8 'gtkdisco.h',
42037
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
9 'xmppdisco.h',
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
10 'xmppdiscoservice.h',
38471
a7ce1d49ac8c Add Pidgin plugins to meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
11 ]
a7ce1d49ac8c Add Pidgin plugins to meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
12
42037
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
13 xmppdisco_enums = gnome.mkenums_simple('xmppdiscoenums',
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
14 sources: xmppdisco_HEADERS,
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
15 identifier_prefix: 'XmppDisco',
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
16 symbol_prefix: 'xmpp_disco')
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
17 xmppdisco_SOURCES += xmppdisco_enums
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
18
41011
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
19 xmppdisco_resource = gnome.compile_resources('xmppdiscoresources',
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
20 'resources/xmppdisco.gresource.xml',
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
21 source_dir : 'resources',
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
22 c_name : 'xmppdisco')
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
23 xmppdisco_SOURCES += xmppdisco_resource
39801
2bbed8148402 Convert Service Discovery plugin to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38471
diff changeset
24
42037
af20db93f2c2 Convert XmppDiscoService into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41116
diff changeset
25 xmppdisco = library('xmppdisco', xmppdisco_SOURCES, xmppdisco_HEADERS,
41116
dff0811ff40c Enable structured logging in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41066
diff changeset
26 c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-XMPPDisco"'],
41011
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
27 dependencies : [libpurple_dep, libpidgin_dep, glib],
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
28 name_prefix : '',
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
29 install : true, install_dir : PIDGIN_PLUGINDIR)
90dd69fd1372 Remove the option to disable compiling plugins.
Gary Kramlich <grim@reaperworld.com>
parents: 39801
diff changeset
30
41066
00e6bda3ef95 Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41011
diff changeset
31 devenv.append('PIDGIN_PLUGIN_PATH', meson.current_build_dir())

mercurial