mirror of https://github.com/GNOME/gimp.git
removed a redundant parameter from one of the internal functions. Made
* plug-ins/gimpressionist/brush.c: removed a redundant parameter from one of the internal functions. * plug-ins/gimpressionist/utils.c: Made sure that resources that are selected by the presets will position their list views accordingly.
This commit is contained in:
parent
e3c4026b29
commit
8a94538efe
|
@ -1,3 +1,11 @@
|
|||
2004-07-28 Shlomi Fish <shlomif@iglu.org.il>
|
||||
|
||||
* plug-ins/gimpressionist/brush.c: removed a redundant parameter
|
||||
from one of the internal functions.
|
||||
* plug-ins/gimpressionist/utils.c: Made sure that resources that
|
||||
are selected by the presets will position their list views
|
||||
accordingly.
|
||||
|
||||
2004-07-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* autogen.sh: if the check for libtoolize fails, try glibtoolize.
|
||||
|
|
|
@ -346,7 +346,7 @@ update_brush_preview (const gchar *fn)
|
|||
static gboolean brush_dont_update = FALSE;
|
||||
|
||||
static void
|
||||
brush_select (GtkTreeSelection *selection, gpointer data)
|
||||
brush_select (GtkTreeSelection *selection)
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
GtkTreeModel *model;
|
||||
|
@ -413,7 +413,7 @@ brush_select_file (GtkTreeSelection *selection, gpointer data)
|
|||
{
|
||||
brush_from_file = 1;
|
||||
preset_save_button_set_sensitive (TRUE);
|
||||
brush_select (selection, NULL);
|
||||
brush_select (selection);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -548,7 +548,7 @@ create_brushpage(GtkNotebook *notebook)
|
|||
G_CALLBACK (gimp_double_adjustment_update),
|
||||
&pcvals.brushrelief);
|
||||
|
||||
brush_select (selection, NULL);
|
||||
brush_select (selection);
|
||||
readdirintolist ("Brushes", view, pcvals.selectedbrush);
|
||||
|
||||
/*
|
||||
|
|
|
@ -208,7 +208,17 @@ reselect (GtkWidget *view,
|
|||
|
||||
gtk_tree_model_get (model, &iter, 0, &name, -1);
|
||||
if (!strcmp(name, fname)) {
|
||||
GtkTreePath *tree_path;
|
||||
gtk_tree_selection_select_iter (selection, &iter);
|
||||
tree_path = gtk_tree_model_get_path (model,
|
||||
&iter);
|
||||
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (view),
|
||||
tree_path,
|
||||
NULL,
|
||||
TRUE,
|
||||
0.5,
|
||||
0.5);
|
||||
gtk_tree_path_free (tree_path);
|
||||
quit = TRUE;
|
||||
}
|
||||
g_free (name);
|
||||
|
|
Loading…
Reference in New Issue