Fix docs.

* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.

	* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
	(gtk_window_add_mnemonic):
	(gtk_window_mnemonic_activate): Add docs.

	* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
	typo in docs.

	* test-loaders.c, test-images.h: More random tests.

	* io-bmp.c (DecodeHeader): Fail gracefully on OOM here.

	* gtk/gtk-sections.txt: Remove gtk_win32_get_installation_directory.
This commit is contained in:
Matthias Clasen 2002-03-05 22:44:27 +00:00
parent 9733428511
commit 981574a9be
16 changed files with 1997 additions and 10 deletions

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,14 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
(gtk_window_add_mnemonic):
(gtk_window_mnemonic_activate): Add docs.
* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
typo in docs.
Tue Mar 5 17:02:59 2002 Owen Taylor <otaylor@redhat.com>
* docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.

View File

@ -1,3 +1,7 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtk-sections.txt: Remove gtk_win32_get_installation_directory.
Tue Mar 5 14:28:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/compiling.sgml: Update version numbers in example.

View File

@ -3803,7 +3803,6 @@ gtk_propagate_event
<SUBSECTION Private>
gtk_init_abi_check
gtk_init_check_abi_check
gtk_win32_get_installation_directory
GTKMAIN_C_VAR
</SECTION>

View File

@ -1,3 +1,9 @@
2002-03-05 Matthias Clasen <maclas@gmx.de>
* test-loaders.c, test-images.h: More random tests.
* io-bmp.c (DecodeHeader): Fail gracefully on OOM here.
Tue Mar 5 10:39:03 2002 Owen Taylor <otaylor@redhat.com>
* Makefile.am (loaderdir): Put the modules into the

View File

@ -241,7 +241,15 @@ static gboolean DecodeHeader(unsigned char *BFH, unsigned char *BIH,
if (State->BufferSize < GUINT32_FROM_LE (* (guint32 *) &BIH[0]) + 14) {
State->BufferSize = GUINT32_FROM_LE (* (guint32 *) &BIH[0]) + 14;
State->buff = g_realloc (State->buff, State->BufferSize);
State->buff = g_try_realloc (State->buff, State->BufferSize);
if (State->buff == NULL) {
g_set_error (error,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
_("Not enough memory to load bitmap image"));
State->read_state = READ_STATE_ERROR;
return FALSE;
}
return TRUE;
}

File diff suppressed because it is too large Load Diff

View File

@ -429,13 +429,22 @@ main (int argc, char **argv)
TEST_RANDOM (TIFF2_HEADER, 150, FALSE);
#define PNM_HEADER 'P', '6'
TEST_RANDOM (PNM_HEADER, 150, FALSE);
TEST_RANDOMLY_MODIFIED (valid_tiff1_test, FALSE);
#define XBM_HEADER '#', 'd', 'e', 'f', 'i', 'n', 'e', ' '
TEST_RANDOM (XBM_HEADER, 150, FALSE);
#define BMP_HEADER 'B', 'M'
TEST_RANDOM (BMP_HEADER, 150, FALSE);
#define XPM_HEADER '/', '*', ' ', 'X', 'P', 'M', ' ', '*', '/'
TEST_RANDOM (XPM_HEADER, 150, FALSE);
TEST_RANDOMLY_MODIFIED (valid_tiff1_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_gif_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_png_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_tga_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_jpeg_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_ico_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_bmp_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_xpm_test, FALSE);
/* memory tests */

View File

@ -1714,12 +1714,12 @@ gtk_tree_row_reference_inserted (GObject *proxy,
}
/**
* gtk_tree_row_reference_inserted:
* gtk_tree_row_reference_deleted:
* @proxy: A #GObject
* @path: The path position that was deleted
*
* Lets a set of row reference created by gtk_tree_row_reference_new_proxy()
* know that the model emitted the "row_inserted" signal.
* know that the model emitted the "row_deleted" signal.
**/
void
gtk_tree_row_reference_deleted (GObject *proxy,

View File

@ -9903,7 +9903,7 @@ gtk_tree_view_set_search_column (GtkTreeView *tree_view,
}
/**
* gtk_tree_view_search_get_search_equal_func:
* gtk_tree_view_get_search_equal_func:
* @tree_view: A #GtkTreeView
*
* Returns the compare function currently in use.

View File

@ -1125,6 +1125,14 @@ gtk_window_remove_accel_group (GtkWindow *window,
_gtk_accel_group_detach (accel_group, G_OBJECT (window));
}
/**
* gtk_window_add_mnemonic:
* @window: a #GtkWindow
* @keyval: the mnemonic
* @target: the widget that gets activated by the mnemonic
*
* Adds a mnemonic to this window.
*/
void
gtk_window_add_mnemonic (GtkWindow *window,
guint keyval,
@ -1155,6 +1163,14 @@ gtk_window_add_mnemonic (GtkWindow *window,
gtk_window_notify_keys_changed (window);
}
/**
* gtk_window_remove_mnemonic:
* @window: a #GtkWindow
* @keyval: the mnemonic
* @target: the widget that gets activated by the mnemonic
*
* Removes a mnemonic from this window.
*/
void
gtk_window_remove_mnemonic (GtkWindow *window,
guint keyval,
@ -1181,6 +1197,15 @@ gtk_window_remove_mnemonic (GtkWindow *window,
gtk_window_notify_keys_changed (window);
}
/**
* gtk_window_mnemonic_activate:
* @window: a #GtkWindow
* @keyval: the mnemonic
* @modifier: the modifiers
* @returns: %TRUE if the activation is done.
*
* Activates the targets associated with the mnemonic.
*/
gboolean
gtk_window_mnemonic_activate (GtkWindow *window,
guint keyval,