eek-preview.cpp revision 55f1ee16880c7a22402fa9ad7df84c70ee4c2fc5
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen/* ***** BEGIN LICENSE BLOCK *****
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen * Version: MPL 1.1/GPL 2.0/LGPL 2.1
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen * The contents of this file are subject to the Mozilla Public License Version
1c7b0cbdb08cccbd25c19ae0fb69abe8ed9ee9b4Timo Sirainen * 1.1 (the "License"); you may not use this file except in compliance with
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen * the License. You may obtain a copy of the License at
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen * Software distributed under the License is distributed on an "AS IS" basis,
b2ed2b25c4c457ec1c99ebe5e9bd66a2e2f89cfdTimo Sirainen * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
079673625389b2e1513e13863e538dfe443e4e13Timo Sirainen * for the specific language governing rights and limitations under the
b2ed2b25c4c457ec1c99ebe5e9bd66a2e2f89cfdTimo Sirainen * The Original Code is Eek Preview Stuffs.
#include "eek-preview.h"
if (!preview_type) {
sizeof( EekPreviewClass ),
sizeof( EekPreview ),
preview_type = g_type_register_static( GTK_TYPE_DRAWING_AREA, "EekPreview", &preview_info, (GTypeFlags)0 );
return preview_type;
return NULL;
if ( !worked ) {
lower = (widget->allocation.height < lower) ? widget->allocation.height : lower;
NULL,
NULL,
gc,
TRUE,
GdkRectangle possible = {insetX, insetY, (widget->allocation.width - (insetX * 2)), (widget->allocation.height - (insetY * 2)) };
NULL,
return FALSE;
return FALSE;
return FALSE;
gboolean blip = parent_class->focus_out_event ? parent_class->focus_out_event(widget, event) : FALSE;
return FALSE;
if ( isAlt ) {
return FALSE;
return FALSE;
return FALSE;
switch ( property_id ) {
case FOCUS_PROP_ID:
switch ( property_id ) {
case FOCUS_PROP_ID:
return blip;
NULL,
TRUE,