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.
This commit is contained in:
Owen Taylor 2000-01-21 21:21:02 +00:00 committed by Owen Taylor
parent 5d9b2ed63f
commit 997868b7e2
10 changed files with 49 additions and 5 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -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.

View File

@ -779,7 +779,7 @@ gtk_item_factory_dump_items (GtkPatternSpec *path_pspec,
void
gtk_item_factory_print_func (gpointer FILE_pointer,
gchar *string)
const gchar *string)
{
FILE *f_out = FILE_pointer;

View File

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