summaryrefslogtreecommitdiff
path: root/tests/testtext.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-04-28 00:12:47 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-04-28 00:12:47 +0000
commit7e9b154f0c73563c4f6a1ce681b78f508d88317c (patch)
tree3888c389efc586044b95640a31bd02d21423497f /tests/testtext.c
parent8ff2bf3b6efe288b29b2f406909ae635c9a84a71 (diff)
downloadgtk+-7e9b154f0c73563c4f6a1ce681b78f508d88317c.tar.gz
fix warning
2001-04-27 Havoc Pennington <hp@redhat.com> * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip line/para separators (gtk_entry_create_layout): set single paragraph mode on the layout * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much spacing between the image and label; instead, inside a button box the button will get extra space that will go there, but if people configure button box for 0 chubbiness, then there's no spacing. * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding and min/max size style properties, so people can tune their chubbiness. * tests/testgtk.c (make_toolbar): remove calls to removed toolbar functions * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size, space_style, and button_relief into style properties, remove functions for setting them * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop it back down * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed types from gtk_widget_style_get * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace with a style property. * gdk/x11/gdkevents-x11.c: namespace the settings * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars. * gtk/gtksettings.c (gtk_settings_class_init): remove code with side effects from inside g_assert(), so that G_DISABLE_ASSERT can be used. Also, translate doc strings for settings. Also, namespace the double-click-time property. Also, remove bell properties crap.
Diffstat (limited to 'tests/testtext.c')
-rw-r--r--tests/testtext.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/testtext.c b/tests/testtext.c
index 51ab5bcba1..baa648f5da 100644
--- a/tests/testtext.c
+++ b/tests/testtext.c
@@ -424,6 +424,7 @@ fill_example_buffer (GtkTextBuffer *buffer)
{
GtkTextIter iter, iter2;
GtkTextTag *tag;
+ GtkTextChildAnchor *anchor;
GdkColor color;
GdkColor color2;
GdkPixbuf *pixbuf;
@@ -513,7 +514,6 @@ fill_example_buffer (GtkTextBuffer *buffer)
NULL);
-#if 0
gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0);
anchor = gtk_text_buffer_create_child_anchor (buffer, &iter);
@@ -522,7 +522,6 @@ fill_example_buffer (GtkTextBuffer *buffer)
g_object_set_data_full (G_OBJECT (buffer), "anchor", anchor,
(GDestroyNotify) g_object_unref);
-#endif
pixbuf = gdk_pixbuf_new_from_xpm_data (book_closed_xpm);
@@ -2199,9 +2198,10 @@ view_add_example_widgets (View *view)
GtkTextChildAnchor *anchor;
Buffer *buffer;
- return;
-
buffer = view->buffer;
+
+ /* REMOVE to test widgets */
+ return;
anchor = g_object_get_data (G_OBJECT (buffer->buffer),
"anchor");
@@ -2209,9 +2209,6 @@ view_add_example_widgets (View *view)
if (anchor && !gtk_text_child_anchor_get_deleted (anchor))
{
GtkWidget *widget;
-
- widget = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
- GTK_ICON_SIZE_DIALOG);
widget = gtk_button_new_with_label ("Foo");