pidgin/plugins/perl/common/GtkIMHtmlToolbar.xs

Thu, 03 Jun 2021 19:33:07 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 03 Jun 2021 19:33:07 -0500
branch
release-2.x.y
changeset 40926
d10bb378f560
parent 15590
c07dd12bf3f4
child 18068
b6554e3c8224
permissions
-rw-r--r--

Fix some null pointer deferences and dead stores that scanbuild found in Pidgin

Testing Done:
Verified scanbuild no long detected the errors.

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

#include "gtkmodule.h"

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.

Gtk::Widget
gtk_imhtmltoolbar_new()

void
gtk_imhtmltoolbar_attach(toolbar, imhtml)
	Pidgin::IMHtmlToolbar toolbar
	Gtk::Widget imhtml
*/

MODULE = Pidgin::IMHtmlToolbar  PACKAGE = Pidgin::IMHtmlToolbar  PREFIX = gtk_imhtmltoolbar_
PROTOTYPES: ENABLE

void
gtk_imhtmltoolbar_associate_smileys(toolbar, proto_id)
	Pidgin::IMHtmlToolbar toolbar
	const char * proto_id

mercurial