diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-04-16 21:21:26 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-04-16 21:21:26 +0800 |
commit | 13a168017cd5b6d8907293a56732dc6f88ec4400 (patch) | |
tree | 235538aabba7939b2249750730b4632f13d0ca08 /widgets/shortcut-bar/e-icon-bar-text-item.h | |
parent | 23c29cbcf654883e1243f51adb4bfe3556477cff (diff) | |
download | gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.tar gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.tar.gz gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.tar.bz2 gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.tar.lz gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.tar.xz gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.tar.zst gsoc2013-evolution-13a168017cd5b6d8907293a56732dc6f88ec4400.zip |
added buttons to test moving/reordering groups.
2000-04-16 Damon Chaplin <damon@helixcode.com>
* test-shortcut-bar.c: added buttons to test moving/reordering groups.
* e-shortcut-bar.c (e_shortcut_bar_on_drag_end): new function to free
the dragged name & URL when the drag is finished.
* e-group-bar.c (e_group_bar_get_increment): fixed bug when distance
was 0. Should just return 0.
(e_group_bar_set_current_group_num): added animate option and finished.
(e_group_bar_unmap): called e_group_bar_stop_all_animation().
(e_group_bar_reorder_group): finished.
* e-icon-bar-text-item.[hc]: removed, since we now use EText.
svn path=/trunk/; revision=2459
Diffstat (limited to 'widgets/shortcut-bar/e-icon-bar-text-item.h')
-rw-r--r-- | widgets/shortcut-bar/e-icon-bar-text-item.h | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/widgets/shortcut-bar/e-icon-bar-text-item.h b/widgets/shortcut-bar/e-icon-bar-text-item.h deleted file mode 100644 index ef621a4454..0000000000 --- a/widgets/shortcut-bar/e-icon-bar-text-item.h +++ /dev/null @@ -1,158 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ - -/* - * Author : - * Damon Chaplin <damon@helixcode.com> - * - * Copyright 1999, 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 - */ - -/* - * Based on gnome-icon-text-item: an editable text block with word wrapping - * for the GNOME canvas. - * - * Copyright (C) 1998, 1999 The Free Software Foundation - * - * Authors: Miguel de Icaza <miguel@gnu.org> - * Federico Mena <federico@gimp.org> - */ - -/* - * EIconBarTextItem - An editable canvas text item for the EIconBar. - */ - -#ifndef _E_ICON_BAR_TEXT_ITEM_H_ -#define _E_ICON_BAR_TEXT_ITEM_H_ - -#include <gtk/gtkentry.h> -#include <libgnomeui/gnome-canvas.h> - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - - -#define E_ICON_BAR_TEXT_ITEM(obj) (GTK_CHECK_CAST((obj), \ - e_icon_bar_text_item_get_type (), EIconBarTextItem)) -#define E_ICON_BAR_TEXT_ITEM_CLASS(k) (GTK_CHECK_CLASS_CAST ((k),\ - e_icon_bar_text_item_get_type ())) -#define E_IS_ICON_BAR_TEXT_ITEM(o) (GTK_CHECK_TYPE((o), \ - e_icon_bar_text_item_get_type ())) - -typedef struct _EIconBarTextItemInfo EIconBarTextItemInfo; - -typedef struct { - GnomeCanvasItem canvas_item; - - /* Size and maximum allowed width */ - int x, y; - int width; - - /* Font name */ - char *fontname; - - /* Private data */ - gpointer priv; /* was GtkEntry *entry */ - - /* Actual text */ - char *text; - - /* Text layout information */ - EIconBarTextItemInfo *ti; - - /* Whether the text is being edited */ - unsigned int editing : 1; - - /* Whether the text item is selected */ - unsigned int selected : 1; - - /* Whether the user is select-dragging a block of text */ - unsigned int selecting : 1; - - /* Whether the text is editable */ - unsigned int is_editable : 1; - - /* Whether the text is allocated by us (FALSE if allocated by the client) */ - unsigned int is_text_allocated : 1; - - - /* The horizontal alignment of the text (default 0.5). */ - gfloat xalign; - - /* The justification of the text (default is centered). */ - GtkJustification justification; - - /* The max number of lines of text shown, or -1 for all (default). */ - gint max_lines; - - /* If '...' is displayed if the text doesn't all fit (default TRUE). */ - gboolean show_ellipsis; - - /* This is TRUE if we couldn't fit all the text in. */ - gboolean is_clipped; -} EIconBarTextItem; - -typedef struct { - GnomeCanvasItemClass parent_class; - - /* Signals we emit */ - int (* text_changed) (EIconBarTextItem *iti); - void (* height_changed) (EIconBarTextItem *iti); - void (* width_changed) (EIconBarTextItem *iti); - void (* editing_started) (EIconBarTextItem *iti); - void (* editing_stopped) (EIconBarTextItem *iti); - void (* selection_started) (EIconBarTextItem *iti); - void (* selection_stopped) (EIconBarTextItem *iti); -} EIconBarTextItemClass; - -GtkType e_icon_bar_text_item_get_type (void); - -void e_icon_bar_text_item_configure (EIconBarTextItem *iti, - int x, - int y, - int width, - const char *fontname, - const char *text, - gboolean is_static); - -void e_icon_bar_text_item_set_width (EIconBarTextItem *iti, - int width); - -void e_icon_bar_text_item_setxy (EIconBarTextItem *iti, - int x, - int y); - -void e_icon_bar_text_item_select (EIconBarTextItem *iti, - int sel); - -char* e_icon_bar_text_item_get_text (EIconBarTextItem *iti); -void e_icon_bar_text_item_set_text (EIconBarTextItem *iti, - const char *text, - gboolean is_static); - -void e_icon_bar_text_item_start_editing (EIconBarTextItem *iti); -void e_icon_bar_text_item_stop_editing (EIconBarTextItem *iti, - gboolean accept); - - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* _E_ICON_BAR_TEXT_ITEM_H_ */ - |