comparison audacious/playlist_manager.c @ 2208:76b040158f94 trunk

[svn] - Center new windows so they don't get cut off by the edge of the screen.
author nhjm449
date Sat, 23 Dec 2006 23:38:02 -0800
parents d1804718c5cc
children ec7b60e91a14
comparison
equal deleted inserted replaced
2207:a7ab1616ae38 2208:76b040158f94
1 /* Audacious - Cross-platform multimedia player 1 /* Audacious - Cross-platform multimedia player
2 * Copyright (C) 2005-2006 Audacious development team. 2 * Copyright (C) 2005-2006 Audacious development team.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; under version 2 of the License. 6 * the Free Software Foundation; under version 2 of the License.
174 } 174 }
175 175
176 playman_win = gtk_window_new( GTK_WINDOW_TOPLEVEL ); 176 playman_win = gtk_window_new( GTK_WINDOW_TOPLEVEL );
177 gtk_window_set_type_hint( GTK_WINDOW(playman_win), GDK_WINDOW_TYPE_HINT_DIALOG ); 177 gtk_window_set_type_hint( GTK_WINDOW(playman_win), GDK_WINDOW_TYPE_HINT_DIALOG );
178 gtk_window_set_transient_for( GTK_WINDOW(playman_win) , GTK_WINDOW(mainwin) ); 178 gtk_window_set_transient_for( GTK_WINDOW(playman_win) , GTK_WINDOW(mainwin) );
179 gtk_window_set_position( GTK_WINDOW(playman_win), GTK_WIN_POS_CENTER );
179 gtk_window_set_title( GTK_WINDOW(playman_win), _("Playlist Manager") ); 180 gtk_window_set_title( GTK_WINDOW(playman_win), _("Playlist Manager") );
180 gtk_container_set_border_width( GTK_CONTAINER(playman_win), 10 ); 181 gtk_container_set_border_width( GTK_CONTAINER(playman_win), 10 );
181 g_signal_connect( G_OBJECT(playman_win) , "destroy" , 182 g_signal_connect( G_OBJECT(playman_win) , "destroy" ,
182 G_CALLBACK(gtk_widget_destroyed) , &playman_win ); 183 G_CALLBACK(gtk_widget_destroyed) , &playman_win );
183 playman_win_hints.min_width = 400; 184 playman_win_hints.min_width = 400;