+2009-06-27 Emilio Pozuelo Monfort <pochu27@gmail.com>
+
+ Reviewed by Jan Alonzo.
+
+ [GTK] Don't use deprecated GTK+ symbols.
+ https://bugs.webkit.org/show_bug.cgi?id=26583
+
+ * plugins/gtk/gtk2xtbin.c:
+ (gtk_xtbin_class_init):
+ (gtk_xtbin_new):
+ (gtk_xtbin_destroy):
+
2009-06-27 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dan Bernstein.
* inside a GTK application.
*/
-#undef GTK_DISABLE_DEPRECATED
-
#include "xembed.h"
#include "gtk2xtbin.h"
#include <gtk/gtk.h>
GtkWidgetClass *widget_class;
GtkObjectClass *object_class;
- parent_class = gtk_type_class (GTK_TYPE_SOCKET);
+ parent_class = g_type_class_peek_parent (klass);
widget_class = GTK_WIDGET_CLASS (klass);
widget_class->realize = gtk_xtbin_realize;
gpointer user_data;
assert(parent_window != NULL);
- xtbin = gtk_type_new (GTK_TYPE_XTBIN);
+ xtbin = g_object_new (GTK_TYPE_XTBIN, NULL);
if (!xtbin)
return (GtkWidget*)NULL;
G_PRIORITY_LOW);
/* add a timer so that we can poll and process Xt timers */
xt_polling_timer_id =
- gtk_timeout_add(25,
- (GtkFunction)xt_event_polling_timer_callback,
+ g_timeout_add(25,
+ (GSourceFunc)xt_event_polling_timer_callback,
xtdisplay);
}
g_main_context_remove_poll((GMainContext*)NULL, &xt_event_poll_fd);
g_source_remove(tag);
- gtk_timeout_remove(xt_polling_timer_id);
+ g_source_remove(xt_polling_timer_id);
xt_polling_timer_id = 0;
}
}
+2009-06-27 Emilio Pozuelo Monfort <pochu27@gmail.com>
+
+ Reviewed by Jan Alonzo.
+
+ [GTK] Don't use deprecated GTK+ symbols.
+ https://bugs.webkit.org/show_bug.cgi?id=26583
+
+ * GtkLauncher/main.c:
+ (create_toolbar):
+
2009-06-26 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
{
GtkWidget* toolbar = gtk_toolbar_new ();
- gtk_toolbar_set_orientation (GTK_TOOLBAR (toolbar), GTK_ORIENTATION_HORIZONTAL);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (toolbar), GTK_ORIENTATION_HORIZONTAL);
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH_HORIZ);
GtkToolItem* item;