diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-03-26 18:52:04 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-03-26 18:52:04 -0400 |
commit | 543ad3aabb852f407196fa75a6cf038524e11b75 (patch) | |
tree | bc76cf055302b4b1f08edef3c9341cf96e19a514 /gtk/gtkfilechooserdialog.c | |
parent | 59d8cba48229f03ab7657ae3258174f1cd6d41fd (diff) | |
download | gtk+-543ad3aabb852f407196fa75a6cf038524e11b75.tar.gz |
file chooser: Drop unused code
We've never restored filechooser positions, and we aren't going to.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r-- | gtk/gtkfilechooserdialog.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 92cd00a1a0..2779d0e25c 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -397,23 +397,6 @@ file_chooser_widget_default_size_changed (GtkWidget *widget, &default_width, &default_height); gtk_window_resize (GTK_WINDOW (dialog), default_width, default_height); - - if (!gtk_widget_get_mapped (GTK_WIDGET (dialog))) - { -#if 0 - /* FIXME: the code to restore the position does not work yet. It is not - * clear whether it is actually desirable --- if enabled, applications - * would not be able to say "center the file chooser on top of my toplevel - * window". So, we don't use this code at all. - */ - load_position (&xpos, &ypos); - if (xpos >= 0 && ypos >= 0) - { - gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_NONE); - gtk_window_move (GTK_WINDOW (dialog), xpos, ypos); - } -#endif - } } static void |