ui_gtk.patch
src/gtkui/ui_gtk.c | ||
---|---|---|
208 | 208 |
{ |
209 | 209 |
gint x = aud_get_int ("gtkui", "player_x"); |
210 | 210 |
gint y = aud_get_int ("gtkui", "player_y"); |
211 |
gint w = aud_get_int ("gtkui", "player_width"); |
|
212 |
gint h = aud_get_int ("gtkui", "player_height"); |
|
213 | ||
214 |
gtk_window_resize ((GtkWindow *) window, w, h); |
|
211 | 215 |
gtk_window_move ((GtkWindow *) window, x, y); |
212 | 216 |
} |
213 | 217 | |
... | ... | |
218 | 222 |
} |
219 | 223 |
else if (gtk_widget_get_visible (window)) |
220 | 224 |
{ |
225 |
gint w, h; |
|
226 |
gtk_window_get_size ((GtkWindow *) window, & w, & h); |
|
227 |
aud_set_int ("gtkui", "player_width", w); |
|
228 |
aud_set_int ("gtkui", "player_height", h); |
|
229 | ||
221 | 230 |
if (aud_get_bool ("gtkui", "save_window_position")) |
222 | 231 |
{ |
223 | 232 |
gint x, y; |