Commit 85854aa7 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

fixed up so it works with the patch I posted to gtk-devel-list. Real fix

2002-01-31  Manish Singh  <yosh@gimp.org>

        * app/gui/file-open-dialog.c: fixed up so it works with the patch
        I posted to gtk-devel-list. Real fix pending discussion there.
parent 251fe649
2002-01-31 Manish Singh <yosh@gimp.org>
* app/gui/file-open-dialog.c: fixed up so it works with the patch
I posted to gtk-devel-list. Real fix pending discussion there.
2002-01-30 Sven Neumann <sven@gimp.org>
 
* app/gui/about-dialog.c: GDK_RGB_DITHER_NORMAL should be good enough.
......
......@@ -555,6 +555,17 @@ set_preview (Gimp *gimp,
}
}
static void
selchanged_foreach (GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
gpointer data)
{
gboolean *selected = data;
*selected = TRUE;
}
static void
file_open_selchanged_callback (GtkTreeSelection *sel,
gpointer data)
......@@ -562,8 +573,12 @@ file_open_selchanged_callback (GtkTreeSelection *sel,
GtkFileSelection *fileload;
Gimp *gimp;
const gchar *fullfname;
gboolean selected = FALSE;
if (gtk_tree_selection_get_selected (sel, NULL, NULL))
gtk_tree_selection_selected_foreach (sel,
selchanged_foreach,
&selected);
if (selected)
{
fileload = GTK_FILE_SELECTION (data);
......
......@@ -555,6 +555,17 @@ set_preview (Gimp *gimp,
}
}
static void
selchanged_foreach (GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
gpointer data)
{
gboolean *selected = data;
*selected = TRUE;
}
static void
file_open_selchanged_callback (GtkTreeSelection *sel,
gpointer data)
......@@ -562,8 +573,12 @@ file_open_selchanged_callback (GtkTreeSelection *sel,
GtkFileSelection *fileload;
Gimp *gimp;
const gchar *fullfname;
gboolean selected = FALSE;
if (gtk_tree_selection_get_selected (sel, NULL, NULL))
gtk_tree_selection_selected_foreach (sel,
selchanged_foreach,
&selected);
if (selected)
{
fileload = GTK_FILE_SELECTION (data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment