GtkWidget *enable_remote_content;
GtkWidget *image_cache_size;
GtkWidget *default_font;
- GtkObject *adj;
+ GtkAdjustment *adj;
vbox = gtk_vbox_new(FALSE, 3);
gtk_container_set_border_width(GTK_CONTAINER(vbox), VBOX_BORDER);
g_warning("lh_widget::redraw: No GdkWindow to draw on!");
return;
}
- cr = gdk_cairo_create(GDK_DRAWABLE(gdkwin));
+ cr = gdk_cairo_create(gdkwin);
draw(cr);
cairo_destroy(cr);
g_warning("lh_widget::clear: No GdkWindow to draw on!");
return;
}
- cairo_t *cr = gdk_cairo_create(GDK_DRAWABLE(gdkwin));
+ cairo_t *cr = gdk_cairo_create(gdkwin);
/* Paint white background. */
gint width, height;
- gdk_drawable_get_size(gdkwin, &width, &height);
- cairo_rectangle(cr, 0, 0, width, height);
+ width = gdk_window_get_width(gdkwin);
+ height = gdk_window_get_height(gdkwin);
+ cairo_rectangle(cr, 0, 0,
+ gdk_window_get_width(gdkwin),
+ gdk_window_get_height(gdkwin));
cairo_set_source_rgb(cr, 255, 255, 255);
cairo_fill(cr);
if (pos != OVERLAY_NONE) {
stock_wid = stock_pixmap_widget(overlay);
+ g_object_ref_sink(stock_wid);
+
stock_pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(stock_wid));
g_object_ref(stock_pixbuf);
data->overlay_pixbuf = stock_pixbuf;
data->overlay_height = height;
data->overlay_width = width;
- gtk_widget_destroy(stock_wid);
+ g_object_unref(stock_wid);
}
data->position = pos;