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.
This commit is contained in:
Alexander Larsson
2001-05-22 00:11:10 +00:00
committed by Alexander Larsson
parent 479810cac7
commit 811543ce37
15 changed files with 656 additions and 204 deletions

View File

@ -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 },
};