<gtk/gtkmarshal.h> doesn't appear to be necessary, at least with GTK+

2.24.5.  Remove the include of it.

Get rid of duplicate #undefs of GTK_DISABLE_DEPRECATED and GSEAL_ENABLE
- nothing in config.h should depend on them.

Make at least some of the changes that

	http://developer.gnome.org/gtk3/stable/ch24s02.html#id1459694

and

	http://developer.gnome.org/gtk3/stable/ch24s02.html#id1459754

seem to indicate we need to make for GTK+ 3.

svn path=/trunk/; revision=43739
This commit is contained in:
Guy Harris 2012-07-16 02:42:44 +00:00
parent 3019949943
commit 7736e72e1d
1 changed files with 15 additions and 5 deletions

View File

@ -30,8 +30,6 @@
*/
#ifdef HAVE_CONFIG_H
#undef GTK_DISABLE_DEPRECATED
#undef GSEAL_ENABLE
#include "config.h"
#endif
@ -39,9 +37,6 @@
#undef GSEAL_ENABLE
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
#include <gtk/gtkmarshal.h>
#endif
#include "ui/gtk/old-gtk-compat.h"
#include <string.h>
@ -913,15 +908,23 @@ bytes_view_set_scroll_adjustments(BytesView *bv, GtkAdjustment *hadj, GtkAdjustm
static void
bytes_view_class_init(BytesViewClass *klass)
{
#if !GTK_CHECK_VERSION(3, 0, 0)
GtkObjectClass *object_class;
#endif
GtkWidgetClass *widget_class;
parent_class = (GtkWidgetClass *) g_type_class_peek_parent(klass);
#if !GTK_CHECK_VERSION(3, 0, 0)
object_class = (GtkObjectClass *) klass;
#endif
widget_class = (GtkWidgetClass *) klass;
#if GTK_CHECK_VERSION(3, 0, 0)
widget_class->destroy = bytes_view_destroy;
#else
object_class->destroy = bytes_view_destroy;
#endif
widget_class->realize = bytes_view_realize;
widget_class->unrealize = bytes_view_unrealize;
widget_class->size_request = bytes_view_size_request;
@ -929,6 +932,12 @@ bytes_view_class_init(BytesViewClass *klass)
widget_class->expose_event = bytes_view_expose;
widget_class->scroll_event = bytes_view_scroll;
#if GTK_CHECK_VERSION(3, 0, 0)
/* XXX - see
http://developer.gnome.org/gtk3/stable/GtkScrollable.html
*/
#else
klass->set_scroll_adjustments = bytes_view_set_scroll_adjustments;
widget_class->set_scroll_adjustments_signal =
@ -942,6 +951,7 @@ bytes_view_class_init(BytesViewClass *klass)
G_TYPE_NONE, 2,
GTK_TYPE_ADJUSTMENT,
GTK_TYPE_ADJUSTMENT);
#endif
}
GType