comparison src/audacious/ui_playlist_manager.c @ 2809:490638dcef74 trunk

[svn] - Made stuff prettier
author mf0102
date Sat, 26 May 2007 05:47:35 -0700
parents dbc3f9e18c71
children 7dad846ec699
comparison
equal deleted inserted replaced
2808:dbc3f9e18c71 2809:490638dcef74
259 playman_win_hints.min_width = 400; 259 playman_win_hints.min_width = 400;
260 playman_win_hints.min_height = 250; 260 playman_win_hints.min_height = 250;
261 gtk_window_set_geometry_hints( GTK_WINDOW(playman_win) , GTK_WIDGET(playman_win) , 261 gtk_window_set_geometry_hints( GTK_WINDOW(playman_win) , GTK_WIDGET(playman_win) ,
262 &playman_win_hints , GDK_HINT_MIN_SIZE ); 262 &playman_win_hints , GDK_HINT_MIN_SIZE );
263 263
264 playman_vbox = gtk_vbox_new( FALSE , 0 ); 264 playman_vbox = gtk_vbox_new( FALSE , 10 );
265 gtk_container_add( GTK_CONTAINER(playman_win) , playman_vbox ); 265 gtk_container_add( GTK_CONTAINER(playman_win) , playman_vbox );
266 266
267 /* current liststore model 267 /* current liststore model
268 ---------------------------------------------- 268 ----------------------------------------------
269 G_TYPE_STRING -> playlist name 269 G_TYPE_STRING -> playlist name
297 GTK_POLICY_NEVER , GTK_POLICY_ALWAYS ); 297 GTK_POLICY_NEVER , GTK_POLICY_ALWAYS );
298 gtk_container_add( GTK_CONTAINER(playman_pl_lv_sw) , playman_pl_lv ); 298 gtk_container_add( GTK_CONTAINER(playman_pl_lv_sw) , playman_pl_lv );
299 gtk_container_add( GTK_CONTAINER(playman_pl_lv_frame) , playman_pl_lv_sw ); 299 gtk_container_add( GTK_CONTAINER(playman_pl_lv_frame) , playman_pl_lv_sw );
300 gtk_box_pack_start( GTK_BOX(playman_vbox) , playman_pl_lv_frame , TRUE , TRUE , 0 ); 300 gtk_box_pack_start( GTK_BOX(playman_vbox) , playman_pl_lv_frame , TRUE , TRUE , 0 );
301 301
302 gtk_box_pack_start( GTK_BOX(playman_vbox) , gtk_hseparator_new() , FALSE , FALSE , 4 );
303
304 /* listview popup menu */ 302 /* listview popup menu */
305 playman_pl_lv_pmenu = gtk_menu_new(); 303 playman_pl_lv_pmenu = gtk_menu_new();
306 playman_pl_lv_pmenu_rename = gtk_menu_item_new_with_mnemonic( _( "_Rename" ) ); 304 playman_pl_lv_pmenu_rename = gtk_menu_item_new_with_mnemonic( _( "_Rename" ) );
307 g_signal_connect( G_OBJECT(playman_pl_lv_pmenu_rename) , "activate" , 305 g_signal_connect( G_OBJECT(playman_pl_lv_pmenu_rename) , "activate" ,
308 G_CALLBACK(playlist_manager_cb_lv_pmenu_rename) , playman_pl_lv ); 306 G_CALLBACK(playlist_manager_cb_lv_pmenu_rename) , playman_pl_lv );
313 G_CALLBACK(gtk_widget_destroy) , playman_pl_lv_pmenu ); 311 G_CALLBACK(gtk_widget_destroy) , playman_pl_lv_pmenu );
314 312
315 /* button bar */ 313 /* button bar */
316 playman_bbar_hbbox = gtk_hbutton_box_new(); 314 playman_bbar_hbbox = gtk_hbutton_box_new();
317 gtk_button_box_set_layout( GTK_BUTTON_BOX(playman_bbar_hbbox) , GTK_BUTTONBOX_END ); 315 gtk_button_box_set_layout( GTK_BUTTON_BOX(playman_bbar_hbbox) , GTK_BUTTONBOX_END );
316 gtk_button_box_set_spacing(GTK_BUTTON_BOX(playman_bbar_hbbox), 5);
318 playman_bbar_bt_close = gtk_button_new_from_stock( GTK_STOCK_CLOSE ); 317 playman_bbar_bt_close = gtk_button_new_from_stock( GTK_STOCK_CLOSE );
319 playman_bbar_bt_del = gtk_button_new_from_stock( GTK_STOCK_DELETE ); 318 playman_bbar_bt_del = gtk_button_new_from_stock( GTK_STOCK_DELETE );
320 playman_bbar_bt_new = gtk_button_new_from_stock( GTK_STOCK_NEW ); 319 playman_bbar_bt_new = gtk_button_new_from_stock( GTK_STOCK_NEW );
321 gtk_container_add( GTK_CONTAINER(playman_bbar_hbbox) , playman_bbar_bt_close ); 320 gtk_container_add( GTK_CONTAINER(playman_bbar_hbbox) , playman_bbar_bt_close );
322 gtk_container_add( GTK_CONTAINER(playman_bbar_hbbox) , playman_bbar_bt_del ); 321 gtk_container_add( GTK_CONTAINER(playman_bbar_hbbox) , playman_bbar_bt_del );