diff options
author | nobody <nobody@localhost> | 2001-09-17 12:32:38 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2001-09-17 12:32:38 +0800 |
commit | 6a5caaed83c093f7e3ce67284cd14831db5b1b66 (patch) | |
tree | 6f31e70927858f2bafcfc481e337a665090bdb8e /shell/e-gray-bar.c | |
parent | 169d9ae19a0eb165edc757eca753a757a02f60f7 (diff) | |
download | gsoc2013-evolution-MERGE_TO_HEAD_1.tar gsoc2013-evolution-MERGE_TO_HEAD_1.tar.gz gsoc2013-evolution-MERGE_TO_HEAD_1.tar.bz2 gsoc2013-evolution-MERGE_TO_HEAD_1.tar.lz gsoc2013-evolution-MERGE_TO_HEAD_1.tar.xz gsoc2013-evolution-MERGE_TO_HEAD_1.tar.zst gsoc2013-evolution-MERGE_TO_HEAD_1.zip |
This commit was manufactured by cvs2svn to create tagMERGE_TO_HEAD_1
'MERGE_TO_HEAD_1'.
svn path=/tags/MERGE_TO_HEAD_1/; revision=12887
Diffstat (limited to 'shell/e-gray-bar.c')
-rw-r--r-- | shell/e-gray-bar.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/shell/e-gray-bar.c b/shell/e-gray-bar.c deleted file mode 100644 index 1a4c8a93f4..0000000000 --- a/shell/e-gray-bar.c +++ /dev/null @@ -1,103 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ -/* e-gray-bar.c - * - * Copyright (C) 2001 Ximian, Inc. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: Ettore Perazzoli <ettore@ximian.com> - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include "e-gray-bar.h" - -#include <gtk/gtkrc.h> -#include <gtk/gtktypeutils.h> -#include <gtk/gtkwidget.h> - -#include <gal/util/e-util.h> - - -#define PARENT_TYPE gtk_event_box_get_type () -static GtkEventBoxClass *parent_class = NULL; - - -static void -endarken_style (GtkWidget *widget) -{ - GtkRcStyle *rc_style = gtk_rc_style_new(); - - rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_BG; - rc_style->bg[GTK_STATE_NORMAL].red = 0x8000; - rc_style->bg[GTK_STATE_NORMAL].green = 0x8000; - rc_style->bg[GTK_STATE_NORMAL].blue = 0x8000; - - gtk_widget_modify_style (widget, rc_style); - gtk_rc_style_unref (rc_style); -} - - -static void -impl_style_set (GtkWidget *widget, - GtkStyle *previous_style) -{ - static int in_style_set = 0; - - if (in_style_set > 0) - return; - - in_style_set ++; - - endarken_style (widget); - - in_style_set --; - - (* GTK_WIDGET_CLASS (parent_class)->style_set) (widget, previous_style); -} - - -static void -class_init (GtkObjectClass *object_class) -{ - GtkWidgetClass *widget_class; - - parent_class = gtk_type_class (PARENT_TYPE); - - widget_class = GTK_WIDGET_CLASS (object_class); - widget_class->style_set = impl_style_set; -} - -static void -init (EGrayBar *gray_bar) -{ -} - - -GtkWidget * -e_gray_bar_new (void) -{ - GtkWidget *new; - - new = gtk_type_new (e_gray_bar_get_type ()); - - return new; -} - - -E_MAKE_TYPE (e_gray_bar, "EGrayBar", EGrayBar, class_init, init, PARENT_TYPE) |