const correct string parameter.
Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org> * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct string parameter. * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to GtkMenuShell::selection_done, now that we have it, instead of ::deactivate so we're not tearing the menu apart and notify the user prematurely. Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org> * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our window, clear window->need_default_position to avoid infinite loops. some comment fixups and GTK_RESIZE_IMMEDIATE fixups. Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage. (gtk_tree_view_set_property): don't cast possible NULL objects. (gtk_tree_view_destroy): reset the model to NULL. * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain parent_class handler.
This commit is contained in:
@ -154,10 +154,10 @@ gtk_tree_path_new (void)
|
||||
* Return value: A newly created #GtkTreePath, or NULL
|
||||
**/
|
||||
GtkTreePath *
|
||||
gtk_tree_path_new_from_string (gchar *path)
|
||||
gtk_tree_path_new_from_string (const gchar *path)
|
||||
{
|
||||
GtkTreePath *retval;
|
||||
gchar *orig_path = path;
|
||||
const gchar *orig_path = path;
|
||||
gchar *ptr;
|
||||
gint i;
|
||||
|
||||
@ -173,7 +173,7 @@ gtk_tree_path_new_from_string (gchar *path)
|
||||
|
||||
if (i < 0)
|
||||
{
|
||||
g_warning (G_STRLOC"Negative numbers in path %s passed to gtk_tree_path_new_from_string", orig_path);
|
||||
g_warning (G_STRLOC ": Negative numbers in path %s passed to gtk_tree_path_new_from_string", orig_path);
|
||||
gtk_tree_path_free (retval);
|
||||
return NULL;
|
||||
}
|
||||
@ -181,7 +181,7 @@ gtk_tree_path_new_from_string (gchar *path)
|
||||
break;
|
||||
if (ptr == path || *ptr != ':')
|
||||
{
|
||||
g_warning (G_STRLOC"Invalid path %s passed to gtk_tree_path_new_from_string", orig_path);
|
||||
g_warning (G_STRLOC ": Invalid path %s passed to gtk_tree_path_new_from_string", orig_path);
|
||||
gtk_tree_path_free (retval);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user