pidgin/gtkidle.h

Wed, 10 Oct 2018 14:39:23 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Wed, 10 Oct 2018 14:39:23 -0500
changeset 39253
b0f02ccb06ae
parent 37094
84873ce721dc
child 40360
e21f3bbcc2a5
permissions
-rw-r--r--

pidgindebug: Provide fallbacks for Gtk < 3.22 functionality

gtk_popover_popup() and gtk_menu_popup_at_widget() snuck their way
into the Pidgin debug window code. This patch uses gtk_widget_show()
as a fallback for the former, which skips the transition, but should
work, and gtk_menu_popup_at_pointer() for the latter, which we have
a compat function for. It's not quite the same functionality, but
it should fix the build with Gtk < 3.22 and should be good enough for
anyone running that old of a Gtk version.

/* pidgin
 *
 * Pidgin is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
 */

#ifndef _PIDGIN_IDLE_H_
#define _PIDGIN_IDLE_H_
/**
 * SECTION:gtkidle
 * @section_id: pidgin-gtkidle
 * @short_description: <filename>gtkidle.h</filename>
 * @title: Idle API
 */

#include "idle.h"

G_BEGIN_DECLS

/**************************************************************************/
/* GTK+ Idle API                                                          */
/**************************************************************************/

/**
 * pidgin_idle_get_ui_ops:
 *
 * Returns the GTK+ idle UI ops.
 *
 * Returns: The UI operations structure.
 */
PurpleIdleUiOps *pidgin_idle_get_ui_ops(void);

G_END_DECLS

#endif /* _PIDGIN_IDLE_H_ */

mercurial