Commit e816485d authored by Cosimo Cecchi's avatar Cosimo Cecchi

eel: remove unused EelEditableLabel

This was only used for in-place renaming inside the canvas container,
which does not exist any more. Remove it.
parent 06b2934a
......@@ -31,7 +31,6 @@ eel_headers = \
eel-art-extensions.h \
eel-canvas.h \
eel-debug.h \
eel-editable-label.h \
eel-gdk-extensions.h \
eel-glib-extensions.h \
eel-gnome-extensions.h \
......@@ -49,7 +48,6 @@ libeel_2_la_SOURCES = \
eel-art-extensions.c \
eel-canvas.c \
eel-debug.c \
eel-editable-label.c \
eel-gdk-extensions.c \
eel-glib-extensions.c \
eel-gnome-extensions.c \
This diff is collapsed.
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <>.
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define EEL_TYPE_EDITABLE_LABEL eel_editable_label_get_type()
#define EEL_EDITABLE_LABEL(obj) \
#define EEL_IS_EDITABLE_LABEL(obj) \
typedef struct _EelEditableLabel EelEditableLabel;
typedef struct _EelEditableLabelClass EelEditableLabelClass;
typedef struct _EelEditableLabelSelectionInfo EelEditableLabelSelectionInfo;
struct _EelEditableLabel
GtkMisc misc;
/*< private >*/
guint jtype : 2;
guint wrap : 1;
guint overwrite_mode : 1;
guint draw_outline : 1;
PangoWrapMode wrap_mode;
GdkWindow *text_area;
gchar *text;
int text_size; /* allocated size, in bytes */
int n_bytes; /* length in use (not including terminating zero), in bytes */
PangoLayout *layout;
guint layout_includes_preedit : 1;
int selection_anchor; /* cursor pos, byte index */
int selection_end; /* byte index */
GtkWidget *popup_menu;
GtkIMContext *im_context;
gboolean need_im_reset;
int preedit_length; /* length of preedit string, in bytes */
int preedit_cursor; /* offset of cursor within preedit string, in chars */
PangoFontDescription *font_desc;
struct _EelEditableLabelClass
GtkMiscClass parent_class;
void (* move_cursor) (EelEditableLabel *label,
GtkMovementStep step,
gint count,
gboolean extend_selection);
void (* insert_at_cursor) (EelEditableLabel *label,
const gchar *str);
void (* delete_from_cursor) (EelEditableLabel *label,
GtkDeleteType type,
gint count);
void (* cut_clipboard) (EelEditableLabel *label);
void (* copy_clipboard) (EelEditableLabel *label);
void (* paste_clipboard) (EelEditableLabel *label);
void (* toggle_overwrite) (EelEditableLabel *label);
/* Hook to customize right-click popup for selectable labels */
void (* populate_popup) (EelEditableLabel *label,
GtkMenu *menu);
GType eel_editable_label_get_type (void) G_GNUC_CONST;
GtkWidget* eel_editable_label_new (const char *str);
void eel_editable_label_set_text (EelEditableLabel *label,
const char *str);
const gchar* eel_editable_label_get_text (EelEditableLabel *label);
void eel_editable_label_set_justify (EelEditableLabel *label,
GtkJustification jtype);
GtkJustification eel_editable_label_get_justify (EelEditableLabel *label);
void eel_editable_label_set_line_wrap (EelEditableLabel *label,
gboolean wrap);
void eel_editable_label_set_line_wrap_mode (EelEditableLabel *label,
PangoWrapMode mode);
gboolean eel_editable_label_get_line_wrap (EelEditableLabel *label);
void eel_editable_label_set_draw_outline (EelEditableLabel *label,
gboolean wrap);
void eel_editable_label_select_region (EelEditableLabel *label,
gint start_offset,
gint end_offset);
gboolean eel_editable_label_get_selection_bounds (EelEditableLabel *label,
gint *start,
gint *end);
PangoLayout * eel_editable_label_get_layout (EelEditableLabel *label);
void eel_editable_label_get_layout_offsets (EelEditableLabel *label,
gint *x,
gint *y);
PangoFontDescription *eel_editable_label_get_font_description (EelEditableLabel *label);
void eel_editable_label_set_font_description (EelEditableLabel *label,
const PangoFontDescription *desc);
#ifdef __cplusplus
#endif /* __cplusplus */
#endif /* __EEL_EDITABLE_LABEL_H__ */
......@@ -39,7 +39,6 @@
#include <eel/eel-vfs-extensions.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-art-extensions.h>
#include <eel/eel-editable-label.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
......@@ -22,7 +22,6 @@ noinst_PROGRAMS =\
test-nautilus-search-engine \
test-nautilus-directory-async \
test-nautilus-copy \
test-eel-editable-label \
test_nautilus_copy_SOURCES = test-copy.c test.c
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
#include <config.h>
#include <gtk/gtk.h>
#include <eel/eel-editable-label.h>
static void
quit (GtkWidget *widget, gpointer data)
gtk_main_quit ();
main (int argc, char* argv[])
GtkWidget *window;
GtkWidget *label;
GtkWidget *vbox;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (quit), NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = eel_editable_label_new ("Centered dsau dsfgsdfgoydsfiugy oiusdyfg iouysdf goiuys dfioguy siodufgy iusdyfgiu ydsf giusydf gouiysdfgoiuysdfg oiudyfsg Label");
gtk_widget_set_size_request (label, 200, -1);
eel_editable_label_set_line_wrap (EEL_EDITABLE_LABEL (label), TRUE);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 4);
label = eel_editable_label_new ("Left aligned label");
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 4);
label = eel_editable_label_new ("Right aligned label");
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 4);
gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);
gtk_widget_show_all (window);
gtk_main ();
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment