diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-05-22 00:11:10 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-05-22 00:11:10 +0000 |
commit | 811543ce37bc04790da819fd33f35e308d9bb1b0 (patch) | |
tree | f0268dc25f289036d0363d14638f9e24d4918f9c /tests/testtext.c | |
parent | 479810cac75f31669b8712bce944d73cddf41253 (diff) | |
download | gtk+-811543ce37bc04790da819fd33f35e308d9bb1b0.tar.gz |
Added properties. Based on patch by Lee Mallabone.
2001-05-21 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfontsel.c:
Added properties. Based on patch by Lee Mallabone.
* gtk/gtkruler.c:
* gtk/gtkhruler.c:
* gtk/gtkvruler.c:
* gtk/gtktext.c:
* gtk/gtktextview.c:
Converted GtkArg to GParam. Based on patches by John Margaglione.
* tests/Makefile.am:
* tests/testtext.c:
Add a property editor to testtext.
Diffstat (limited to 'tests/testtext.c')
-rw-r--r-- | tests/testtext.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/testtext.c b/tests/testtext.c index 175e4f1c4b..476592efe4 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -7,6 +7,8 @@ #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> +#include "prop-editor.h" + typedef struct _Buffer Buffer; typedef struct _View View; @@ -1080,6 +1082,16 @@ do_remove_tags (gpointer callback_data, } } +static void +do_properties (gpointer callback_data, + guint callback_action, + GtkWidget *widget) +{ + View *view = view_from_widget (widget); + + create_prop_editor (G_OBJECT (view->text_view), 0); +} + enum { RESPONSE_FORWARD, @@ -1253,6 +1265,7 @@ static GtkItemFactoryEntry menu_items[] = { "/Attributes/Color cycles", NULL, do_apply_colors, TRUE, NULL }, { "/Attributes/No colors", NULL, do_apply_colors, FALSE, NULL }, { "/Attributes/Remove all tags", NULL, do_remove_tags, 0, NULL }, + { "/Attributes/Properties", NULL, do_properties, 0, NULL }, { "/_Test", NULL, 0, 0, "<Branch>" }, { "/Test/_Example", NULL, do_example, 0, NULL }, }; |