Commit 997868b7 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Make GtkPrintFunc take a const string argument like GtkTranslateFunc. This

Fri Jan 21 16:16:29 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
	take a const string argument like GtkTranslateFunc. This will
	require changes in use code.
parent 5d9b2ed6
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
Fri Jan 21 16:16:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
take a const string argument like GtkTranslateFunc. This will
require changes in use code.
2000-01-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
......
......@@ -4,4 +4,6 @@ Incompatible Changes from GTK+-1.2 to GTK+-1.4:
has been unused since the main loop was moved into GLib
prior to 1.2.
- The signature for GtkPrintFunc (used for gtk_item_factory_dump_items)
has been changed to take a 'const gchar *' instead of 'gchar *', to
match what we do for glib, and other similar cases.
......@@ -778,8 +778,8 @@ gtk_item_factory_dump_items (GtkPatternSpec *path_pspec,
}
void
gtk_item_factory_print_func (gpointer FILE_pointer,
gchar *string)
gtk_item_factory_print_func (gpointer FILE_pointer,
const gchar *string)
{
FILE *f_out = FILE_pointer;
......
......@@ -42,7 +42,7 @@ extern "C" {
typedef void (*GtkPrintFunc) (gpointer func_data,
gchar *str);
const gchar *str);
typedef gchar * (*GtkTranslateFunc) (const gchar *path,
gpointer func_data);
typedef void (*GtkItemFactoryCallback) ();
......@@ -172,7 +172,7 @@ void gtk_item_factory_dump_rc (const gchar *file_name,
GtkPatternSpec *path_pspec,
gboolean modified_only);
void gtk_item_factory_print_func (gpointer FILE_pointer,
gchar *string);
const gchar *string);
void gtk_item_factory_create_item (GtkItemFactory *ifactory,
GtkItemFactoryEntry *entry,
gpointer callback_data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment