summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-11-17 06:42:21 +0100
committerBenjamin Otte <otte@redhat.com>2010-11-18 17:47:43 +0100
commit3024081928bb3cc159191d865c0b216641c997e4 (patch)
tree6430d33b44d790fd1e0495d4c46309913a11b281
parent516a6d84950d9a4c61b7bdc624efd346bacce0e6 (diff)
downloadgtk+-3024081928bb3cc159191d865c0b216641c997e4.tar.gz
tests: Remove broken ellipsise test
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/testellipsise.c69
2 files changed, 0 insertions, 72 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e1f676660d..e011484159 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -39,7 +39,6 @@ noinst_PROGRAMS = $(TEST_PROGS) \
testcellrenderertext \
testclientmessage \
testdnd \
- testellipsise \
testentrycompletion \
testentryicons \
testfilechooser \
@@ -121,7 +120,6 @@ testcombochange_DEPENDENCIES = $(TEST_DEPS)
testcellrenderertext_DEPENDENCIES = $(TEST_DEPS)
testclientmessage_DEPENDENCIES = $(TEST_DEPS)
testdnd_DEPENDENCIES = $(TEST_DEPS)
-testellipsise_DEPENDENCIES = $(TEST_DEPS)
testentrycompletion_DEPENDENCIES = $(TEST_DEPS)
testentryicons_DEPENDENCIES = $(TEST_DEPS)
testfilechooser_DEPENDENCIES = $(TEST_DEPS)
@@ -183,7 +181,6 @@ testcombochange_LDADD = $(LDADDS)
testcellrenderertext_LDADD = $(LDADDS)
testclientmessage_LDADD = $(LDADDS)
testdnd_LDADD = $(LDADDS)
-testellipsise_LDADD = $(LDADDS)
testentrycompletion_LDADD = $(LDADDS)
testentryicons_LDADD = $(LDADDS)
testfilechooser_LDADD = $(LDADDS)
diff --git a/tests/testellipsise.c b/tests/testellipsise.c
deleted file mode 100644
index f0d0cc8aa8..0000000000
--- a/tests/testellipsise.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * 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, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-/*
- * 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 ftp://ftp.gtk.org/pub/gtk/.
- */
-
-#include <gtk/gtk.h>
-
-static void
-combo_changed_cb (GtkWidget *combo,
- gpointer data)
-{
- GtkWidget *label = GTK_WIDGET (data);
- gint active;
-
- active = gtk_combo_box_get_active (GTK_COMBO_BOX (combo));
-
- gtk_label_set_ellipsize (GTK_LABEL (label), (PangoEllipsizeMode)active);
-}
-
-int
-main (int argc, char *argv[])
-{
- GtkWidget *window, *vbox, *hbox, *label, *combo, *scale;
-
- gtk_init (&argc, &argv);
-
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
- vbox = gtk_vbox_new (0, FALSE);
- gtk_container_add (GTK_CONTAINER (window), vbox);
-
- combo = gtk_combo_box_text_new ();
- scale = gtk_hscale_new_with_range (0, 360, 1);
- label = gtk_label_new ("This label may be ellipsized\nto make it fit.");
-
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "NONE");
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "START");
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "MIDDLE");
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "END");
- gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
- gtk_box_pack_start (GTK_BOX (hbox), combo, TRUE, TRUE, 0);
- g_signal_connect (combo, "changed", G_CALLBACK (combo_changed_cb), label);
-
- gtk_widget_show_all (window);
-
- gtk_main ();
-
- return 0;
-}