Commit 2eba802f authored by Morten Welinder's avatar Morten Welinder

gtk+: gtk_widget_is_toplevel

parent 9303a162
......@@ -689,7 +689,7 @@ LIBS="$GNUMERIC_LIBS $LIBS"
AC_CHECK_FUNCS(g_date_set_time_t g_slice_alloc g_option_context_set_delocalize)
AC_CHECK_FUNCS(pango_font_map_create_context)
AC_CHECK_FUNCS(gtk_orientable_set_orientation gtk_adjustment_configure gtk_widget_get_state gtk_widget_get_window gsf_open_pkg_foreach_rel gtk_dialog_get_content_area gtk_entry_get_buffer gtk_widget_get_can_focus)
AC_CHECK_FUNCS(gtk_orientable_set_orientation gtk_adjustment_configure gtk_widget_get_state gtk_widget_is_toplevel gtk_widget_get_window gsf_open_pkg_foreach_rel gtk_dialog_get_content_area gtk_entry_get_buffer gtk_widget_get_can_focus)
AC_CHECK_FUNCS(gsf_infile_msvba_steal_modules)
AC_MSG_CHECKING([for PANGO_WEIGHT_THIN etc.])
......
2010-05-28 Morten Welinder <terra@gnome.org>
* gnumeric-expr-entry.c (cb_icon_clicked): Use
gtk_widget_is_toplevel, if present.
* gnumeric-cell-renderer-text.c (gnumeric_cell_renderer_text_render):
Use gtk_widget_get_state, if present.
......
......@@ -39,6 +39,10 @@
#include <gdk/gdkkeysyms.h>
#include <string.h>
#ifndef HAVE_GTK_WIDGET_IS_TOPLEVEL
#define gtk_widget_is_toplevel(w_) (GTK_WIDGET_FLAGS ((w_)) & GTK_TOPLEVEL)
#endif
typedef struct {
GnmRangeRef ref;
int text_start;
......@@ -187,7 +191,7 @@ cb_icon_clicked (GtkButton *icon,
* not rolled up.
*/
if (toplevel != NULL && (GTK_WIDGET_FLAGS (toplevel) & GTK_TOPLEVEL)) {
if (toplevel != NULL && gtk_widget_is_toplevel (toplevel)) {
GtkWidget *old_entry_parent;
GtkWidget *old_toplevel_child;
GParamSpec **container_props_pspec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment