From 5d4159df7d751d6684ac7a8d28a7a14fed2773a6 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 24 Oct 2006 01:51:47 +0000 Subject: Added callback function to allow shrinking of widgets (bzr r1850) --- src/widgets/toolbox.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/toolbox.cpp') diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 68e9a0653..def088563 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -848,6 +848,9 @@ static EgeAdjustmentAction * create_adjustment_action( gchar const *name, gtk_object_set_data( GTK_OBJECT(dataKludge), data, adj ); } + // Using a cast just to make sure we pass in the right kind of function pointer + g_object_set( G_OBJECT(act), "tool-post", static_cast(sp_set_font_size_smaller), NULL ); + return act; } -- cgit v1.2.3