diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-30 14:32:14 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-30 14:32:14 +0800 |
commit | bdf6f37a8afa9988de108ac207b48de01fee6141 (patch) | |
tree | e1bb51bf741648eb1acf5c72d3f5c12b28381268 /shell/e-shell-folder-title-bar.h | |
parent | 316db85df610bfbea1cd6e5ae9ab44f10d30ccb4 (diff) | |
download | gsoc2013-evolution-bdf6f37a8afa9988de108ac207b48de01fee6141.tar.gz gsoc2013-evolution-bdf6f37a8afa9988de108ac207b48de01fee6141.tar.zst gsoc2013-evolution-bdf6f37a8afa9988de108ac207b48de01fee6141.zip |
Added a title bar for the folder view. Removed title bar from the
shortcut view. Made shortcuts behave correctly when moved around.
Also, implemented automatic re-saving of the shortcuts when they
change.
svn path=/trunk/; revision=3276
Diffstat (limited to 'shell/e-shell-folder-title-bar.h')
-rw-r--r-- | shell/e-shell-folder-title-bar.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/shell/e-shell-folder-title-bar.h b/shell/e-shell-folder-title-bar.h new file mode 100644 index 0000000000..80258ad336 --- /dev/null +++ b/shell/e-shell-folder-title-bar.h @@ -0,0 +1,77 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* e-shell-folder-title-bar.h + * + * Copyright (C) 2000 Helix Code, 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 + */ + +#ifndef __E_SHELL_FOLDER_TITLE_BAR_H__ +#define __E_SHELL_FOLDER_TITLE_BAR_H__ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <gtk/gtkeventbox.h> +#include <gdk-pixbuf/gdk-pixbuf.h> + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus */ + +#define E_TYPE_SHELL_FOLDER_TITLE_BAR (e_shell_folder_title_bar_get_type ()) +#define E_SHELL_FOLDER_TITLE_BAR(obj) (GTK_CHECK_CAST ((obj), E_TYPE_SHELL_FOLDER_TITLE_BAR, EShellFolderTitleBar)) +#define E_SHELL_FOLDER_TITLE_BAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_SHELL_FOLDER_TITLE_BAR, EShellFolderTitleBarClass)) +#define E_IS_SHELL_FOLDER_TITLE_BAR(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_SHELL_FOLDER_TITLE_BAR)) +#define E_IS_SHELL_FOLDER_TITLE_BAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_SHELL_FOLDER_TITLE_BAR)) + + +typedef struct _EShellFolderTitleBar EShellFolderTitleBar; +typedef struct _EShellFolderTitleBarPrivate EShellFolderTitleBarPrivate; +typedef struct _EShellFolderTitleBarClass EShellFolderTitleBarClass; + +struct _EShellFolderTitleBar { + GtkEventBox parent; + + EShellFolderTitleBarPrivate *priv; +}; + +struct _EShellFolderTitleBarClass { + GtkEventBoxClass parent_class; + + /* Signals. */ + void (* title_clicked) (EShellFolderTitleBar *folder_title_bar); +}; + + +GtkType e_shell_folder_title_bar_get_type (void); +void e_shell_folder_title_bar_construct (EShellFolderTitleBar *folder_title_bar); +GtkWidget *e_shell_folder_title_bar_new (void); + +void e_shell_folder_title_bar_set_title (EShellFolderTitleBar *folder_title_bar, + const char *title); +void e_shell_folder_title_bar_set_icon (EShellFolderTitleBar *folder_title_bar, + const GdkPixbuf *icon); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __E_SHELL_FOLDER_TITLE_BAR_H__ */ |