block_input ();
gtk_widget_get_size_request(FRAME_GTK_WIDGET(f), &pixelwidth, &pixelheight);
- PGTK_TRACE("old: %dx%d", pixelwidth, pixelheight);
if (pixelwise)
{
make_fixnum (FRAME_PGTK_TITLEBAR_HEIGHT (f)),
make_fixnum (FRAME_TOOLBAR_HEIGHT (f))));
- PGTK_TRACE("new: %dx%d", pixelwidth, pixelheight);
for (GtkWidget *w = FRAME_GTK_WIDGET(f); w != NULL; w = gtk_widget_get_parent(w)) {
- PGTK_TRACE("%p %s %d %d", w, G_OBJECT_TYPE_NAME(w), gtk_widget_get_mapped(w), gtk_widget_get_visible(w));
gint wd, hi;
gtk_widget_get_size_request(w, &wd, &hi);
- PGTK_TRACE(" %dx%d", wd, hi);
GtkAllocation alloc;
gtk_widget_get_allocation(w, &alloc);
- PGTK_TRACE(" %dx%d+%d+%d", alloc.width, alloc.height, alloc.x, alloc.y);
}
- PGTK_TRACE("pgtk_set_window_size: %p: %dx%d.", f, width, height);
f->output_data.pgtk->preferred_width = pixelwidth;
f->output_data.pgtk->preferred_height = pixelheight;
x_wm_set_size_hint(f, 0, 0);
return gdk_screen_get_width(gscr);
}
+
void
x_set_no_focus_on_map (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
/* Set frame F's `no-focus-on-map' parameter which, if non-nil, means
{
PGTK_TRACE("draw_window_cursor: %d, %d, %d, %d, %d, %d.",
x, y, cursor_type, cursor_width, on_p, active_p);
- struct frame *f = XFRAME (WINDOW_FRAME (w));
- PGTK_TRACE("%p\n", f->output_data.pgtk);
if (on_p)
{
if (src == NULL && FRAME_CR_ACTIVE_CONTEXT(f) != NULL)
src = cairo_get_target(FRAME_CR_ACTIVE_CONTEXT(f));
}
- APGTK_TRACE(" surface=%p", src);
+ PGTK_TRACE(" surface=%p", src);
if (src != NULL) {
- APGTK_TRACE(" resized_p=%d", f->resized_p);
+ PGTK_TRACE(" resized_p=%d", f->resized_p);
PGTK_TRACE(" garbaged=%d", f->garbaged);
PGTK_TRACE(" scroll_bar_width=%f", (double) PGTK_SCROLL_BAR_WIDTH(f));
// PGTK_TRACE(" scroll_bar_adjust=%d", PGTK_SCROLL_BAR_ADJUST(f));
cr = FRAME_CR_CONTEXT (f) = cairo_create (surface);
cairo_surface_destroy (surface);
-
- cr = cairo_create (FRAME_CR_SURFACE (f));
- FRAME_CR_CONTEXT (f) = cr;
}
cairo_save (cr);
void
pgtk_set_cr_source_with_gc_foreground (struct frame *f, Emacs_GC *gc)
{
- PGTK_TRACE("pgtk_set_cr_source_with_gc_foreground: %08lx", gc->foreground);
+ PGTK_TRACE ("pgtk_set_cr_source_with_gc_foreground: %08lx", gc->foreground);
pgtk_set_cr_source_with_color(f, gc->foreground);
}