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:
@ -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>
|
2004-07-28 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* autogen.sh: if the check for libtoolize fails, try glibtoolize.
|
* 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 gboolean brush_dont_update = FALSE;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
brush_select (GtkTreeSelection *selection, gpointer data)
|
brush_select (GtkTreeSelection *selection)
|
||||||
{
|
{
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
@ -413,7 +413,7 @@ brush_select_file (GtkTreeSelection *selection, gpointer data)
|
|||||||
{
|
{
|
||||||
brush_from_file = 1;
|
brush_from_file = 1;
|
||||||
preset_save_button_set_sensitive (TRUE);
|
preset_save_button_set_sensitive (TRUE);
|
||||||
brush_select (selection, NULL);
|
brush_select (selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -548,7 +548,7 @@ create_brushpage(GtkNotebook *notebook)
|
|||||||
G_CALLBACK (gimp_double_adjustment_update),
|
G_CALLBACK (gimp_double_adjustment_update),
|
||||||
&pcvals.brushrelief);
|
&pcvals.brushrelief);
|
||||||
|
|
||||||
brush_select (selection, NULL);
|
brush_select (selection);
|
||||||
readdirintolist ("Brushes", view, pcvals.selectedbrush);
|
readdirintolist ("Brushes", view, pcvals.selectedbrush);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -208,7 +208,17 @@ reselect (GtkWidget *view,
|
|||||||
|
|
||||||
gtk_tree_model_get (model, &iter, 0, &name, -1);
|
gtk_tree_model_get (model, &iter, 0, &name, -1);
|
||||||
if (!strcmp(name, fname)) {
|
if (!strcmp(name, fname)) {
|
||||||
|
GtkTreePath *tree_path;
|
||||||
gtk_tree_selection_select_iter (selection, &iter);
|
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;
|
quit = TRUE;
|
||||||
}
|
}
|
||||||
g_free (name);
|
g_free (name);
|
||||||
|
Reference in New Issue
Block a user